←  Code Block

Fallout Studios Forums

»

Some help with C#

Mbob61's Photo Mbob61 15 Oct 2010

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
Quote

Raven's Photo Raven 16 Oct 2010

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.
Quote

CodeCat's Photo CodeCat 16 Oct 2010

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.
Quote

Mbob61's Photo Mbob61 16 Oct 2010

Cheers guys 8|
I will see what i can do 8|

Mike
Quote