Hi
Ive got a problem with visual basic (ok another problem
)
Im using an MDI form with a winsock control on it and numerous other forms which do pretty things to teh data which comes in from teh webserver connected to by the winsock control. The problem is that when a message box is displayed, or a common dialog control is shown, the application is suspended (this was revealed by having a caption incremented when the DataArrival event of the winsock control was called), this procedure and others e.g. timer controls are suspended. After doing a bit of research on this I find there are two constants to do with this kind of thing in MsgBox's:
vbApplicationModal 0 Application modal; the user must respond to the message box before continuing work in the current application.
vbSystemModal 4096 System modal; all applications are suspended until the user responds to the message box. (ie will stop the rest of windows apps from running.....)
As the ApplicationModal's value=0, there is no way of getting around this problem as far as I can see. Does this mean I am reduced to using a form which looks like a message box and passing variables to and from it to make it act like a message box, or is there a way to do it from the API? Or a different way entirely? I hope there is another way to do this other than the forms way because otherwise im going to have to do an open file dialog and print dialog etc etc etc...
grr
thanks a lot
jæs
Ive got a problem with visual basic (ok another problem
Im using an MDI form with a winsock control on it and numerous other forms which do pretty things to teh data which comes in from teh webserver connected to by the winsock control. The problem is that when a message box is displayed, or a common dialog control is shown, the application is suspended (this was revealed by having a caption incremented when the DataArrival event of the winsock control was called), this procedure and others e.g. timer controls are suspended. After doing a bit of research on this I find there are two constants to do with this kind of thing in MsgBox's:
vbApplicationModal 0 Application modal; the user must respond to the message box before continuing work in the current application.
vbSystemModal 4096 System modal; all applications are suspended until the user responds to the message box. (ie will stop the rest of windows apps from running.....)
As the ApplicationModal's value=0, there is no way of getting around this problem as far as I can see. Does this mean I am reduced to using a form which looks like a message box and passing variables to and from it to make it act like a message box, or is there a way to do it from the API? Or a different way entirely? I hope there is another way to do this other than the forms way because otherwise im going to have to do an open file dialog and print dialog etc etc etc...
grr
thanks a lot
jæs