![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Oct 2004
Posts: 2
Rep Power: 0
![]() |
Can I make a Combo Box start out with a default selection?
Is there anyway to make the combo box longer? How do I change something based on the selection I've made in a combo box? I wrote: If cboGenConType.Text = "General - Energy" Then cboGenConUnit1.AddItem = "BTU(international)" End If |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
! Make it bigger...
cboGenConUnit1.height = whatever
cboGenConUnit1.index = 1 ! This references the index of the
! array of items in the textbox...
! 1st(1), 2nd(2), etc...Hope this helps
__________________
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Oct 2004
Posts: 2
Rep Power: 0
![]() |
I get an error. It says:
Compile error: Can't assign to read-only property |
|
|
|
|
|
#4 | |
|
Programming Guru
![]() ![]() |
Quote:
For everything else, maybe try reading this: http://msdn.microsoft.com/library/default....objComboBox.asp
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|