Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Main form text property as task bar title
Message
De
13/06/2007 19:50:59
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
C#
Catégorie:
Code, syntaxe and commandes
Titre:
Main form text property as task bar title
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01232818
Message ID:
01232818
Vues:
63
I tried to post this already and lost it so if I posted twice I appologize.

I would like to change the text value displayed for the application in the task bar at runtime. If I change my main forms text property at design time it changes as I need, but it doesn't work at runtime. Any ideas appreciated.

In the Main()
Application.Run(new frmMain(fullscreen, ID);

The constructor
public frmMain(bool fullscreen, string id)
{
this.text = id;
...
InitializeComponents();
}

Update: Argh how did this get in the web app forum!! It was intended for the windows app forum. TB
Timothy Bryan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform