AJ Software's Q&A profile
Windows Forms change the default row hightlight color of DataGridView?
Hi, When user hightlights a row in datagridview control, the row color is defaulted to DeepBlue. Is there a way to chagne this default color to something else like Red Our client has this 'special' request. Your help is greatly appreciated. Thanks, Boston Hi... This will work for sure just use these two events and follow this code private void dgvTest_RowEnter( object sender, DataGridViewCellEventArgs e) { DataGridViewRow dgvRow = dgvTest.Rows[e.RowIndex]; dgvRow.DefaultCellStyle.BackColor = Color .Aqua; } private void dgvTest_RowLeave( object sender, DataGridViewCellEventArgs e) { DataGri ...Show All
SQL Server OLE DB Source parameters ignored when subquery?
I am using an OLE DB Source with SQL command for the data access mode. I defined parameters, then added a complex query with subqueries. It seems like the parameters for a query are not being filled correctly (because I am getting too many rows returned). At one point I saw an error message the said something to the effect that the parameters would be ignored when there was a subquery in the SQL. Can anyone shed some light on this Thanks, Laurence I don't know if that is true or not but regardless of that you should stop using parameters as explained here: http://blogs.conchango.com/jamieth ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DxDiag shows missing files after .Net 2.0, Oct and Dec 2005 SDK.
After installing the .Net Framework 2.0 and the Oct and/or Dec 2005 SDK, the DxDiag utility shows that some files are "missing". DxDiag notes on the DirectX Files tab: " Several files (system.dll, Microsoft.DirectX.dll, Microsoft.DirectX.dll) are missing! " These files are present in the GAC and they coincide with the files from the .NET Framework 2.0 and the October and December 2005 versions of the .Net 2.0 beta versions of Managed DX. system.dll - .Net Framework 2.0 (2.0.0.0) Microsoft.DirectX.dll - October SDK - (2.0.900.0) Microsoft.DirectX.dll - December SDK - (2.0.0 ...Show All
Software Development for Windows Vista moving a SharePoint document in a workflow
In the demos I've seen of SharePoint v3 I have not seen a workflow capability for moving a document from one doc library to another. Is this possible with the included workflows If not, is it possible to create with either the FrontPage editor or Visual Studio Thanks, -Wayne There is a SPS activity which can be used to manage the doc/form libraries in a WSS or SPS site. This used in conjunction with the Sharepoint Doc Library event handlers (Create, Update, Delete). Take a look at these events and go to the Activities Gallery for the SPS activity. ...Show All
Windows Forms Binding to a PictureBox.Image VS 2005
Hello, I'm attempting to display an image (Ole Object) from an Access database in C# 2005. According to what I read in Data Binding with Windows Forms 2.0 By Brian Noyes: "The pictures stored in the Northwind database aren't stored in raw image file formats; they are stored as OLE image documents. There is an OLE header on the actual image bytes that you have to strip off to work with the image properly outside of an OLE document. Luckily, this logic is coded into the ImageConverter code in the .NET Framework, so you don't have to worry about stripping off that OLE header yourself. You can just bind the PictureBox.Image property t ...Show All
Windows Forms Can't view Form in Designer
Hi, As i am a first time user on Visual Basic 2005 Express. I had followed the whole Starter kits for new project - after applying the template, surprisingly, there isn't any form (Form1.vb[Design]) and tree view of such form under "Solution Explorer". Since creating the project, the form should pop up automatically. What should i do next Cheers! Do you have admin permissions on the box -- or is the machine using network drives for any purpose These 2 things are the only things I can think of at the moment. This should still work as normal user, unless some package is trying to write to a predefined file locati ...Show All
Visual Basic inheritance template missing in vb.net 2005 express
I'm trying to experiment with form inheritance and created a base form with a couple of buttons. I save and build this base form as a dll. Then I try to add another form which inherits the base form, but the project menu has no items to allow me to add an inherited form. I've also tried adding a reference to the project first, but it still doesn't work. What is wrong Actually, rather than add a class I simply added a windows form and changed the boiler plate code "inherits" statement and everything worked. I've been working with VB.NET 2003 and wasn't cognizant of the separate ...Show All
SQL Server Ok got the per page sorted but...
i get a blank page after each record so 13 records, when previewed, adds upto 26 page 13 of which are blank. I noticed a post here about having nothing after the grouping and as far as i can see i have not, but i dont really know what that means..... Any help is appreciated, so close yet so far :-) Which renderer are you using If it's the PDF or Image renderer, please check the size of your report body and margins to make sure it doesn't exceed the page size. ...Show All
Windows Forms How to get a tree of using list?
I wang get a tree from BO, It must collection I don't know how to get Can you help me Thank you ...Show All
Visual Studio Express Editions How to move to next cell in DataGridView by Pressing Enter
Hello Developers... Can anyone help me about moving focus to next cell instead of next row by pressing enter or any other specific key. I want to move focus to next cell when user get done with editing with current cell and he presses enter I want focus on next cell. How can I do this I tried most codes like this DataGridView1.currentCell = DataGridView1.Item(e.ColumnIndex+1, e.RowIndex) but, Not working actually. Please help me. Its a bit urgent. Thanks. 'UPDATE!! Public Class Form1 #Region "DatagridView'de Enter" '</DGV @DatagridView> Private SonrakiSutun As Boolean = False Private CSutun As Bool ...Show All
Windows Forms setting DataGridViewCheckBox based on text file
I'm just learning how to use the DataGridView control. I am reading values from a text file and then inserting them into a DataGridView via DataGridView.Rows.Add. One of the columns in my DataGridView is a CheckBox (DataGridViewCheckBox). The valid values in the text file corresponding to the check box are 0 and 1. How do I set the value for the check box via the Add method ...Show All
Visual Studio Team System tfsbuild.exe errors when trying to start a build (beta 3)
I can start the build manually through team explorer but when trying to do so via the command line using tfsbuild on the build box i get the following error. I tried putting the url in quotes and using fqdn as well. Any thoughts Is there another console app that i can use in conjuction with windows schedular to kick off a build C:\Program Files\Microsoft Visual Studio 8\Common7\IDE>"C:\Program Files\Microsoft Visual Studio 8\C ommon7\IDE\TFSBuild.exe" start http://6nytp71:8080 ProjectX ProjectXBuild Microsoft (R) TfsBuild Version 8.0.0.0 for Microsoft (R) Visual Studio 2005 Team System Copyright (C) Microsoft Corporation 2004. All ...Show All
Windows Forms opening .xls and .csv files
Hi, I want to open .xls and .csv. How can I do that I want to open them physically in MS-Excel, so that user clicks a button and .xls or .csv file opens up, just like you double click an excel file. Thanks Here's another way you could do it: Imports System.Diagnostics Dim startInfo As New ProcessStartInfo("Notepad. ...Show All
.NET Development ConnectionString
Hello, I have a connection string in my config file, that I use to connect to SQL server. But it requires the password. How can I add this sensitive data to the connection string in my application. Thank you. Hi, Try using the enterprise libraries. There is an dataaccess application block that you can configure using the Ent.Lib GUI and encrypt the password. Try reading this link: http://www.gotdotnet.com/codegallery/codegallery.aspx id=295a464a-6072-4e25-94e2-91be63527327 Regards, ...Show All
Microsoft ISV Community Center Forums .NEt and industrial automation
Hi all, I want to get information or links to read about combination the .Net framework on the industrial automation. I mean SCADA and HMI or OPC in . Is there any classes or components that deals with these issus s there and open sourse tutorials of these systems Regards... Per one of our internal support engineers: Our ISV buddy’s question: ===================== I want to get information or links to read about combination the .Net framework on the industrial automation. I mean SCADA and HMI or OPC. Is there any classes or components that deals with these issues Is there and open source tutorials ...Show All
