Does anyone with any C# knowledge know if its possible to remove the form title via check boxes.
I can make a check remove the title using this.Text = ""; line but I can't work out how to link this to the .Checked code which lets it change every time you change its state.
An example of this would be programmerNameLabel.Visible = hideProgrammerCheckBox.Checked;
Mike
0
Some help with C#
Started By Mbob61, Oct 15 2010 23:41
3 replies to this topic
#2
Posted 16 October 2010 - 14:43
If i understand properly, you want to change the window title every time the user changes the checked state of the checkbox? If that is the case, there is an event called "CheckedChanged" or something with a similar name. You can catch that event and change the window title.
#3
Posted 16 October 2010 - 15:05
Yep, that's the general practice in any event-driven library. Attach an event handler to the event in question, then change the window title in the event handler.
Edited by CodeCat, 16 October 2010 - 15:06.
CodeCat
Go dtiomsaítear do chód gan earráidí, is go gcríochnaítear do chláir go réidh. -Old Irish proverb
Go dtiomsaítear do chód gan earráidí, is go gcríochnaítear do chláir go réidh. -Old Irish proverb
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users