![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2005
Posts: 3
Rep Power: 0
![]() |
Click event triggered unexpectedly
In response to the user selecting an item from a dropdown list, a value is assigned to another dropdown list on the same form. When this assignment is made, it triggers the "click" event for that other dropdown. Why should this be? Can I stop it from happening?
Private Sub Step_Click() Select Case Step Case "New Diameter" Transition.Visible = True TransitionLabel.Visible = True Transition.Text = "Step" End Select End Sub() The line Transition.Text = "Step" triggers the Transition_Click() event, and in doing so, generates an unrelated error. |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Jan 2006
Posts: 7
Rep Power: 0
![]() |
If i understand you correctly, when you click on one combo box and make a selection, you want that value to be added to the other combo box.
This is simple, say we have two combo boxes named "one" and "two" Private Sub one_Click()
two.AddItem (one.Text)
End Sub |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command Prompt | SkyPioneer | Coder's Corner Lounge | 5 | May 3rd, 2006 11:07 PM |
| School's Out Bash - LAN Event in Ash Flat, Arkansas | bigguy | Coder's Corner Lounge | 21 | Apr 24th, 2006 5:12 PM |
| callback functions | aloksave | C++ | 16 | Nov 21st, 2005 10:10 AM |
| question: usage of delagates and custom events | melbolt | C# | 1 | Oct 3rd, 2005 8:17 PM |
| Help! I have a problem | thomas55 | C++ | 1 | Apr 24th, 2005 2:16 PM |