Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Public Class Test Inherits Window
  2.  
  3. Public Sub Test()
  4.  
  5. Dim string As String = ""
  6. Dim integer As Integer = 0
  7. Dim short As Short = 0
  8. Dim long As Long = 0
  9. Dim float As Single = 0.0
  10. Dim double As Double = 0.0
  11.  
  12. MessageBox.Show("MesssageBox auf Deutsch xD", "MessageBox")
  13.  
  14. Me.Show()
  15. Me.Close()
  16.  
  17. Dim textbox As TextBox = new TextBox()
  18. Dim label As Label = new Label()
  19.  
  20. Me.Controls.Add(textbox)
  21. Me.Controls.Add(label)
  22.  
  23. Me.Controls.Remove(textbox)
  24.  
  25. textbox.Text = "Hi xD"
  26. textbox.Location = new Location(10, 10)
  27. textbox.Clear()
  28.  
  29. End Sub
  30.  
  31. Public Function EineFunktion() As String
  32.  
  33. Dim string As String = "Das wird zurückgegeben"
  34.  
  35. Return string;
  36.  
  37. End Function
  38.  
  39. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement