Answer Questions
LKHall How to clear the datagridview?
this .tblSPFCompanyDataGridView.DataSource = null ; this .tblTestResultsDataGridView.DataSource = null ; this .tblInspectionTestDataGridView.DataSource = null ; this .tblSPFCompanyBindingSource = null ; this .tblTestResultsBindingSource = null ; this .tblInspectionTestBindingSource = null ; this .tblSPFCompanyDataGridView.DataSource = this .tblSPFCompanyBindingSource; this .tblTestResultsDataGridView.DataSou ...Show All
tinybunny_8 .NET Memory Consumption
Hi All Here's something interesting: Launch your Winforms app. Open task manager, look at the memory used on this app/process. Minimize the app, look at the memory. Restore the app, look at the memory! Why does it take SO much memory to "launch" ye ...Show All
Johnny Ni Dependant tasks? Subtasks?
Has anyone tried implementing a way to provide subtasks functionality What I would like to be able to do is create tasks that are "under" another task. i thought the exact same thing when i first saw it...I haven't ha ...Show All
racerx How to get all selected rows in a datagrid
Hi great guy, I have a datagrid on my VB.net windows form. I have 2 questions porfavor:) 1/ How do I restict and prevent the user from selecting several rows at the same time in my datagrid. what property should I use. 2/ In case I allow multi-row-selection in my datagrid, how do I get all the selected rows in the datagrid so that I can add all the relevant values to my database. I only could find the help for getting the current sele ...Show All
Christian Hund XP Style problems with treeview
In my application I have a treeview (with some nodes) docked on left on a winform. Before Application.Run, I call Application.EnableVisualStyles and then Application.DoEvents in order to enable windows xp style for controls. When I start the application, th ...Show All
Shorin ActiveX Control Running on Separate Thread
Hi all, I have an ActiveX control developed in Visual C++ 6.0 that I want to use in a C# project. I want the ActiveX code to run on a separate thread, but can't seem to get it to work. If for example my ActiveX member has ...Show All
VJ_AS Tell VS.NET to ignore certain code???
Hi All, I have some code that sets the initial location and size of a form. It is supposed to only be run at run-time -- but VS.NET seems to pick up on this code (in the OnLoad event) and move the form in design time! (so it ...Show All
THoffman What is the event on a listbox when adding/removing items ?
Hi everyone, In my program, I have two different way to add objects in my listbox. One being by doing mylistbox.Items.Add(Myitem). and the other one by dataSource. As found the event for the onDataSourceChanged but it doesn't triger when adding or removing from the items collection. His there any events I could use thanks. Yes I could do that but it is pretty anoying to call a function everytime i'm ...Show All
jdrean Clickonce deployed database overwrites existing data when upgrading
Hi, Im using Visual Basic 2005 beta with a database 'books.mdb'. When I publish using clickonce, then run the setup file, it install/upgrades over the previous version I have installed. However, the empty books.mdb deployed with setup overwrites the existing books.mdb and all the book data I have entered using my program disappears. Is there a setting to control what happens to deployed files/ database files in the upgrade situation, as opp ...Show All
mahenrana Finding ComboBox Item By Value
I know about the FindString() method, but it's only for the DisplayMember. Is there a way to search by ValueMember What's the normal way to handle what I want to do isthe combo box bound to a datacolumn if so, you can use  ...Show All
kts Windows Forms Inheritance Bug ?
I have a 3 level inheritance. class Level1 : System.Windows.Forms {} class Level2: Level1{} class Level3 : Level2 {} in the load event from Level1 I call a overidable method, that in Level2 is override and in this I make some initialization for information on the form, DataBinding and one SqlDataAdapter, but when I whant to see the designer for the Level3 the designer show me errors, why If this a problem in my whay of programming or ...Show All
JSAdams FindControl.
Hi everyone, Does anyone know what would be the similar of FindControl method from Web library to from Windows.Forms library I need to get what controls do I have inside a panel, like TextBox, etc. Thanks in advancing. Doria Apparently this method was left out of windows forms. Too bad, I can see cases where it would be useful. You will just have to iterate recursively through the Controls collection of your fo ...Show All
Morten Nielsen Drawing a point on a Custom UserControl
Hi all, I know this is very easy in .NET to draw different types of shape but how can I draw a point on the UserControl. I couldn't find a DrawPoint() method in MSDN. Would anybody please tell me how I can draw a point Thanks a lot. Use Graphics.DrawEllipse(Pen, X, Y, 1, 1) or Bitmap.SetPixel(X, Y, Color) ... To draw a point, you can use Graphics.FillEllipse. Thank you very much for your reply ...Show All
P-ter Autoscroll
When I use AutoScroll, scrollbars never show up if the controls are outside of the container to the left or top of it, only to the right or bottom. How do I fix this The only thing you have to do is set the scroll bars so that the view reflects the previous view, that won't be so hard. Jelle over and out ;) I started out setting the control's location in the mousemove, but that resulted in&nb ...Show All
kptWichura Datagrid: Change background color of a single row
Hello, Let me first explain the situation: I have a datagrid with several rows (yes, i know, that's what a datagrid is for ). Now when i press a certain key (lets take F5 for example) i'd like to change the background color of the currently selected row. Now my problem is that i've found no solution how to change the background color of the selected row. But i'm sure here are several pros who can give me five lines of code as an example Oh, ne ...Show All
