Forms to act like dialogs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jarremw
    New Member
    • Jan 2008
    • 50

    Forms to act like dialogs

    hello,
    how can i get my forms to act like dialogs? like if the user clicks anywhere outside the current form, the form flashes and the user can not do anything til that form closes?
    thanks
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    Originally posted by jarremw
    hello,
    how can i get my forms to act like dialogs? like if the user clicks anywhere outside the current form, the form flashes and the user can not do anything til that form closes?
    thanks

    Form1.Show vbModeless

    I believe this will work. Run this for the form you want to allow users to work while its in the background.

    I thought this the default state for any form load but maybe not?

    Comment

    • pureenhanoi
      New Member
      • Mar 2007
      • 175

      #3
      Originally posted by jeffstl
      Form1.Show vbModeless

      I believe this will work. Run this for the form you want to allow users to work while its in the background.

      I thought this the default state for any form load but maybe not?
      I think you must use vbModal Const, instead of vbModeless
      Form1.Show vbModal

      Comment

      • jarremw
        New Member
        • Jan 2008
        • 50

        #4
        thanks for the quick replys, i was able to do this through just using the .showdialog instead of .show

        thanks

        Comment

        Working...