PC Review


Reply
Thread Tools Rate Thread

How to display result in a different form?

 
 
paavani krama via .NET 247
Guest
Posts: n/a
 
      16th Mar 2005
(Type your message here)
I am using two forms.From the first form i need to getinformatiom.After performing necessary calculations,the resultshould be displayed in the 2nd form.i am storing the results inpublic variables in 1st form.I want the 2nd form to access thepublic variables in the 1st form and display the same in thesecond form.How can i do it?
--------------------------------
From: paavani krama

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>LMZS1NrIL0iPBKc2Im564w==</Id>
 
Reply With Quote
 
 
 
 
Terry Burns
Guest
Posts: n/a
 
      16th Mar 2005
One way . . .

in form 1
Declare a Public Readonly Property to get a Privately declared variable
value

in form 2
Overload the Sub new and pass it the reference form the the calling form
Use the passed reference to get the Property in form1

in form1
dim f as new Form2(me)
f.show()


--
Terry Burns
http://TrainingOn.net



"paavani krama via .NET 247" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
(Type your message here)
I am using two forms.From the first form i need to get informatiom.After
performing necessary calculations,the result should be displayed in the 2nd
form.i am storing the results in public variables in 1st form.I want the 2nd
form to access the public variables in the 1st form and display the same in
the second form.How can i do it?
--------------------------------
From: paavani krama

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>LMZS1NrIL0iPBKc2Im564w==</Id>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form to display result Jeff Microsoft Access Forms 6 31st Oct 2009 01:21 PM
Dynamic Form: display query result and update based on form entrie Bryan Microsoft Access 0 25th Mar 2009 02:28 PM
display a qry result in a form, select from the result & write out Brian Beardmore Microsoft Access Forms 0 16th Feb 2009 11:04 PM
Use data from form for quary and display result on same form Bosque Microsoft Access Macros 1 16th Mar 2008 08:33 AM
Display result from VBA into a control of form Karen Huynh Microsoft Access Forms 2 9th Oct 2003 11:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:14 PM.