Dont move without close top form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • godhulirbalaka
    New Member
    • Oct 2007
    • 26

    Dont move without close top form

    Dear Sir/Madam,
    I have few forms. I want to know that how do i can set a form on top that without close the form no body can go another form of this programme. First he has to close the top form then go another form. i.e i have two form. Form-1 is for selected item and Form-2 is contain with item list. Form one has a button for Item list. When i click on the button Form-2 shows. so i want without closing Form-2 nobody goes in Form-1. First close Form-2 then go Form-1. How can i do it. Please give me the code....
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Show the form in Modal in modal mode.

    But can't do that for MDI child forms.

    Comment

    • shaileshb
      New Member
      • Jun 2007
      • 27

      #3
      If you need to show your form vbModal state
      by default the state is vbModeless with constant value 0

      Form2.Show vbModal
      or
      Form2.Show 1
      Last edited by Killer42; Oct 17 '07, 10:09 PM.

      Comment

      Working...