Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by Ace Master
Posted
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.
Take a look at my programs. Go to my web site.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...