Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 3rd, 2005, 04:50 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How Do I SHOW and HIDE Windows Forms in VB.NET?

I am new to VB.NET and have experience programming in VB5 and VB6. Using a button click, when I declare a form and then try to use the .show method, I receive an error. Does anyone have working sample VB.NET source code that explains/displays/shows how to show and hide windows forms using VB.NET? Or can anyone explain how to perform these tasks using VB.NET?

Best regards,


Keith

Keith George
Penn '04/EMTM '04
 
Old March 10th, 2005, 03:49 AM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Keith,

As .NET is fully object oriented ,U can'nt use FRMNAME.Show.

Can Use:

Dim objFrm as new <FormName>
objFrm.show

To Hide Forms

Me.Hide or <objFrm.Activate>.

Happy Programming..

vishal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating SQL Database using Windows Forms in VB planopeeks VB Databases Basics 5 June 12th, 2008 11:33 AM
Hide Cursor Blinking in textbox VB.NET asadullah Visual Studio 2005 0 October 6th, 2007 06:36 AM
how to show/hide forms ? ashrafzia C# 3 November 3rd, 2006 11:07 AM
C# Windows Forms in VS.Net rb157 VS.NET 2002/2003 0 January 10th, 2004 06:57 PM
Windows Forms DataGrid .NET antalpak VS.NET 2002/2003 2 June 20th, 2003 08:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.