Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form caption
Message
 
To
06/07/2005 23:52:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01029813
Message ID:
01029827
Views:
15
This message has been marked as the solution to the initial question of the thread.
Hilmar,
Make sure you put the code after InitializeComponent()
public Form1(string paraCaption)
{
	InitializeComponent();
	this.Text = paraCaption;
}
Einar

>I tried to assign a form caption, depending on a parameter passed to the constructor.
>
>I tried both of the following alternatives:
>
>
>Text = "Some caption";
>
>// or:
>
>this.Text = "Some caption";
>
>
>According to the debugger (and also, if I change the commands to a MessageBox()) the commands get executed, but the title doesn't change.
>
>By the way, I have the commands in a form constructor, which accepts a string parameter; the caption is supposed to change depending on the caption.
>
>TIA,
>
>Hilmar.
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform