Odd problem.

C

Craig

Hey, hopefully someone out there has expericanced this
situation before and knows how to solve it...

The bug im expericancing is when i click on a button to
invoke a form.show() routine, the application will just go
out of focus, and look like its frozen... however if i
right click on the taskbar, the program will then regain
what it was trying to do and everything will be fine...

now this only occurs if i try clicking this button directly
after closing another form (that was opened as a dialog)

What could be causing this to happen... is it a garbage
collector related item, or something else?

BTW im using XP tablet edition, with tablet sdk, and
updated .NET framework ...

If you need more information (or are confused as hell as to
what im asking) just ask... i apprecaite any help

- Craig
 
J

Jeremy Cowles

Does the problem happen on XP/NT/2K (non-tablet) ? So are these the steps
to reproduce:

1. Create a Form (MainForm) with a button (Button1)
2. Show another form (DlgForm) via ShowDialog( ) from MainForm
3. Close DlgForm by clicking the X (standard close button)
4. Click MainForm.Button1

?

~
Jeremy
 
C

Craig

I haven't tested on other platforms since the applicatoion
it being design for use mainly on the tablet (i only have
the tablet here now, but can test later if you think its an
OS problem)

Steps are slightly differnt
1. open main form
2. click button1 that opens form (FRM.show)
3. hide form (FRM.hide, catch the close event, cancel it,
then hide)
4. click button2 that opens the dialog form (DlgFrm.showdialog)
5. click close (either X or a close button)
6. click button1 that should show form again.

also does the same thing if you skip steps 2 and 3

the mainform is then disabled, clicking anywhere produces
an alert sound, and left clicko nthe task bar does nothing
.... but right clicking causes things to resume as they
normallly would...

hope that hellps.

- Craig
 
C

Craig

Well commented items out of the code i found out that the
"freezing" was unrelated to the forms...

See because the forms took so long to load, i added a
splash screen which was just a small form that gets shown
before the NEW call, then gets closed when the NEW call if
finished.... i have no idea why that was screwing up (and
why it was only effected on the dialog close, since the
splash is closed before the dialog is even show), but i
have removed it and things work fine now... ill just have
to find another way to show a splash message....

Thanks to all those that replied.
- Craig
 

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