confusion in linking form
i have login form which is form2
i have another form which is form1
the form1 should come only once that to when i install this application in the new machine after that it should not come again only thing is when we click on the linkedlabel which is in form2 it will call form1
how to do in order to get the form1 only once, when we install into a new machine
skp03
Junior Poster in Training
51 posts since Dec 2011
Reputation Points: 12
Solved Threads: 0
there is may b another solution of ur prob is to change the project start up form ,i dnt knw is this is possible or not , but try to search this method , and if u find any solution please let me knw ,
Regards
M.Waqas Aslam
see i have created a loginform in which their is a admin password as the password is matched the admin will be allowed to acess
in order to reset the password what shall i do please guide me
in this no database is used
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
System.Diagnostics.Process.Start("chrome.exe")
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
System.Diagnostics.Process.Start("WINWORD.exe")
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
System.Diagnostics.Process.Start("notepad.exe")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
If TextBox1.Text = "topsecret" Then
Form2.ShowDialog()
End If
Catch ex As Exception
MsgBox("Invalid Password", MsgBoxStyle.OkOnly, "Ok")
End Try
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
End Sub
End Class
in the above code just see how can i reset the password while it is executing and it should save the new one please help
skp03
Junior Poster in Training
51 posts since Dec 2011
Reputation Points: 12
Solved Threads: 0
codeorder
Posting Virtuoso
1,913 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
hello skp03 !
i think u have to use xml file. when u run ur application first time then a form1 is load first, put ur code to chk that the xml file is present in directory if yes then hide the form and load the form2 , and also create the file , next time when ever u run ur application ur form1 chk that file is present form1 quickly load form2 and hide it self ,this is not the ideal solution , but i think it will work fine
Hope This Will helps You
Best Regards
M.Waqas Aslam
how to use xml file please help
skp03
Junior Poster in Training
51 posts since Dec 2011
Reputation Points: 12
Solved Threads: 0