Umapathi K asked:
self form should close
This could not be if done if processes are not interrelated to the program.
Try this:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If File.Exists("c:\hi.txt") Then
Me.Hide()
successform.Show()
Else
Me.Show()
successform.Hide()
End If
End Sub
You missed to hide the successform.
--Amit