Errors given 12 times

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In vb.NET i am trying to use showdialog() for a modal form. The form loads
except that when i ask it to give me messages or errors it give me them 12
times. If i just use show() for a modeless form it just gives me them the
once which is obviously what i want, however the form needs to be modal. Any
Help?
 
RBirney,

Probably because you can use 12 times show and the same form is showed while
when you use 12 times showdialog you get 12 times a form. (which you have to
close everytime).

Did you debug it, because for me it seems that it is 12 times done.

I hope this helps?

Cor
 
RBirney said:
In vb.NET i am trying to use showdialog() for a modal form. The form
loads
except that when i ask it to give me messages or errors it give me them 12
times.

What errors?
 
Any errors or message boxes that come up it does 12 times. I am assuming it
does everyting 12 times but these, as they pop up on the screen, are the ones
i notice.
 
RBirney said:
In vb.NET i am trying to use showdialog() for a modal form. The form loads
except that when i ask it to give me messages or errors it give me them 12
times. If i just use show() for a modeless form it just gives me them the
once which is obviously what i want, however the form needs to be modal. Any
Help?

Put a breakpoint in the Load event and see how many times it gets hit.
Even after the first break, start stepping through the code to watch
what is actually going on....

LFS
 
I started going through it and have now found that 12 times just happened to
be the two things i first saw it can actually happen a varying amount of
times but always in a GotFocus or LostFocus even when there is nothing else
in the GotFocus or LostFocus.
 

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

Back
Top