I have used 2 combo box ,how can i enable 1st combobox when i click on 2nd combobox viceversa .if i am entering a data in 1 of the combobox then another should be disable ,but after entering data in the any 1 of combobox ,again clicking on the another combobox to enable it and disabling the entered data combobox.
can i get some hlp .
jatinder_44
0
Unverified User
Recommended Answers
Jump to PostI would suggest the KeyPress and GotFocus functions. If one gets focus, the other is disabled. Then, if a specific key is pressed (enter or esc), the other is again enabled.
Jump to Postyou just need to enable and disable the controls on specified event.
Jump to PostI'm thinking why you want something like that.
If you work with combobox1.enabled in the gotfocus event of combobox2,
than the combobox1 hasn't got a focus anyway. And viceversa.
Default by clicking on a control it gets the focus.
So how could a user change the other combobox?
What is …
All 11 Replies
scudzilla
32
Junior Poster
debasisdas
580
Posting Genius
Featured Poster
PVBert
0
Junior Poster in Training
manoshailu
12
Junior Poster
jatinder_44
0
Unverified User
scudzilla
32
Junior Poster
manoshailu
12
Junior Poster
qasauria
0
Newbie Poster
jireh
3
Posting Whiz
AV Manoharan
0
Junior Poster
jaasaria
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.