CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: [RESOLVED] change label text dynamically

  1. #1
    Join Date
    Jan 2008

    [RESOLVED] change label text dynamically

    I am working in Visual Studio. Working on a form. Messing around to see if I can create something. I have added a label to the form and gave it a name of currentMonth. I want to get the current month and have it change to the current month every month. I am having trouble getting the code to work because I get an error that the name doesn't exist. I just tried something like this to see if I could get it to work

    currentMonth.Text = "September";

    What am I doing wrong?

  2. #2
    Join Date
    Jan 2008

    Re: change label text dynamically

    Solved, I do believe my form was corrupted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)