Off-Topic Discussions
Page 1 of 1
Signup or Login to Post
Visual Basic 2008
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to zico291
    ELITE
    zico291 posted on Aug 14, 2010 6:05:46 AM - Report post
     
    Ok this is the problem.

    I have 2 forms when I have button that has the close code in it, it only closes the form that the button was on how do I make a close all function that will close both form 1 and form 2.

    Thanks
    zico291
  • Current rank: 2 Stars. Next Rank at 1000 Posts.
    Send a message to iNTANGiBLE
    ELITE
    iNTANGiBLE posted on Aug 14, 2010 6:09:06 AM - Report post
     
    Me.Close
    Form2.Close

    Maybe something like that
    CPU: Intel Core-i7 960 @ 3.20 GHz
    MB: ASUS X58
    GPU: ASUS GTX560Ti 1 GB
    RAM: Kingston DDR3 2 x 4 GB
    HDD: 2 x 500 GB
    PSU: ADATA HM-850W
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to zico291
    ELITE
    zico291 posted on Aug 14, 2010 6:13:21 AM - Report post
     
    me.close just closes one form and form2.close does nothing. any other ideas thanks for trying anyway
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to zico291
    ELITE
    zico291 posted on Aug 14, 2010 6:15:28 AM - Report post
     
    for some reason when I enterned form1.close() it close both forms odd so you were half-way there thanks
Page 1 of 1
Signup or Login to Post
All times are (GMT -06:00) Central Time (US & Canada). Current time is 5:28:54 PM