JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Immediate Solutions: Setting Title Bar Text

You've submitted your project to the user testing stage and feel smug. What could go wrong? Suddenly the phone rings—it seems they don't like the title in the program's title bar: "Form1". How can you change it?

Setting the text in the title bar of a form couldn't be easier. At design time, you just change the form's Text (formerly Caption) property. You also can set the Text property at run time in code like this (technically, one should use Me.Text in this case, but the current form is the default in this code):

Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click
        Text = "Welcome to my Application"
End Sub
Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor