Results 1 to 3 of 3

Thread: Halt instructions?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    5

    Halt instructions?

    Good afternoon,

    I am probably missing a simple solution to this problem, but here it goes anyway: (I am using VB6)

    I have created a custom form to act like a MsgBox with custom buttons. When I form.show I need the current form to halt all instructions until the user has selected an answer on the "MsgBox" form. Any ideas?

  2. #2
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Halt instructions?

    call it modally.

    vb Code:
    1. Form1.Show vbModal
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  3. #3
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,879

    Thumbs down Re: Halt instructions?

    Just look the following code.When you do the following code .you even don't minimize the form1.means owner form.
    Code:
    Private Sub Command1_Click()
    Form2.Show vbModal, Me
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width