Windows forms

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Dec 2008
Posts: 14
Reputation: Filipe11 is an unknown quantity at this point 
Solved Threads: 0
Filipe11 Filipe11 is offline Offline
Newbie Poster

Windows forms

 
0
  #1
Dec 15th, 2008
I need to know to turn off a combobox, and a trackBar! I explain, when you select an item from a combobox, I would like to disable another combobox and a trackbar in the same form ... Who can help me?
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Windows forms

 
0
  #2
Dec 15th, 2008
Well what have you tried so far?, sounds simple enough. What exactly are you stuck on?
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 14
Reputation: Filipe11 is an unknown quantity at this point 
Solved Threads: 0
Filipe11 Filipe11 is offline Offline
Newbie Poster

Re: Windows forms

 
0
  #3
Dec 15th, 2008
rather it is simple, just do not know the "code" to block a combobox and a trackbar (eg. combobox6.***), that you can not move these components, yhat you cant select an item...You know what I mean??
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Windows forms

 
0
  #4
Dec 15th, 2008
You mean disable it..

(see if thats a big enough hint)
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 14
Reputation: Filipe11 is an unknown quantity at this point 
Solved Threads: 0
Filipe11 Filipe11 is offline Offline
Newbie Poster

Re: Windows forms

 
0
  #5
Dec 15th, 2008
Yes, is how to disable it...But I dont know how to do it!!I already tried to make comboBox6.MaxDropDownItems = 0, but we can not ...
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 598
Reputation: Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough 
Solved Threads: 95
Murtan Murtan is offline Offline
Posting Pro

Re: Windows forms

 
0
  #6
Dec 15th, 2008
Maybe you should look for a method to disable a control.

(second big hint)
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 45
Reputation: papuccino1 is an unknown quantity at this point 
Solved Threads: 1
papuccino1's Avatar
papuccino1 papuccino1 is offline Offline
Light Poster

Re: Windows forms

 
0
  #7
Dec 16th, 2008
It's easy my fellow programmer.

First you want to component to hide when something else happens right? Then here's what you do:

Click on the component you want and on the properties slab (press F4) click on the Lightning Bolt (4th icon from the right).

There you will see a big list of events, just choose the one that fits best for your situation and then press enter or double click it to be taken to the programming part of that particular event. Everything your program here will happen ONLY when your event takes place.

Then it's just a matter of programming the .enabled part of the control to activate / deactivate or the .visible to show / hide it.

For instance.

  1. private void comboBox1_Enter(object sender, EventArgs e)
  2. {
  3. //Hides ComboBox 2.
  4. comboBox2.Visible = false;
  5. }
My very first baby boy, coming December 2008. :D
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Windows forms

 
0
  #8
Dec 16th, 2008
I dont think he wants it hidden, but disabled.. but its not like you havent told him the right thing, it would just seem the opposite of disabled isnt the same the world over.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 44
Reputation: hieuuk is an unknown quantity at this point 
Solved Threads: 4
hieuuk hieuuk is offline Offline
Light Poster

Re: Windows forms

 
0
  #9
Dec 16th, 2008
the same with papuccino1 but "Enable" it is.
.Net Developer - 3D Game Designer
My Portfolio/Blog: http://www.hieu.co.uk
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Windows forms

 
0
  #10
Dec 16th, 2008
exactly but Im not sure shouting enable would be loud enough.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC