How to access elements and objects from a form class to another form class?

Reply

Join Date: Aug 2008
Posts: 169
Reputation: murderotica is an unknown quantity at this point 
Solved Threads: 2
murderotica's Avatar
murderotica murderotica is offline Offline
Junior Poster

How to access elements and objects from a form class to another form class?

 
0
  #1
Dec 3rd, 2008
Hello, I've been working with threading these days. I want to put a progress bar which is in a separate form but in the same namespace. My form1 class has all the controls for my drag and drop functionality while in my form2 class will be my progress form in which it will pop up when I will drag and drop multiple files which will make the user wait for it as it progress or press the cancel button to cancel the transferring. My problem is I'm having a hard time accessing the variables to be the basis of my progress bar in class form1. I would really appreciate if you will give me insights and tutorials to guide me with my problem. Thank you
An Avalanche In D Minor
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 187
LizR LizR is offline Offline
Posting Virtuoso

Re: How to access elements and objects from a form class to another form class?

 
0
  #2
Dec 3rd, 2008
well as long as you made an instance of your form it would go something like

  1. frmProgress.Progressbar.Value=0;
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 169
Reputation: murderotica is an unknown quantity at this point 
Solved Threads: 2
murderotica's Avatar
murderotica murderotica is offline Offline
Junior Poster

Re: How to access elements and objects from a form class to another form class?

 
0
  #3
Dec 3rd, 2008
How can I access Outlook variables? Because I'm basing my progress form to the values taken from Outlook, like Outlook.Selection.
An Avalanche In D Minor
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 187
LizR LizR is offline Offline
Posting Virtuoso

Re: How to access elements and objects from a form class to another form class?

 
0
  #4
Dec 3rd, 2008
That last post has little to do with the first - its really a new question and should have a new thread.

What have you googled about outlook - or searched even in this forum
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 169
Reputation: murderotica is an unknown quantity at this point 
Solved Threads: 2
murderotica's Avatar
murderotica murderotica is offline Offline
Junior Poster

Re: How to access elements and objects from a form class to another form class?

 
0
  #5
Dec 3rd, 2008
I'm sorry for the confusion. I consider the Outlook variables as part of my form1 member so I think it is considered as part. I googled but found some and it is a little confusing.
An Avalanche In D Minor
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 187
LizR LizR is offline Offline
Posting Virtuoso

Re: How to access elements and objects from a form class to another form class?

 
0
  #6
Dec 3rd, 2008
the problem is, for someone browsing through the forum, reads your last post and wonders how that has something to do with referencing another form - while for you its related in by project, for the rest of us, its not related at all. Its just another problem

As for doing it - if you found some stuff, thats good, have you tried it, what errors did you get?
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 169
Reputation: murderotica is an unknown quantity at this point 
Solved Threads: 2
murderotica's Avatar
murderotica murderotica is offline Offline
Junior Poster

Re: How to access elements and objects from a form class to another form class?

 
0
  #7
Dec 3rd, 2008
I tried declaring the variable public but it gave me an error.
An Avalanche In D Minor
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 187
LizR LizR is offline Offline
Posting Virtuoso

Re: How to access elements and objects from a form class to another form class?

 
0
  #8
Dec 3rd, 2008
And the error was? did you add the reference? the using statements?
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum


Views: 526 | Replies: 7
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC