ComboBox/Table

Discussion in 'Questions (Windows Mobile)' started by cdeane, Nov 9, 2008.

  1. cdeane

    cdeane Member

    I never worked with a ComboBox(or ListBox) But have worked with Tables.
    I'm having a hard time seeing a connection with the two(ComboBox/Table).
    I've done searches,but it didn't seem to produce the answer I'm looking for.

    Like:

    Selecting from a drop down(or list)and how to Implement your selection to a table.

    Using your text box to work in unison with ComboBox.

    Oh,Im adding data(not files).
     
    Last edited: Nov 9, 2008
  2. klaus

    klaus Expert Licensed User

    Using a Table a Combobox or a ListBox depends on what you wanr to do and show.
    Tables are used to show many data, mainly for databases, where you have several entries for each dataset.
    ComboBoxes and ListBoxes are used to select one item, not a dataset, out of a certain number.
    The ComboBoxes schow only the selected item and take less space on the screen.
    With ListBoxes you can show more than one item that gives the user a better overlook of the possible choices, but they need more space on the screen. It's up to you the programm to dimension it's size for convenience.

    I hope that this short explanation makes it a bit more clear.

    Best regards.
     
  3. cdeane

    cdeane Member

    I was hoping to open a choice of tables I want in a combobox
    to enter data in.
    I have 3 Tables to choose from.

    Each Table have two sets of data(hence the textbox(s).
     
  4. klaus

    klaus Expert Licensed User

    Could you more precise on what you want to do. Do you have asimple example or already some code to look at ?

    Best regards.
     
  5. cdeane

    cdeane Member

    Not really.Code is what im looking for.
    But actually this is what Ive been working with.


    Code:
    Sub Globals
       
    'Declare the global variables here.

    End Sub

    Sub App_Start
       Form1.Show   

    table1.AddCol(cNumber,
    "Yellow",50,false)
     Table1.AddCol (cString, 
    "PPH"50)
     Table1.AddCol (cString, 
    "RPM"50)
     
     table2.AddCol(cNumber,
    "Brown",50,false)
     Table2.AddCol (cString, 
    "PPH"50)
     Table2.AddCol (cString, 
    "RPM"50)
     
     table3.AddCol(cNumber,
    "Red",50,false)
     Table3.AddCol (cString, 
    "PPH"50)
     Table3.AddCol (cString, 
    "RPM"50)
     
     table4.AddCol(cNumber,
    "Green",50,false)
     Table4.AddCol (cString, 
    "PPH"50)
     Table4.AddCol (cString, 
    "RPM"50)
     
     table5.AddCol(cNumber,
    "Black",50,false)
     Table5.AddCol (cString, 
    "PPH"50)
     Table5.AddCol (cString, 
    "RPM"50)
     
     combobox1.Add(
    "Yellow")
     combobox1.Add(
    "Brown")
     combobox1.Add(
    "Red")
     combobox1.Add(
    "Green")
     combobox1.Add(
    "Black")
     
    End Sub

    Sub Button1_Click




    If ComboBox1.SelectedIndex = "Yellow" Then
    Table1.BringToFront
    End If

    PanelTB.BringToFront

    End Sub

    Sub Button2_Click



    End Sub
    Like I said Im sure this is of no help.frusrtaning Im Sure.
     

    Attached Files:

    Last edited: Nov 9, 2008
  6. klaus

    klaus Expert Licensed User

    Here you have two possibilities to BringToFront your Tables according to the selected item, Button1, or index, Button2, in the ComboBox.

    Best regards.
     

    Attached Files:

  7. cdeane

    cdeane Member

    Sorry Klaus,I have 6.3
     
  8. klaus

    klaus Expert Licensed User

    Here is a version 6.30 file.
     

    Attached Files:

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice