Sunday, July 26, 2009

C# Form Controls won't load?

Hey guys, I am writing a program in C# and have recently encountered a strange error. Whenever I try to reference Form1 from a class, the controls aren't there in the Intellisense box. It lists everything but the controls(for example, text1, label1, etc.) I've made sure the controls are set to public in the form designer, but I'm baffled at why it won't seem to recognize anything. Any help would be appreciated!

C# Form Controls won't load?
if you try to use them anyways does it work? if so then it's probably just visual studio (assuming that's what your using) as something in vs if you add the controls in yourself in the code, rather than using the designer it doesn't pick it up. but if you try using them like Form1.text1 and it errors out then you missed something, maybe the Form1 object isn't available in the area you're trying to call it.


No comments:

Post a Comment