combo box

  • Thread starter Thread starter Shannon
  • Start date Start date
S

Shannon

I'm filling values into a combo box. I'm using the combobox.items.add() to
do this. the combo box will have 1-6 as it's values. Then I want to set
the value that will show up as highlighted in the combo box. I was trying
to use combobox.selectedvalue=3 to have the value of 3 show up. I've used
this before, but it's not working for me now.. I'm trying to write this in
the compact framework of Visual studio 2003 for the pocket pc. can anyone
tell me what I'm doing wrong. thanks
shannon
 
Dim n As Integer

Dim x As Integer

n = 1

x = 6

comboname.Items.Add("")



While n < 7

comboname.Items.Add(n)

n = n + 1

End While



then what I want to do is tell the combobox what value I would like to have
preselected.. I thought something like this woudl do it


VB Code:

comboname.selectedvalue = 3 'three is actual display value

does that help..
thanks
shannon
 
Use comboname.Tex

<Mark /

----- Shannon wrote: ----

Dim n As Intege

Dim x As Intege

n =

x =

comboname.Items.Add(""



While n <

comboname.Items.Add(n

n = n +

End Whil



then what I want to do is tell the combobox what value I would like to hav
preselected.. I thought something like this woudl do i


VB Code

comboname.selectedvalue = 3 'three is actual display valu

does that help.
thank
shanno
 
Back
Top