Howdy!
My second VP.NET program and yet, another brickwall
Simple program
Why can't I build this code? Do I need to have some DLL installed for this to work? Do I need to patch my .NET?
I started using a very simple
MsgBox("This is a message box ...")
After it failed, I decided to read through help (F1) and even its sample failes (pasted above).
When I installed .NET I ran the "Prerequiste ..." option to make sure all was there and made a full install. If there is a chance I left something out, I am willing and ready to reinstall.
Thank you all in advance.
Jose Lerebours
KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
My second VP.NET program and yet, another brickwall
Simple program
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim msg As String
Dim title As String
Dim style As MsgBoxStyle
Dim response As MsgBoxResult
msg = "Do you want to continue?" ' Define message.
style = MsgBoxStyle.DefaultButton2 Or _
MsgBoxStyle.Critical Or MsgBoxStyle.YesNo
title = "MsgBox Demonstration" ' Define title.
' Display message.
response = MsgBox(msg, style, title)
If response = MsgBoxResult.Yes Then ' User chose Yes.
' Perform some action.
Else
' Perform some other action.
End If
End Sub
Why can't I build this code? Do I need to have some DLL installed for this to work? Do I need to patch my .NET?
I started using a very simple
MsgBox("This is a message box ...")
After it failed, I decided to read through help (F1) and even its sample failes (pasted above).
When I installed .NET I ran the "Prerequiste ..." option to make sure all was there and made a full install. If there is a chance I left something out, I am willing and ready to reinstall.
Thank you all in advance.
Jose Lerebours
KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours