shiftos-next/shiftos_next/basicwm_infobox.vb
TheUltimateHacker ed36135241 Commit for latest Alpha (0.0.1 Alpha 1)
See the post on shiftos.net for more info.
2015-05-21 20:33:08 -04:00

19 lines
No EOL
582 B
VB.net

Public Class basicwm_infobox
Public userinput As String
Public Sub showinfo(title As String, message As String, Optional showtextbox As Boolean = False)
lbtitle.Text = title
lbmessage.Text = message
btnok.Text = "> OK <"
txtuserinput.Visible = showtextbox
Me.StartPosition = FormStartPosition.CenterScreen
Me.TopMost = True
Me.ShowDialog()
End Sub
Private Sub btnok_Click(sender As Object, e As EventArgs) Handles btnok.Click
userinput = txtuserinput.Text
Me.Close()
End Sub
End Class