Wrox Programmer Forums
|
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 October 9th, 2006, 01:19 AM
Registered User
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default HOW WE CAN PASS FORM NAME

HI
we can pass any form name to any function & how to use it
as a same properties of passing form name.

thanx


 
Old October 11th, 2006, 02:10 AM
Authorized User
 
Join Date: Sep 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prabodh_mishra
Default

U can do it by various ways depending upon your need. The one possible way is suppose u have two forms form1 and form2 and Form1 is startup module then write following code in form1...

Private Sub Form_Load()
    xx Form2
End Sub

Private Sub xx(x As Object)
    x.Show
End Sub

you can pass x as Form as well



Cheers,
Prabodh





Similar Threads
Thread Thread Starter Forum Replies Last Post
To pass value of string variable to another form thillai Visual Basic 2005 Basics 5 March 13th, 2008 03:29 AM
OTHER: Pass query result to a Form sugar Pro VB Databases 3 April 4th, 2006 11:14 AM
Can't pass variables to form for validation! gnilly PHP How-To 4 April 24th, 2005 06:33 AM
How to pass a variable form one form to the next Dinesh22 VB.NET 2002/2003 Basics 1 January 8th, 2004 08:55 PM





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