Answer Questions
Mohanraj_k Night Vision
I am working on a military application that needs to support a "night vision" mode - that is, make the application appear in a green scale color pallet to make it easier on the eyes in reduced lighting. Now, I know I can take an approach that will "skin" or "theme" my application to make it appear green (our GUI COTS product Infragistics NetAdvantage makes this possible), but it still isn't a 100% solution because we would need to re-do all of our images/icons that we use in the app to a green scale version, and then code the functionality to change the images at runtime when needed. Further, because we display maps and map information, there isn't an easy way to change all of the maps into a green scale. Havi ...Show All
MarcD99 Select row based on a value
Hi again! Is it possible to autoselect a row on a Datagridview (DGV) based on a cell value If so, can you give me code sample For example: I'm opening a form with a DGV, and I wanted the row that contais the cell with the value X to be selected as the form loads... Thanks... string x = "ABC"; foreach (DataGridViewRow row in grid.Rows) { if (row.Cells[columnName].Value.ToString() == x) { row.Selected = true ; break ; } } thank you ...Show All
aguess Sorting with DataGrid & DataGridView controls...
The Grids are a great way to display data, but I just noticed that sorting text columns poses a hiccup. Specifically, if I have three rows with IDs: BB1, BB2 & BB10 Then the Grids sort them in the order BB1 BB10 BB2. This is particularly problematic in my case as I use the data in Grids to generate printed reports, & I want the data to be sorted in true alphanumeric sense. So, is there a way to achieve the desired affect The rows sorted by string,you should transfer string value to int ,and sort again. Hi as the rows sort by string in your case, I suggest add one hidden column, and use substring of column1(bb1,b10,bb2), get(1,10,2), convert them to int, then sort by the hidden ...Show All
.net sukbir Window class name is not valid
When I create a new WindowsApplication project, add any control to the main form and run the project - I get the following exception on Application.Run(new Form1()); I am using VS 2005 beta2.050215-4400. This haven't happened until now. What went wrong Any help will be appreciated Gabriel The exception data follows: System.ComponentModel.Win32Exception was unhandled Message="Window class name is not valid." Source="System.Windows.Forms" ErrorCode=-2147467259 NativeErrorCode=1400 StackTrace: at System.Windows.Forms.NativeWindow.WindowClass.RegisterClass() at System.Windows.Forms.NativeWindow.WindowClass.Create(String className, In ...Show All
jcnconnect no selected cells in the datagridview
Hello, I am writing a programme with the datagridview, just to visualize data in the DB. I have sent the enabled property to false, so the user cannot select any cells. But at startup, the first cell is selected. As I am using colors in my grid, it is not pretty. How can I set things, so no cell is selected Thx, Bart ah yes...thats the one i was looking for. DataGridView.ClearSelection() im unsure if this works but have you tried to Invalidate the Cell (InvalidateCell( Column, Row )) I usually unselect it after I set the datasource DataGridView1.DataSource = dt DataGridView1.Item(0, 0).Selected = False ...Show All
simon_56387 VB.NET 2k5 Java applet in webbrowser
hi all, I am relatively new to vb.net 2k5 and i have a pretty annoying problem. I want to display a java applet by putting the <applet></applet> tags into the documenttext of a webbrowser. But the webbrowser only shows me a white screen. When i load this same code on my local machine, it runs fine in Internet Explorer. I can also load a java applet with documenttext if it is already embedded into an online webpage (which means that i have java installed correctly). I have no idea what the problem might be.....some people told me it SHOULD be possible to load <applet> in documenttext. Maybe i need some extra html codes Thank you very much, Tai Umm, make it a javascript function that does a document.w ...Show All
Khookie Shortcut Assignment Not Diplaying On Button Controls
I'm using VS2005 w/ beta SP1 in XP Pro. I am assigning shortcuts to buttons but the underline is not displaying on the button during development or runtime. The shortcut assignments work but are just not displaying properly. These buttons are also placed in a splitContainer panel. Could this be the problem If not, is this a known issue Thanks, cj It became visible when I changed my Windows setting. Now I'll just have to adjust the user's settings somehow. Hi, I have Windows XP and I have disabled the checkbox "Hide underlined letters for keyboard navigation until I press the Alt ", but the underline for the buttons' accesKey doesn't show neither i ...Show All
Ty Newton Adding data to datagridview progamatically
Hello all, Im having a problem... I have data to add into a datagridview. The datagridview will use 2 columns. Everything is working except when i add data to the 2nd column, it adds it to the 1st column. Here is the code i am using to add data to the 2nd column. for ( int i = 0; i < dm.GetValue2.Count; i++) { this .dataGridViewCaseType.Columns[1].DataGridView.Rows.Add(dm.GetValue2 .ToString()); } So shouldnt this be working heh I use this same format to add data into column[0] and it works correctly. Has anyone encountered this before and know what i may be doing wrong Thanks for any information. Solution: for ( int i = 0; i < dm.GetValue1.Count; i++) { this .data ...Show All
BuNnY_MoOn Add Blank Row
How can i take a databound comboBox and have it databound but i want the first row to be blank....any way to get that done set the comboxBox.SelectedIndex = -1 ...Show All
clint 2 c# and .mdb or any other database application
I am working on a project that I will be using Microsoft Access to store data. When I package this software, is there a Microsoft Access Runtime I can include that will allow other users to use my software without having Microsoft Access Installed Hopefully that is clear enough. My software uses Microsoft access but if a user does not have Access or a runtime they will not be able to use my software. Thanks in advance -Mike It depends on how you are accessing the data inside of the Access database. If you are using Access database strictly to keep the data and work with it from the .NET application, then I believe you do not need any additional lic ...Show All
jomunoz Custom control for time editing
Hello. I need to implement a custom edit control for entering a time in the format: Hours:Minutes:Seconds where Hours can be 0-65535, Minutes and Seconds 0-59. I need a spin control (up down arrows) like in the standard DateTime control as well. I want using msctls_updown32 spin control, 2 static controls for displaying collons and 3 edit controls with custom key down handlers. I believe it is like the Windows has its own control implemented. My problem is that i failed to find how i can create a window/control by the class name. Please advise how i can do it. Thank you. Thank you, I will look at it. For an example of how to base your control from the system msctls_updown32 window class see http://www.koders.com/csharp/fid57D ...Show All
yfradkin Need to abort uninstall based on user input
Hi, I am creating an MSI using Visual Studio 2005, setup wizard. the install and uninstall are done silently. One of the uninstall custom action is to stop a service (using a VB script, i basically open up a shell and execute a net stop), the service name is given as parameter of the silent uninstall, i want to be able to abort the uninstall if the service name is invalid or null. Any suggestions Thanks Dinesh A cheesy way to do it is give the service name to a new watch process that kills the uninstall process if the service name is invalid. Since there is no commit it wont matter if the msi process die or not. A watcher process is a good way to get around msi limitations like not being able to run 2 ...Show All
mkamioner Can i use ClickOnce
hi all. I have created a windows app that i want to distribute to my users for installation. I am testing out the clickonce technologi, but there is something i can't figure out. When i publish my app, i publish to a public server. All users can click to install. So far so good. But where is this program installed on client computers. If i search my computer i can't find the installation folder or icons. I have a icon in my start-menu which starts my application, but i also use settingsfile in my app. Where can i find this I am beginning to belive that i can't use click once and that i have to create a normal setup project . My application is beeing further developed so i need the "new version available". Can i ...Show All
nigor How to calculate the coordinates of text-entry fields in pre-printed forms?
I would like to write an application in C# to collect data from users and then print them on pre-printed forms (examples of pre-printed forms: visa application forms, employment application forms, social insurance application forms, etc...). The forms have hundreds of text-entry fields. What is the best way to print the data on the forms I guess I have to calculate the coordinates of each text-entry field to do printing. If so, what approach would you recommend By the way, is C# a good programing language to write this type of application Is there any other programing language that you you would recommend I am pretty new to C#, so I don't mind switching to another language if it's better suited to my need to write the application. T ...Show All
Igor L. Kravchenko Can designer be loaded in a background worker process?
I have a project which saves users' form design pretty muck like we do in the VS. Then next time users could reopen the saved form and load it back to the designer. Since it takes quite a bit of time to load some forms with more than 100 controls (2-3 minutes), I'd like to show a progress window while the designer is being loaded. I tried to put the designer creation in a separate process but it throwed errors. I'm wondering is it at all possible to have the designer created and loaded in a separate process The following is a code snipped I used to load the designer in a separate process: ProgressDlg progressDlg = new ProgressDlg (); ThreadPool .QueueUserWorkItem( new WaitCallback (CreateNewDesignerInstance), null ); Ple ...Show All
