MsgBox error? Lolwut?[Solved]

Posts 1–3 of 3 · Page 1 of 1
MsgBox error? Lolwut?[Solved]
I was going to use MsgBox in a proggy I'm making, but I came up with an error, so I made a new project to test if It was something goofed up with my code. Well... It wasn't.


New code, something simple:
[PHP]Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox = "Hai"
End Sub
End Class
[/PHP]


Error:Error 1 Argument not specified for parameter 'Prompt' of 'Public Function MsgBox(Prompt As Object, [Buttons As Microsoft.VisualBasic.MsgBoxStyle = MsgBoxStyle.DefaultButton1], [Title As Object = Nothing]) As Microsoft.VisualBasic.MsgBoxResult'.

MsgBox is underlined blue.
Msgbox("Hai")

That's how I always did it.
Quote Originally Posted by Lolland View Post
Msgbox("Hai")

That's how I always did it.
Omfg.... That makes sense... Idk why I was trying to add '=' >_>

Thank ya x)
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us