Click here to Skip to main content
15,915,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how do i hide the name or title of my form in c#

i have tried the following code nothing happened

Form1 f1 = new Form1 ();
f1.text = " " ;

nothing happen when i test the above code

i tried that code as well . which is

this.text = " " ;

nothing happened .

please help me out
Posted

If you create a new instance, then changes happen to that instance, not to the one that is visible.
C#
Text = "";
Should do it, if you execute that code within the form: from outside you will need to access the Text property of the form instance that is being displayed.
 
Share this answer
 
use this instead of creating new object in form load.

C#
form.Text = string.Empty;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900