VB/C# - Change window caption

In this tutorial I'll teach you how you can change the caption of the titlebar in Visual Basic / C#.

For those of you who don't know what the titlebar is:

 

Now, there are two ways to change the title bar's caption;

*Via the properties
*Via a line of code

Via the properties:
 

Click on your form, and go to the properties:

Now, all you have to do, is scroll down and look for a propertie called Text:

 Change the Text to whatever you wish.

Via a line of code:

Double click a button, a label, your form, a timer,... and add this code:

VB: Me.Text = "YourTextHere"
C#: this.Text = "YourTextHere";


Topic: VB/C# - Change window caption

Date: 06/06/2012

By: PCMike

Subject: Thanks

Thank you! Life savers!

Reply

—————