473,569 Members | 2,601 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.for m2.textbox.text = projectname.for m1.textbox.text

Thank you all and sorry for my awfull english
Manek
Nov 21 '05 #1
1 1191
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******** **********@TK2M SFTNGP15.phx.gb l...


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.for m2.textbox.text = projectname.for m1.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
3210
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 situation: I start postmaster manually: su pgsql -c "/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l /usr/local/pgsql/log/pgsql.log start" ...
3
1906
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 retrieve the results for exactly one month later. E.G. I if I enter 10-05-04 to 14-05-04 I want to see the records for exactly 30/31 days later....
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 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...
27
2694
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. What is the normal way to do this? Thanks, Thomas --
3
1122
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 main form. Thanks Regards
2
1478
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, opening up my application to ALL Function/Ctrl/Alt keystrokes that a user can fire and cause problems. In STARTUP I have Use Access Special Keys...
4
3642
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 to be able to control the toolbar from another form. Forms!frmClipping!Toolbar1.Buttons(2).Clicked = True does not work. Does anybody have any...
1
994
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
12497
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 programs are not really user friendly. I have searched and searched and tried numerous times to get the following right to no avail - and I think...
0
7701
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7979
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.