Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. Private Sub LoginButton_Click(sender As Object, e As EventArgs) Handles LoginButton.Click
  2. If My.Computer.FileSystem.DirectoryExists(MyCityPath + LoginUsername.Text) Then
  3. 'Some code here......
  4. 'This is not completed
  5. End If
  6. End Sub
  7.  
  8. Private Sub LoginButton_Click(sender As Object, e As EventArgs) Handles LoginButton.Click
  9. If My.Computer.FileSystem.DirectoryExists(MyCityPath + LoginUsername.Text) Then
  10. 'Some code here......
  11. MySecondForm.Target = "Something special"
  12. End If
  13. End Sub
  14.  
  15. '...
  16. Public Target As String
  17. '...
  18.  
  19. Private Sub LoginButton_Click(sender As Object, e As EventArgs) Handles LoginButton.Click
  20. If My.Computer.FileSystem.DirectoryExists(MyCityPath + LoginUsername.Text) Then
  21. 'Some code here......
  22. ' Assumes there is a Textbox named Textbox1 on a form named MySecondForm
  23. MySecondForm.Textbox1.Text = "Something special"
  24. End If
  25. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement