Search results for query: *

  1. S

    [2003] Conditional Registy Sub-key

    I have created a sub-key entry for the registry with an empty string value. When I run the installer, it creates the key properly, but when I create an update (same installer, different version), it overwrites the registry entry (entry used to store a user selected path). I am not familiar...
  2. S

    combobox issue

    Not sure what code you are requesting that i have not already posted other than the code i use to check the selectedindex and the text property, which is nothing more than an if statement. Here is the code as of now. You can scroll up to get the previous code i was using. This is at module...
  3. S

    combobox issue

    dr is a datarowarray. dr(0) is what was returned when i did a datatable.select. I know that only one record will be returned. dtList.Rows.IndexOf(dr(0)) returns the index of that specific datarow in the datatable, which will be the same index in the combobox. If anyone knows an easier...
  4. S

    combobox issue

    I found the problem in this part of the code: Me.cboCompany.Text = "" Me.cboCompany.SelectedIndex = dtList.Rows.IndexOf(dr(0)) The problem is that i have Me.cboCompany.Text = "". The selectedindex is 0, but the text property of the combobox is "". I commented that out and it worked fine...
  5. S

    How to reload a form?

    Build a procedure (not the form load procedure) that is called from the form load procedure You can do 2 things here: 1) Connect to the database from this procedure and gather all of the values to set the button's sizes. Private form_load(...) Handles MyBase.Load SetButtons(True) End Sub...
  6. S

    combobox issue

    This is the code i use. Private Sub frmSelectCompany_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dtList = New DataTable Dim sqliteConStr As String = "DRIVER=SQLite3 ODBC Driver;Database=" & Environment.CurrentDirectory &...
  7. S

    combobox issue

    Has anyone seen this before? If i set the selectedindex of a combobox to 0, it doesnt select the first item in the list. Actually, it returns -1. If i set selectedindex to 1, it selects the second item in the list. Either i have done something wrong, or the selectedindex property is messed...
  8. S

    Combobox datasource issue

    Well...thanks for all the replies. Im not sure exactly what happened, but i transferred the project to a different computer and it is working now. I only made one change to the code. I changed: Dim dtMonthList as DataTable to: Private dtMonthList as DataTable That shouldnt have made a...
  9. S

    Combobox datasource issue

    heh...oops...ok, i took that last line out, but there is still no data. The dropdown list is expanded to how long it needs to be now, but nothing is listed. Updated code: Dim sqliteConStr As String = "DRIVER=SQLite3 ODBC Driver;Database=" & My.Settings.Repository_Path &...
  10. S

    Combobox datasource issue

    Hi all - I am having trouble getting my combobox to populate when i set the datasource to a datatable. I have checked to make sure the datatable has the correct data. I have checked to see if the combobox has any items in it, and it does. When i do ?me.cboMonth.Items.Count in the immediate...
Back
Top