Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I just migrated from VB6 to .NET and some of the simplest things i cannot find cuz they have changed like:

 

-how do you set one button to be the default button when pressing "enter"?

 

-how to show / hide forms?

 

-when my winsock connects, it now mimimizes the program, why is that?

 

Thanks alot.

  • Administrators
Posted

The form has a AcceptButton property - have a play and you'll see what I mean.

 

http://www.xtremedotnettalk.com/showthread.php?s=&threadid=76208&highlight=form+show+hide

http://www.xtremedotnettalk.com/showthread.php?s=&threadid=70825&highlight=form+show+hide

 

not sure on the winsock one - are you using the winsock control?

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

On the forms property there is an "AcceptButton". set that to the button you want to use

 

to show a form

in the sub you are going to show

 

dim form as new frmMain

form.show

 

to hide:

frmMain.hide

Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi

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...