Results 1 to 4 of 4
  1. #1
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine

    [HELP]Close form1 when form3 closes?

    The title says it all

    I have my project properties as:

    Start up form:
    Form1

    But I don't want it closing while using the program, because I have it as:

    Shutdown mode:
    When startup form closed

    So I use this:
    Code:
    Me.Hide
    Form2.Show
    So I want to know how to make it so that when Form2 closed, it will close the Form1, and shutdown the whole program, instead of keeping it on the whole time

    And for the people who want to know what I am doing, I am making a email sender, with contacts (already done making)
    and a remember me feature (Already done), but now all I need is above

  2. #2
    SPittn_Blood's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    148
    Reputation
    10
    Thanks
    15
    My Mood
    Inspired
    Private Sub Form2_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
    form1.close
    End Sub
    Last edited by SPittn_Blood; 12-04-2009 at 04:20 PM.

    Pixie force!

    -Current Projects-
    _______________________
    \//Stuff.. :P//\
    Current Code: C#

  3. The Following 2 Users Say Thank You to SPittn_Blood For This Useful Post:

    Obama (12-04-2009),Pixie (12-04-2009)

  4. #3
    theavengerisback15's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    C:\Projects\Avenger
    Posts
    43
    Reputation
    10
    Thanks
    3
    My Mood
    Aggressive
    I haven't experienced yet that kind of problem, I always encounter: when I make a project with 1-more forms, then debug it....If i close the form 1, all of the other forms like form 2-etc, will be also closed.

  5. #4
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by theavengerisback15 View Post
    I haven't experienced yet that kind of problem, I always encounter: when I make a project with 1-more forms, then debug it....If i close the form 1, all of the other forms like form 2-etc, will be also closed.
    Go settings and choose close when last form close or something like that!
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. [Help Request] Need help, Get this when i start crossfire with injector.
    By -zZz- in forum CrossFire Help
    Replies: 4
    Last Post: 07-10-2011, 03:26 PM
  2. [Help Request] G-force hack help closes down
    By Paradox in forum CrossFire Help
    Replies: 9
    Last Post: 06-18-2011, 06:22 AM
  3. [Help] Closing application from all forms.
    By Jason in forum Visual Basic Programming
    Replies: 3
    Last Post: 05-11-2010, 09:20 AM
  4. [HELP]Getting dces when joining a room
    By krishna in forum CrossFire Hacks & Cheats
    Replies: 9
    Last Post: 08-28-2009, 08:58 AM
  5. [Please Help!] MHS Error when Opening Process
    By zorith in forum Combat Arms Hacks & Cheats
    Replies: 15
    Last Post: 08-29-2008, 11:25 AM