Support Forums
[Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: [Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] (/showthread.php?tid=20311)



[Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - ★ASI_F★™ - 07-08-2011

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



RE: [Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - AceInfinity - 07-08-2011

Where are you copying these from? And if they aren't your own code provided some reference or credit to the one that did


RE: [Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - ★ASI_F★™ - 07-08-2011

(07-08-2011, 08:54 PM)Ace Wrote: Where are you copying these from? And if they aren't your own code provided some reference or credit to the one that did

if you find that anywhere that i coping then i will pay you .

Dont think that all many same you coping and pasting


RE: [Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - AceInfinity - 07-08-2011

(07-08-2011, 08:58 PM)reloaded Wrote: if you find that anywhere that i coping then i will pay you .

Dont think that all many same you coping and pasting

I didn't understand any of that...

How about this though? (just what I found): http://www.pcreview.co.uk/forums/why-does-user-controls-load-event-fire-components-dispose-executes-t1323867.html


RE: [Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - ★ASI_F★™ - 07-08-2011

(07-08-2011, 09:04 PM)Ace Wrote: I didn't understand any of that...

How about this though? (just what I found): http://www.pcreview.co.uk/forums/why-does-user-controls-load-event-fire-components-dispose-executes-t1323867.html
Please leave my thread do not post reply again .

Your link you see yourself that match or not with my source .

If you have a good skill on vb then see your own way . i didnt copy it anywhere also its not credits by me . i am not a kid that giving credits for this simple source , Its just beginers coding.



RE: [Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - AceInfinity - 07-08-2011

I just looked at the comment and capitalization, but the comment matches exactly. Good that you're posting this stuff, but without pictures, or further explanation I don't see it helping beginners.


RE: [Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - ★ASI_F★™ - 07-08-2011

You need the project ? just post reply i will give it now with screenshot


RE: [Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - AceInfinity - 07-08-2011

No, it's fine. I'm just saying that if you wanted to improve on these sources you've generously posted, you should include more comments in the code, or a detailed description on how the code works. For things like your color source you could include screenshots of the form even?

I don't need the source though, I understand how to do most of this stuff. I'll leave your threads alone now though Superman


RE: [Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - ★ASI_F★™ - 07-08-2011

Hei mate thanks very sorry for that behave .

Next time i always will give screenshot . Very sorry Sad


RE: [Vb.net] Closing Event Example Ok or Cancel [SRC] [Simple] - AceInfinity - 07-08-2011

I wasn't trying to degrade your sources, just giving some advisers on how you could improve them, and get more recognition out of them Smile