473,396 Members | 2,021 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,396 software developers and data experts.

chaging values from one form to another

i have two form in a mdi form container.
one form is a navigation tree build with the treeview with check boxes
control (FormA).
the other is a search engine and a datagrid (FormB).

I would like to pass the selected node tags to FormB according a
search will be preformed and the results will be presented in the
datagrid.
do i need to recreate the FormB object

Form Frm2 = new TheSecoundForm(Param);

or can i use the existing instant of the form that is already open .

alfi
Nov 16 '05 #1
1 955
You can reuse an existing instance of TheSecondform by having it expose
a property or a method that allows that params to be passed to the form.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

alfi wrote:
i have two form in a mdi form container.
one form is a navigation tree build with the treeview with check boxes
control (FormA).
the other is a search engine and a datagrid (FormB).

I would like to pass the selected node tags to FormB according a
search will be preformed and the results will be presented in the
datagrid.
do i need to recreate the FormB object

Form Frm2 = new TheSecoundForm(Param);

or can i use the existing instant of the form that is already open .

alfi

Nov 16 '05 #2

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

Similar topics

2
by: Anton ml. Vahčič | last post by:
Hi, I have a typical textBox: <form id="Form1" method="post" runat="server"> <asp:TextBox id="TextBox1" style="Z-INDEX: 101; LEFT: 48px; POSITION: absolute; TOP: 24px"...
5
by: Antoni Massó Mola | last post by:
I have a form that sends data to another .aspx page. In the second .aspx I have this code to retrieve the form's values and create sessions: Application("Login") = Request.Form("txtLogin")...
2
by: Sky Fly | last post by:
Hello, I have a web form which, when an exception is thrown in its codebehind, should be redirected to another from to display the details of the error message. I have a special asp textbox...
5
by: Miguel Dias Moura | last post by:
Hello, i have an ASP.net / VB page with a Script (submitValues) and a Form. 1. The form has 20 input texts and a "Submit" button. 2. The script declares 20 variables. The value of each...
3
by: Vinicius Bellino | last post by:
Hi All, Is there a way to change a property of an UI control, such as the enabled property of a button, in a child thread? I mean, my code runs a long process, and because I wanted to show the...
8
by: Chris | last post by:
Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1 Private Sub...
2
by: KFactor | last post by:
Is it possible to pass form variables to a page on another server using response.redirect? Or is there a secure way of passing sensitive information from one site to another such as a userID? ...
6
by: Sanjay | last post by:
Hi, Is it possible to save all the names/values of a form to another memo textfield before a Insert to the database then when required on another page split that memo textfield into the name and...
1
by: Adrienne Boswell | last post by:
I have a form which I am letting the user enter more than one event at a time. I need to check whether one date is less than another. If the display to date is earlier than the event date, then...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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,...
0
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...
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
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
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...

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.