Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 11th, 2006, 5:44 PM   #1
ParadiseIsle
Newbie
 
Join Date: Nov 2005
Posts: 3
Rep Power: 0 ParadiseIsle is on a distinguished road
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.
ParadiseIsle is offline   Reply With Quote
Old Dec 16th, 2006, 8:25 PM   #2
kyndig
Newbie
 
Join Date: Jan 2006
Posts: 7
Rep Power: 0 kyndig is on a distinguished road
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
kyndig is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:35 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC