473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Passing parameters back and forth between form controls

Hello,

I was wondering what would be the most efficient and correct way to have two forms with let's say one text box in each form, when I change the text in the text box in form 1 the text gets updated in runtime in the text box in form 2 and vice versa.

Thanks,

Martha
Aug 19 '10 #1
1 1408
Joseph Martell
198 Expert 128KB
As long as they are running in the same application, then I would suggest setting up events and handlers for each form. I think that it is best practice not to expose the controls on one form to the other form, so I would add a new event to each form class and then have each form handle the other's event.

Bear in mind that what is most correct and efficient depend on the circumstances as well. For example, consistency with the coding in the rest of an application can often affect what is considered "correct".
Aug 20 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mike | last post by:
Is there code that I can use to 'repeat' code. For example: I have a form that has about 30 fields on it. I then submit it to another form that has about 20 fields on it. I then submit the...
2
by: zlatko | last post by:
There is a form in an Access Project (.adp, Access front end with SQL Server) for entering data into a table for temporary storing. Then, by clicking a botton, several action stored procedures...
1
by: longtim | last post by:
I have been having endless difficulty creating reports/queries that set any relevent parameters from controls in forms. I am creating an application under access 2003 but will target access...
2
by: Akira | last post by:
Hello. I'm having problem with passing parameters from .aspx file to user control. Could anyone tell me how to pass parameters from .aspx file to user control(.ascx) and how to recieve parameters...
4
by: Mike Dinnis | last post by:
Hi, I've been working through a number of turorials to try to learn more about retrieving data from a SQL database. I think i've mastered techniques where i create a sql string in the page and...
0
by: Neelima Godugu | last post by:
Hi All, I have developed a windows forms user control, which I am going to host in Internet Explorer.. I am familiar with the security settings requirement inorder to do the above. I have...
4
by: David Freeman | last post by:
Hi There! I'm just wondering if there's a way to pass parameters (as if you were passing parameters to a ASCX web control) when calling an ASPX page? e.g. MyDetailsPage.UserName = "david" ...
4
by: marcmc | last post by:
Error = (Too many arguments to Public Sub New()' I have done this before but this project is giving me trouble. At the declaration point of my Login screen I have Windows Form Designer Code......
8
by: only_me | last post by:
Having a bit of trouble here moving to .net. very familiar with the classic ASP way of doing things but can't quite see the wood for the trees here in ..net Classic ASP On a form you have a...
2
by: Matsam | last post by:
Hello, I have an Access form having 3 combos. I need to run a crosstab query when clicking a button in the form. But I want to include the values of the combo boxes in the filter condition of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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...

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.