Visual C# Developer Center > Visual C# Forums > Visual C# General > Referencing other strings in C#
Ask a questionAsk a question
 

AnswerReferencing other strings in C#

Answers

All Replies

  • Tuesday, November 03, 2009 10:01 PMScottyDoesKnow Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    If you want to change the text it displays, double click on the button in the form designer and it will create an event handler for you. Inside the event handler type:

    theNameOfYourButton.Text = "The text you want to show on the button.";

  • Tuesday, November 03, 2009 10:17 PMDr. C. Nile Dementia Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    No, I want it to, in the form.cs window, reference another string so that, when I run the program, it runs what this other string says.
  • Tuesday, November 03, 2009 10:19 PMP.Brian.Mackey Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    You need to learn the basic terminology of programming or post your source code and requirements before we can help you.  Your question makes no sense.
    Good coding involves knowing one's logical limits and expanding them as necessary.