This s/b easy, and I'm sure it is, but I haven't been able to figure it out:
I want to pass the value of a textbox from form1 to form2 - both are child
forms of the mdi parent 'baseform'. form1 opens form2 with
Dim newmdichild As New reportprinter_viewerparam
newmdichild.Text = "Invoice Print"
newmdichild.ShowDialog(Me)
But I can't seem to figure out how to reference textbox1. from form1. I do
not want to use a global variable, as I know how to do that but I'm trying
to avoid extensive development of globals.
Thanks for any help.
Bernie Yaeger 4 4049
Check out following article : http://msdn.microsoft.com/library/en...adingToNET.asp
--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Bernie Yaeger" <be*****@cherwellinc.com> schreef in bericht
news:eY**************@TK2MSFTNGP12.phx.gbl... This s/b easy, and I'm sure it is, but I haven't been able to figure it
out: I want to pass the value of a textbox from form1 to form2 - both are child forms of the mdi parent 'baseform'. form1 opens form2 with Dim newmdichild As New reportprinter_viewerparam
newmdichild.Text = "Invoice Print"
newmdichild.ShowDialog(Me)
But I can't seem to figure out how to reference textbox1. from form1. I
do not want to use a global variable, as I know how to do that but I'm trying to avoid extensive development of globals.
Thanks for any help.
Bernie Yaeger
Hi Jan,
Tx for your response. I actually found an answer that Herfried provided in
another ng re public properties etc.
Tx for your help.
Bernie
"Jan Tielens" <ja*@no.spam.please.leadit.be> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Check out following article : http://msdn.microsoft.com/library/en...adingToNET.asp
-- Greetz, Jan __________________________________ Read my weblog: http://weblogs.asp.net/jan "Bernie Yaeger" <be*****@cherwellinc.com> schreef in bericht news:eY**************@TK2MSFTNGP12.phx.gbl... This s/b easy, and I'm sure it is, but I haven't been able to figure it out: I want to pass the value of a textbox from form1 to form2 - both are
child forms of the mdi parent 'baseform'. form1 opens form2 with Dim newmdichild As New reportprinter_viewerparam
newmdichild.Text = "Invoice Print"
newmdichild.ShowDialog(Me)
But I can't seem to figure out how to reference textbox1. from form1. I do not want to use a global variable, as I know how to do that but I'm
trying to avoid extensive development of globals.
Thanks for any help.
Bernie Yaeger
* "Bernie Yaeger" <be*****@cherwellinc.com> scripsit: This s/b easy, and I'm sure it is, but I haven't been able to figure it out: I want to pass the value of a textbox from form1 to form2 - both are child forms of the mdi parent 'baseform'. form1 opens form2 with Dim newmdichild As New reportprinter_viewerparam
newmdichild.Text = "Invoice Print"
newmdichild.ShowDialog(Me)
But I can't seem to figure out how to reference textbox1. from form1. I do not want to use a global variable, as I know how to do that but I'm trying to avoid extensive development of globals.
Add a public property to 'Form2' and set this property before showing
it. In the implementation of the property, you can store the value in a
textbox or return the value entered in the textbox.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Hi Herfried,
Thanks; as you'll note from my response to Jan, I saw your post in the
windows.forms ng where you answered the question perfectly, as you always
do.
Tx
Bernie
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eX****************@tk2msftngp13.phx.gbl... * "Bernie Yaeger" <be*****@cherwellinc.com> scripsit: This s/b easy, and I'm sure it is, but I haven't been able to figure it
out: I want to pass the value of a textbox from form1 to form2 - both are
child forms of the mdi parent 'baseform'. form1 opens form2 with Dim newmdichild As New reportprinter_viewerparam
newmdichild.Text = "Invoice Print"
newmdichild.ShowDialog(Me)
But I can't seem to figure out how to reference textbox1. from form1. I
do not want to use a global variable, as I know how to do that but I'm
trying to avoid extensive development of globals.
Add a public property to 'Form2' and set this property before showing it. In the implementation of the property, you can store the value in a textbox or return the value entered in the textbox.
-- Herfried K. Wagner [MVP] <http://www.mvps.org/dotnet> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Davide Bruzzone |
last post by:
Greetings all...
Here's a description of the problem that I'm trying to solve:
- I have a Web page from which users can open one or more other
windows.
- From that web page, the user can then...
|
by: cirillo_curiosone |
last post by:
Hi,
i'm new to javascript. I started studing it on the web few weeks ago,
but still haven't been able to solve one big problem: HOT TO PASS VALUES
FROM A SCRIPT VARIABLE TO A CHILD HTML...
|
by: Vaughn |
last post by:
In my MDI, I have a child form (frm_emp) that on a button click, displays
another child form w/ a listview (frm_list). I had two questions:
1) Assuming I already have the emplcode the user...
|
by: Ron Rohrssen |
last post by:
I want to show a dialog and when the form (dialog) is
closed, return to the calling form. The calling form
should then be able to pass the child form to another
object with the form as a...
|
by: Paul D. Fox |
last post by:
I'm trying to launch a Child Window from a hyperlink on a Datagrid and have
it recieve multiple values from the Parent Window. Upon recieving the
values in the Child Window, I need to access them...
|
by: ssrivani |
last post by:
hi all,
I have a parent window default.aspx which has a textbox(txtBox1) with
multiline property and a button.when the button is clicked a child
window pops up child.aspx.
I have four textboxes...
|
by: pingalkar |
last post by:
Hi,
In my application, I call one popup winodow by using this link..
<a href="#" onClick="return showWindow('1','XYZ');">
<img src="images/magnifier.gif" ALT="Chemicals"...
|
by: John Sheppard |
last post by:
Hello there I was wondering if anyone could help me,
I am trying to pass a typed dataset to a dialoged child form by reference.
I have binding sources sitting on the child form. So to refresh...
|
by: raylopez99 |
last post by:
This thread is about how variables or parameters (including objects)
are passed between forms (namely, using parameterized constructors,
e.g., to pass an int between forms (e.g., a calling form and...
|
by: EntryTeam |
last post by:
Hello.
I'm trying to figure out the best way of communication between two classes:
MainForm.cs
ServiceChild.cs
(1) Now I have ServiceChild.MyMethod() which gets around 10 arguments using...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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: 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...
| |