Running this causing an error.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have this code which throws up an error on my box (Windows Sever 2003 -
Enterprise Edition)

MsgBox("Message", MsgBoxStyle.Question OrMsgBoxStyle.MsgBoxSetForeground,
"Title")

I have tried using this code and still it wont work:

Dim permSet As New PermissionSet(PermissionState.None)
permSet.AddPermission(New UIPermission(UIPermissionWindow.AllWindows))
permSet.PermitOnly()
 
Back
Top