Ace Master Posted October 31, 2003 Posted October 31, 2003 (edited) I use to have a form with icon tray and a hide button. This controls use to work fine until I created other form for password check. Now, after I set the� password check� form to be the first form loaded, the icon tray remains in the task bar (and disappear after I move the mouse over him) and the hide button now close the application even if the code is �visible = false� not close or similar. But if the start form is original form, and the password form is not visible everything works fine. Where is the problem? this is the code for pass check If TextBox1.Text = "ace" And TextBox2.Text = "intel" Then Me.Hide() f1.ShowDialog() Me.Close() End If Edited October 31, 2003 by Ace Master Quote
Klogg Posted October 31, 2003 Posted October 31, 2003 Well, if you close your main form (the one that you have set as the startup form), then your whole application closes. I'm not completely sure, but I think it will work the way that you want if you set the first form loaded to the one you had before and put the code for opening the password form in that form's load event. Quote Take a look at my programs. Go to my web site.
aewarnick Posted October 31, 2003 Posted October 31, 2003 To me, this is a .net but: "the icon tray remains in the task bar" You must make the icon Visible property false before you close the form. Quote C#
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.