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 I change form1.Text

How to I change form1.Text

Scheduled Pinned Locked Moved C#
tutorialquestion
4 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.
  • B Offline
    B Offline
    betterc
    wrote on last edited by
    #1

    All I want to do is change the form1.Text property when I click a button? Could someone provide me with a simple approach? Thank you, cb

    R 1 Reply Last reply
    0
    • B betterc

      All I want to do is change the form1.Text property when I click a button? Could someone provide me with a simple approach? Thank you, cb

      R Offline
      R Offline
      RomanD
      wrote on last edited by
      #2

      form1.ActiveForm.Text = "Text goes here";

      B 1 Reply Last reply
      0
      • R RomanD

        form1.ActiveForm.Text = "Text goes here";

        B Offline
        B Offline
        betterc
        wrote on last edited by
        #3

        Thank you very much for your quick response. I got hung up on using a "Layout" method and a few minutes ago figured out I needed a 'PerformMethod' call. Arrrrrrrrrrrrrrrrgh! If I wanted to write that much code I'd do a novel. Yours is a more straight fowrard approach and thanks. BTW as a newbie ... you would'nt believe the Googling I did to try to resovle this apparently easy issue. Issue closed, thanks again. cb

        R 1 Reply Last reply
        0
        • B betterc

          Thank you very much for your quick response. I got hung up on using a "Layout" method and a few minutes ago figured out I needed a 'PerformMethod' call. Arrrrrrrrrrrrrrrrgh! If I wanted to write that much code I'd do a novel. Yours is a more straight fowrard approach and thanks. BTW as a newbie ... you would'nt believe the Googling I did to try to resovle this apparently easy issue. Issue closed, thanks again. cb

          R Offline
          R Offline
          RomanD
          wrote on last edited by
          #4

          You're Welcome. I suggest getting a book, it will helpyou greatly to get started with C#.

          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