Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form caption
Message
De
07/07/2005 01:02:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01029813
Message ID:
01029831
Vues:
17
>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform