Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple]
#1
Design
Code:
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        '
        'MDIParent
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(292, 273)
        Me.IsMdiContainer = True
        Me.Name = "MDIParent"
        Me.Text = "MDI Parent"

    End Sub

#End Region

Project Source
Code:
Private Sub MDIParent_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim objChild As New frmChild1()
        objChild.MdiParent = Me
        objChild.Show()
    End Sub
[Image: 0b0033.gif]
Reply


Messages In This Thread
[Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - by ★ASI_F★™ - 07-08-2011, 07:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [VB.NET] Animated Form Extend [SRC] Fragma 6 5,317 10-10-2013, 12:18 PM
Last Post: Saket
  [VB.Net][SRC] YouTube Bot HF~Legend 5 3,434 11-25-2012, 05:54 AM
Last Post: Ixam
  [VB.Net] Simple captcha class [Commented][Noob/Friendly] The-One 18 8,806 09-08-2012, 04:20 PM
Last Post: spesificrelax
  [VB.Net][SRC]ProgressBar Color HF~Legend 14 6,979 09-08-2012, 04:18 PM
Last Post: spesificrelax
  [VB.NET] Basic Reverse Connection RAT [SRC] hasam 1 2,891 02-01-2012, 03:10 PM
Last Post: AceInfinity

Forum Jump:


Users browsing this thread: 1 Guest(s)