Results 1 to 2 of 2

Thread: Dialog

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2001
    Posts
    21

    Dialog

    I want to make a Dialog(not one of those that can be shown by "showFont" etc.) and put on it checkboxes and other elements. So when I click on Menu item the Dialog will appear.
    What component should I use for Dialog? And how to show it on click? If possible, could you give a simple code to see?
    Thank you in advance.

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Just add a new form (from the Projects menu) and set it's BorderStyle to 3 - Fixed Dialog.
    Put whatever objects you'll need to design it and give it a name.
    Then in the click event simply call it with the Show method
    VB Code:
    1. Private Sub mnuSomeMenu_Click()
    2.     MyDialogName.Show vbModal
    3. End Sub
    The vbModal part makes the dialog modal i.e. you can't return to the owner form until the dialog is closed.

    Best regards

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