form spawning on its own

T

TS

I have a form that uses the UIP app. block for navigation. The app is a
testing application. The first part is the tutorial test. The 2nd part is
the actual test. Both parts share the same form. When I go from the tutorial
to the test part, a new form is spawned by itself. This didn't used to
happen. I think it started happening after I was working on a section that
changes the current culture when a button is clicked. I'm not doing anykind
of new() calls on the form, it just spawns automatically.

Does anyone know any ideas to help figure out why?

thanks a lot!
 
J

Jeffrey Tan[MSFT]

Hi TS,

Thanks for your posting.

You may place a break point in the test project, and trace step-by-step,
then you will find which statement spawns the new form.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi TS,

Can you show me your code snippet or the project? I am not fully sure of
what project spawns the Form.

Also, have you tried my suggestion of tracing, have you find the cause?
Thanks very much.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
T

TS

well I actually found the line it was:
this.cmdSubmit.Enabled = false;

this is on a form that inherits from windowsviewform class of UIP app block.
I am not a windows programmer, so I was just wondering what usually causes
this situation so that the next time I will have a better handle on it if it
happens again.
 
J

Jeffrey Tan[MSFT]

Hi TS,

I am glad you find what the cause statement, anyway, if you have any futher
question, please feel free to tell me, I will help you. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
T

TS

what usually causes this situation so that the next time I will have a
better handle on it if it
happens again?
 
J

Jeffrey Tan

Hi TS,

Thanks for your feedback.

For form spawning, the most possible situation is the code created a new
instance and showed it out. But for big project, this statement may be
encapsulated very deep, so just as I suggested, you may trace and use
breakpoint to find out the statment of spawning.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi TS,

I am glad my reply makes sense to you. If you need further help, please
feel free to tell me, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top