Results 1 to 4 of 4

Thread: [RESOLVED] Need some help: IDE

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    2,012

    Resolved [RESOLVED] Need some help: IDE

    In a program I am currently working on, I renamed one of the forms to remove a space (ie. Main Form.vb --> MainForm.vb)
    But now I have a problem ... when I want to reference a control on MainForm from another module, it doesn't "know" the new name. So when I type MainForm.TextBox1.Text="some text", I get the blue squiggle line under MainForm & the error tooltip says "Name 'MainForm' is not declared." It seems like the IDE does not recognize the new name of the form I renamed. Can anyone help me resolve this? I would greatly appreciate it. Thanks...

  2. #2
    Hyperactive Member mulhearn22's Avatar
    Join Date
    Jun 2007
    Location
    Cherry Hill, NJ
    Posts
    347

    Re: Need some help: IDE

    close all windows, right-click the project name and click build. try it again. let me know if this doesn't work.
    VS 2010 / .NET 4.0 / ASP.NET 4.0

  3. #3
    Member
    Join Date
    Jul 2007
    Posts
    38

    Re: Need some help: IDE

    Rename it via the name property in the form's properties.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    2,012

    Re: Need some help: IDE

    Quote Originally Posted by D4rkness
    Rename it via the name property in the form's properties.
    OK, that worked. The forms property name was Form1 for some reason. I originally renamed it by right-clicking on it in the solution explorer & picking Rename. Apparently that changes the property name to the default of Form1.
    Thanks...

Posting Permissions

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



Click Here to Expand Forum to Full Width