JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!



Help with MsgBox


W

keyboard_arrow_up
0
keyboard_arrow_down


First Post Mark as Spam westonmiller
Posts: 1 - Registered: 2013-04-20 20:33:31

Private Sub EstablishConnectionToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EstablishConnectionToolStripMenuItem.Click
Try
With serialport
.PortName = "COM9" '<<<< Change this number for your computer
.BaudRate = 96000
.Parity = IO.Ports.Parity.None
.DataBits = 8
.StopBits = IO.Ports.StopBits.One
.ReadTimeout = 300 '300ms
.WriteTimeout = 300 '300ms
End With
serialport.Open()
MsgBox(prompt, MsgBoxStyle.Information, "Information", "Connected")
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub


On the: MsgBox(prompt, MsgBoxStyle.Information, "Information", "Connected")The editor says:
Too many arguments to 'Public Function MsgBox(Prompt As Object, , ) As Microsoft.VisualBasic.MsgBoxResult'."

Can someone help me on this, please.






JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!




MENU
Advertising