Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to change the title text of a form

how to change the title text of a form

Scheduled Pinned Locked Moved C#
tutorialcsharpc++databasequestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    faladrim
    wrote on last edited by
    #1

    hi, im using 4 forms in one application, and i want them to have another name than form1... i know i can do this by clicking on the property of the form, but the names will change. for example one of the forms shows a database of the day, so i want to name it : database + the day that we are. so does anybody know the code to do this? i know that u can do it in c++ so it most be possible in c# thxx

    D 1 Reply Last reply
    0
    • F faladrim

      hi, im using 4 forms in one application, and i want them to have another name than form1... i know i can do this by clicking on the property of the form, but the names will change. for example one of the forms shows a database of the day, so i want to name it : database + the day that we are. so does anybody know the code to do this? i know that u can do it in c++ so it most be possible in c# thxx

      D Offline
      D Offline
      Dominik Reichl
      wrote on last edited by
      #2

      A System.Windows.Forms.Form object got a Text property, which is the title of the window. If you're in the class derived from Form (for example in the Load event handler), you can set the title text by

      this.Text = "New titlebar text";


      _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;) (doesn't work on NT)

      F 1 Reply Last reply
      0
      • D Dominik Reichl

        A System.Windows.Forms.Form object got a Text property, which is the title of the window. If you're in the class derived from Form (for example in the Load event handler), you can set the title text by

        this.Text = "New titlebar text";


        _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;) (doesn't work on NT)

        F Offline
        F Offline
        faladrim
        wrote on last edited by
        #3

        thxxx alot :D

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups