Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How can I make certain items disabled.

 

For instance lets say I have this

 

Drop down box1:

Item1

Item2

 

Drop down box2:

Item1

Item2

Item3

 

And if they select anything in drop down box 1, I want Item1 and 2 in drop down box 2 to disable or be unselectable, but 3 to still be available.

Posted

Couldn't you have a case statement on either the lost focus event or text changed event.

 

I.E.

Case 1

DropDownBox2.Items.Add (Item3)

Case 2

DropDownBox2.Items.Add (Item1)

etc

 

Hope this gives you some food for thought.

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

-- Rick Cook, The Wizardry Compiled

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...