Answer Questions
Parshuram Help coloring individual cells in datagridview based on cells beside them.
Hi, I have this requirement to color individual cells in the datagridview based on the value of the cells right of them. There is how the data looks like: ID Time D1 D1Q D2 D2Q D3 D3Q ..... 1 '1/1/2007 00:05' 35 BLUE 23.5 GREEN 42 RED 2 '1/1/2007 00:10' 38 BLUE 24.8 YELLOW 38 YELLOW 3 '1/1/2007 00:15' 41 RED 23.1 YELLOW 33 RED 4 '1/1/2007 00:20' 36 RED &nb ...Show All
pugs How to launch the application on StartUp
hello i have completed my applicaion but i want it to work automatically as soon as i turn on my PC. how will i do that and also how can i add an icon of it to start up menu on taskbar in order to be able to stop it whenever i want I suggest downloading a application to make installers. An especially good one is CreateInstall. It allows you to set options such as start up, registry entries, short cuts, extra included programs, ect. You can download the code from the link of codeproject site I Have provided in the answer post. is not there any solutions i can solve using visual studio or windows Xp itself i wanna program it myself ...Show All
Muhammad Khalid Can you tell me where can I find the best custom control collections for C#?
Can you tell me where can I find the best custom control collections for C# did you mean commercial collection if this what you want personally i like Janus and devexpress collection look for more at http://www.componentsource.com/features/a200/index.html http://dotnet.devdirect.com/ if you look for free controls you can look at http://www.codeproject.com/ ...Show All
lois_at_DEI taking variable from Public Form1()
how can i reach initial variable from functions_ now it gives error like 'v1.Form2' does not contain a definition for 'b' what can i do_ and i want to use "b" in button_click.. like: private void ara_Click(object sender, EventArgs e) { i need "b" in here.. } can i make button public like: public void ara_Click(object sender, EventArgs e) are you sure you are using the code I supplied remember "b" is declared at the top of the class, just before "public Form2()" n ...Show All
Praveena Karuturi Datagridviewcolumn backcolor
Hello: I'm trying to specify the backcolor for a specific column in a datagridview (defaultcellstyle.backcolor). However, the color is only applied if the datagridview is selected by the user. How do I change the color so it displays whether the dgv is selected or not Thanks much. Hi, tonebo Set the backcolor in Form_LOAD as: private void Form38_Load( object sender, EventArgs e) { // some code ... this .dataGridView1.Columns[0].DefaultCellStyle.BackColor = Color .DarkBlue; } Best Regards. Ye Thanks much - when (on what event) would you suggest I invalidate it Hi toneho: what I have try is add one column in design view an ...Show All
The WB modify connectionstring at runtime
hi i defined the Myconnectionstring in app.config i created datsets and TableAdaptors that is based on Myconnectionstring The problem is that My.Settings.dbConnectionString is a read-only property i want to write minimum code to change connectionstring at runtime, in a way to avoid changes to tableadaptors code. thanks Glad to hear it - don't forget to mark my previous reply as an answer so it can help someone else in the future. Hi I come back again when I modify UserConnectionString in code , and next time I start application, application reterive the last value. i wrote: Dim con As String = My.Settings.UserConnectionString ' return the last value i updated. ...Show All
Leo Kent using one click deploy for vb.net
I am using the one click deployment, I have user on the floor who use the same computer, I need to install my windows vb.net(2005) application under all users how/where do I change the deployment location from who is signed on to the all users folder Also where is the exe for my application the short cut only refers to a "application reference" not a exe. is there a way to do a install to the all users I guess with out using the one click option Yes, you can use regular windows installer (MSI, setup project). However, see the following thread for additional options: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=218609&SiteID=1 And ...Show All
Wilson Cheung TableAdapter Configuration Wizard Question
Hi, Why can't i use the "Create methods to send updates directly to the database" Can somebody tell what i'm doing wrong... My query is verry simple like SELECT * FROM table.... Moving from .NET Framework Data Access and Storage to Windows Forms Data Controls and Databinding . Can u please explain a little bit more about ur problem ...Show All
Hoowah DataFormatString in GridView
I wonder if someone else is suffering the same problem. I found DataFormatString in GridView not work very well when I try to display currency. In VS 2005 Beta version, it works fine, but after I use stardard version, it never display correct. For example: integer 3 always display like 3.0000 but in the beta version, it display like $3.00 which is what I would like. By the way, I assigned datasource, dataadapter and sqlcommand manually, everything else is good, even date format string works, but currency format just NOT work. Not sure if this is a bug DataFormatString {0:c2} I had a similair problem with formatting a phone number. To display the text this does work: <% #String .Format( "{0:(###) ###-####}" , Convert.ToI ...Show All
Adysoft C# program on Windows XP Pro
Two users of an application I developed have told me that my program does not work properly. Controls are being screwed up, settings don't save, a whole lot of stuff is going wrong. The common link They both use Windows XP Professional. I believe Win XP Pro is the reason why something is wrong, and they both do have .NET Framework 2.0 on their OS, so something with Win XP Pro is causing problems. Why doesn't it work on Win XP Pro > It says clr, so obviously common language runtime, so it doesnt seem as if its a code problem (the code I made).... You can get this event if your program exits due to an unhandled exception. What you need to do is to modify your app to catch the exception and log it. You can then examine the excep ...Show All
Brombomb How to make Invoice Form
By using VB.net How I can design Invoice form Belongs Customers Thanks and waiting your replay Well it should be, if it works then it works. There are other ways about inserting data more securely and faster in SQL but I am guessing you do not want this just now. The code you have does 1 task it is meant to do - to update the field of a table with the quantity. you create it the way you wish. To have an invoice form to be printed out, check out the printdocument control in .NET 2.0: http://windowssdk.msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx The invoice form will of course be populated with the data you wish to be populated with. The question is a bit too general ...Show All
usefulacct Dates in PropertyGrid
There seems to be a bug with dates properties shown in the PropertyGrid. When the value column of the PropertyGrid is wider than the standard monthview control, the dropdown extends the whole of this width, with the monthview appearing on the left, and a large amount of white space to the right. This doesn't look great. What's curious is that if you look at date property of a control in the properties window of Visual Studio, e.g. the MaxDate of a monthview control, this bug doesn't occur, i.e. the dropdown appears on the right and has a width which matches that of the monthview control that it contains. Any views on how to get this correct behaviour in one's own applications Done ...Show All
Sorcerer14 .NET Framework 2 adoption - Require it in windows update!?
Why is it so hard to find information about when .NET Framework 2 will be REQUIRED This is a HUGE concern for me in adopting .NET (and shouldn't it for most people who require their app to be downloaded by the general public ). It turns my nice 3.5mb app and blows it up to a 27mb download. This is ridiculous and is making me reconsidering developing in .NET. Why not then just build it in Java and support all OSes then if you require a framework to be downloaded Come on M$, require it in windows update, or forget about it. At least give us a yes or no answer if it will ever be required. .NET is an OPTIONAL choice, not required within Windows. You can just bundle in the .NET Framework in your inst ...Show All
jay1_z Cannot get custom action to build in my setup project
Uggh, This seems like it should be so simple. I've created a Win32 dll, with an exported function as follows: UINT __stdcall Uninstall ( MSIHANDLE hModule ) { /* display's a msg box 4 now */ } Then I created a .def file for the project that defines the export as follows: LIBRARY "UninstallCustomActions.dll" EXPORTS Uninstall This builds fine, and I can use dll explorer tools to examine the exported functions, and mine is there and looking good. However, now I add this project output (I tried adding the dll directly as well) to the installation project, create a custom action for uninstall and select this dll. I set the EntryPoint property to Uninstall, and make sure the InstallerClass property ...Show All
JawKnee BindingSource.AddNew returning primary key from DB
I am binding a DataGridView to a BindingSource as follows. myConnection = New SqlConnection(My.Settings.Default.ConnectionString) dset = New DataSet() Dim qry As String = "SELECT * FROM approvals" Try adapter.Fill(dset, "approvals") bsource.DataSource = dset.Tables("approvals") dgv.DataSource = bsource Catch ex As Exception MessageBox.Show(ex.Message) End Try The DGV behaves as normal, except when user adds a new row (either using the DGV or with bsource.AddNew() ) I need the primary key field to auto populate correctly as it does when the DGV is implemented using the "Drag 'n' Drop" method of databinding. When user adds a new row, the ...Show All
