Skip to content
Tags

,

.Net Pass variables to form by overloading ShowDialog

January 24, 2012

    Private m_sType As String
    Overloads Function ShowDialog(ByVal Type As String) As DialogResult
        Try
            m_sType = Type

            ShowDialog()

            ShowDialog = Windows.Forms.DialogResult.Yes
        Catch ex As Exception
            ShowDialog = Windows.Forms.DialogResult.No
        End Try
    End Function
    '
Advertisements

From → .Net

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: