General information
Category:
Forms & Form designer
>>Thanks Jim,
>>I have solved the problem with the show method.
>>MyForm.Show
>>
>>But when i dont use public variables i cant see the form in the debugger and
>>When i use MyForm.Show i recieve this error:
>>Object MyForm is not found.
>>Only when i use public variables i dont recieve this error and can see the form in the debugger.
>
>Cemal,
>
>A minor corection, it is only when you use variables that DO NOT GO OUT OF SCOPE. PUBLIC variables are like using a shot gun to shhot a fly. You can use Private variable that are declared in teh proper place to be scoped for the time fram that you need them. Even better is to use a fomr manager object that holds the refernce in a property, that way as long as the fomr manager is there the reference is there. If you don't like those then use the _screen.Forms() collection, but do not use PUBLIC variables. Using a public variable is like using cyanide to stop your baby from crying.
Thanks Jim,
I can see the form in the _screen.forms() collection.
But i cant do anything with the form.
I cant set any property.
I cant run any method.
Can you show me a way how i can see the form in the debugger without using public variables.
Otherwise i must use cyanide to stop my baby from crying.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only