|
-
Oct 18th, 2007, 01:15 PM
#1
Thread Starter
Frenzied Member
[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...
-
Oct 18th, 2007, 01:18 PM
#2
Hyperactive Member
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
-
Oct 18th, 2007, 01:20 PM
#3
Member
Re: Need some help: IDE
Rename it via the name property in the form's properties.
-
Oct 18th, 2007, 01:26 PM
#4
Thread Starter
Frenzied Member
Re: Need some help: IDE
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|