| | |
How to access elements and objects from a form class to another form class?
![]() |
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
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 187
well as long as you made an instance of your form it would go something like
C# Syntax (Toggle Plain Text)
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.
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 187
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
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.
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 187
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?
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.
![]() |
Similar Threads
- Tutorial: Understanding ASP classes (ASP)
Other Threads in the C# Forum
- Previous Thread: exception pleasehelp
- Next Thread: Communication between 2 forms
Views: 526 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for C#
.net 2d access algorithm application array asp.net bitmap box button c# check checkbox class code color combo combobox connectionproblem control conversion csharp custom data database datagrid datagridview dataset degrees directshow display dll drawing event excel expression file form format forms ftp function game gcd gdi+ graphics image index input install internet label list listbox listener login math mysql object operator photoshop picturebox print programming recursion remote remoting resource resourcefile round saving search server socket sql sql-server start statistics stream string text textbox thread threading time timer treeview tutorial update validation vc++ video view visual webbrowser webcam windows winforms wpf xml






