473,505 Members | 13,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Public Sub controlling forms?



Hello to all.
I need to control some objects from a module like the old VB 6 style.
Can anyone help on how to do this?
For example, I need that when BUTTON1 es pressed in FORM1.. with a TEXTBOX
this calls a PUBLIC SUB in a module (or substitute) and and this shows
creates a new instance of another form FORM2, and shows the FORM1.TEXTBOX1
text on FROM2.TEXTBOX.

Is there a simple way of doing this?
Can´t I refer to forms similar to VB6.. ?
Like this?
projectname.form2.textbox.text = projectname.form1.textbox.text

Thank you all and sorry for my awfull english
Manek
Nov 21 '05 #1
1 1189
Marcos,

Search Google for "Working with Multiple Forms in Visual Basic.net"
"Duncan Mackenzie" and you his paper at Microsoft.com is what you are
looking for plus. The URL is unbearably long and this will get you there
directly.

Ed
"Marcos Beccar Varela" <marcosbv@ga m a c o m .com.ar> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...


Hello to all.
I need to control some objects from a module like the old VB 6 style.
Can anyone help on how to do this?
For example, I need that when BUTTON1 es pressed in FORM1.. with a TEXTBOX
this calls a PUBLIC SUB in a module (or substitute) and and this shows
creates a new instance of another form FORM2, and shows the
FORM1.TEXTBOX1 text on FROM2.TEXTBOX.

Is there a simple way of doing this?
Can´t I refer to forms similar to VB6.. ?
Like this?
projectname.form2.textbox.text = projectname.form1.textbox.text

Thank you all and sorry for my awfull english
Manek

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3196
by: Andrey Mosienko | last post by:
We are using PostgreSQL about two years beginning from version 7.0. I have one question about starting postmaster: Is there way to detach it from the controlling terminal under FreeBSD? My...
3
1900
by: Cillies | last post by:
Does anyknow how to control dates in acess 2000, the thing is I want to search for records using a form by date. I will be using a between date search box. But i want to enter say todays date but...
0
254
by: Marcos Beccar Varela | last post by:
Hello to all. I need to control some objects from a module like the old VB 6 style. Can anyone help on how to do this? For example, I need that when BUTTON1 es pressed in FORM1.. with a TEXTBOX...
27
2677
by: thomasp | last post by:
Variables that I would like to make available to all forms and modules in my program, where should I declare them? At the momment I just created a module and have them all declared public there. ...
3
1120
by: John | last post by:
Hi How can I programmatically block edits on a form and all its sub forms? I have tried me.AllowEdits = False but it only blocks edits on the main form and not on any of the sub forms on the...
2
1472
by: ApexData | last post by:
Hello In order to control keyboard keystrokes in my application, I use the KeyPreview=Yes, OnKeyDown Events of every Form with great success. HOWEVER, these events are not available in REPORTS,...
4
3638
by: Gerhard | last post by:
I have an MS Access app with multiple forms. One of the forms has a Toolbar (MsComctlLib.Toolbar) and it works as advertised. I handle the buttons in the Toolbar1_ButtonClick event. I would like...
1
991
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hello i need help with forms within vb.net. I need to control multiple forms with one button. Can you please help on how to do that. Regards Dan
7
12486
by: DeZZar | last post by:
Hi all, Unfortunately I am quite a novice with Access!! I've created a number of data bases for my work however becuase my skills are limited to really built in functionality and wizards my...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.