Navi Posted November 4, 2003 Posted November 4, 2003 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. Quote
Administrators PlausiblyDamp Posted November 4, 2003 Administrators Posted November 4, 2003 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? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
techmanbd Posted November 4, 2003 Posted November 4, 2003 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 Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
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.