Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 February 17th, 2004, 03:40 PM
Authorized User
 
Join Date: Jan 2004
Posts: 34
Thanks: 0
Thanked 1 Time in 1 Post
Default Making changes on one form using another

How can I change the settings of the textbox of one form using another form in the same project?
 
Old February 17th, 2004, 05:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Make the textbox that you want to change "public". For example, you have a textbox called "TextBox1" and you want to change it's properties.

---------------------------------------------
Public Shared TBox1 as TextBox
---------------------------------------------

Then set that variable equal to the "TextBox1"

---------------------------------------------
TBox1 = TextBox1
---------------------------------------------

Then from your other form you can access it's properties:

---------------------------------------------
[Form1Name].TBox1.Text = [Form2TextBoxName].Text
---------------------------------------------

J
 
Old February 17th, 2004, 07:31 PM
Authorized User
 
Join Date: Jan 2004
Posts: 34
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a Forum Smacky_Wolf HTML Code Clinic 8 August 2nd, 2009 11:41 PM
Making Infopath 2007 form browser compatible akash_waits Infopath 1 July 18th, 2008 11:34 PM
Making a league olisav ASP.NET 2.0 Basics 0 April 14th, 2007 04:53 AM
I need help with making a graph. kanryue VB How-To 3 August 21st, 2006 04:51 PM
making calculator help bcmaverik VB.NET 2002/2003 Basics 7 January 6th, 2004 11:42 AM





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