Quantcast
Viewing all articles
Browse latest Browse all 12583

showdialog is not member of system.Array

I am trying to learn VB by using APress - Beginning Visual Basic 2005 Express edition by Peter Wright.

I have an error: showdialog is not member of system.Array.

As a complete novice I do not know what is causing this error and how to get rid of it.

Here is the code:

Public Class Form1

    Private Sub getNameButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles getNameButton.Click
        Dim nameDialog As dialog()
        If nameDialog.ShowDialog = Windows.Forms.DialogResult.OK Then
            MessageBox.Show("This .Net stuff could really catch on!")
        End If
    End Sub
End Class

Can anyone help me to sort this out?


Viewing all articles
Browse latest Browse all 12583

Trending Articles