| | |
Windows forms
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
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.
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.
C# Syntax (Toggle Plain Text)
private void comboBox1_Enter(object sender, EventArgs e) { //Hides ComboBox 2. comboBox2.Visible = false; }
My very first baby boy, coming December 2008. :D
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
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.
•
•
Join Date: Nov 2008
Posts: 44
Reputation:
Solved Threads: 4
the same with papuccino1 but "Enable" it is.
.Net Developer - 3D Game Designer
My Portfolio/Blog: http://www.hieu.co.uk
My Portfolio/Blog: http://www.hieu.co.uk
![]() |
Similar Threads
- How get mail outlook data and import it to Windows Forms? (C#)
- CrystalDecisions.Windows.Forms not found. (VB.NET)
- How to display variables in Windows Forms Aplication? (C++)
- autoscroll is not a member of Systems.Windows.Forms.Panel (VB.NET)
- About Windows Forms C# .net 2003 (C#)
- Arranging Windows Forms (C#)
- pointers to windows forms (C)
- Windows Forms Question (C#)
- Using Windows XP Visual Styles with Controls on Windows Forms (VB.NET)
- Displaying pictures on Windows Forms using subprocedures in VB.NET (VB.NET)
Other Threads in the C# Forum
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion csharp custom database datagrid datagridview dataset datetime dbconnection degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot math mouseclick mysql networking operator path photoshop picturebox pixelinversion post prime problem programming radians regex remote remoting richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






