>>Hilmar,
>>Make sure you put the code after InitializeComponent()
>>
>>public Form1(string paraCaption)
>>{
>> InitializeComponent();
>> this.Text = paraCaption;
>>}
>>
>
>Thanks.
>
>Sure enough, I had put it before. Your suggestion made it work; it is indifferent whether I use
Text or
this.Text.
>
>Now I also realize the reason - InitializeComponent() will simply overwrite whatever assignments I make.
I am glad it works for you. I think it is cleaner to use this.Text compared to just Text and also the intellisense kicks in after the dot. Most of the time you want to put all your constructor code after InitializeComponent() but there are some cases where you want to put it before (and ofcourse now I can't think of any<s>).
Einar
Semper ubi sub ubi.