Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

focus on form error (VB5)

Status
Not open for further replies.

ceodav

Programmer
Feb 21, 2003
106
IT
hi,
i'm working on a project which shows a particular form when an error occurs.
well, this form disappear almost immediately because the main program gets all the focus!
how is possible to set the highest priority for the error form and disable the main program below?
i tried with formerror.setfocus but i get error during compiling operation.
i'm wondering if it is really possible do this thing......

thanks a lot.
ceodav
 
Try calling the form as Modal mode.
Example:

frmError.Show 1
or
frmError.Show vbModal

The modal mode does not let the application continue executing until the Form (frmError) is closed.

I hope this would solve your problem !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top