Recent content by wabs27

  1. W

    Combobox in DataGridView - How to Populate?

    Hi, 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...
  2. W

    Problems with Array, DataReader, etc

    Hi John, 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: RunDR(TempRecord.yID...
  3. W

    If statements that look at more then one variable

    instead of: if radIntro1.checked = true + if radBody3.checked = true + if radconc1.checked = true Then lblMark3.visible = True try: if radIntro1.checked AND radBody3.checked and radconc1.checked Then lblMark3.visible = true end if
  4. W

    Problems with Array, DataReader, etc

    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...
  5. W

    Properties of TreeNode

    Thanks for informing me about the tag property. That does the job for me. Thank you.
  6. W

    Properties of TreeNode

    Hi, 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...
  7. W

    Preventing Software Piracy

    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?
  8. W

    Moving data between different forms/windows.

    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. Hope...
  9. W

    Inserting Unbound Items to a Bound Combo Box

    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...
  10. W

    Populate a combo box from a stored proc.

    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")...
  11. W

    Inserting Unbound Items to a Bound Combo Box

    Hi, 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...
Top Bottom