I have a datagridview that is getting it's datasource from a dataset (which was populated from a stored procedure).
The datagridview holds information about products such as ProductName, ModelNumber, Price, Vendor, Category, etc. I have the datagridview columns being generated...
Thanks for answering. I'm a bit confused though. The reason I used an array is because I can not have multiple datareaders open at one time. You mentioned
. The code to bind the created treenode to the treeview is the recursive function that was commented out:
if radIntro1.checked = true + if radBody3.checked = true +
if radconc1.checked = true Then
lblMark3.visible = True
if radIntro1.checked AND radBody3.checked and radconc1.checked Then
lblMark3.visible = true
I've ran into a problem that's been driving me crazy.
To introduce, I have a self-reference table in my database to manage categories. For instance:
ID, Name, Path
Where path references the the ID of another record in the same table.
Now, I am trying to create a treeview of all the...
I am pretty new to TreeView and ran into a bit of a problem. I am currently populating my treeview from a datareader and it is working fine with the parent and child nodes. My problem is that I need to display the FieldName from the database, but I still need the FieldID value to make...
Not sure if this has been discussed here or not, but I am interested in hearing different approaches people take to prevent their applications from being pirated. What approaches can be taken to make sure no one redistributes my application?
Not sure if this is the best solution, but it works for me.
You can create a global variable (declare it in a module). In form1 you can write the values to the variables. In form2 you can add some logic and read those variable to calculate a function, or to just display on the screen.
I have done some research around here and learned that in such a case we can iterate through the dataset in a loop and add each record into the combo box instead of binding the data to the control.
I ran into a small problem with this though. The method I know of to add data to a combo box...
i have used it doing a dataset. Then you set the valuemember and displaymember properties to the fields from the dataset and set teh datasource of the combobox to the dataset.
I have a question if anyone can help. How can you add an unbound item (such as "Select...", or "Add New")...
I have a data bound combobox in my application. I would like to add some unbound items to the same combo box. For example, instead of the first record being selected, I would like to have an item "Select...". I would also like to add an "Add New" item to the combo box which would take...