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!
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

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
TS - 02 Sep 2004 19:38 GMT
thanks
> Hi TS,
>
[quoted text clipped - 12 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
TS - 02 Sep 2004 19:41 GMT
can you explain why this occurs
> Hi TS,
>
[quoted text clipped - 12 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 03 Sep 2004 07:56 GMT
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

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
TS - 03 Sep 2004 15:30 GMT
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.
> Hi TS,
>
[quoted text clipped - 9 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 06 Sep 2004 07:20 GMT
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

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
TS - 07 Sep 2004 15:43 GMT
what usually causes this situation so that the next time I will have a
better handle on it if it
happens again?
> Hi TS,
>
[quoted text clipped - 6 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
Jeffrey Tan - 08 Sep 2004 15:45 GMT
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

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
TS - 09 Sep 2004 15:40 GMT
ok
> Hi TS,
>
[quoted text clipped - 12 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 10 Sep 2004 06:57 GMT
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

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.