Results 11 to 13 of 13
-
6th Jul 2010, 06:47 AM #11OPMemberWebsite's:
litewarez.net litewarez.com triniwarez.comwhats confusing me is the way you have to cross just lots of different classes.
I c ant really do a flow chart but
Code:(Main Class) -> (Jabber Class) -> (Callbacks Class) -> (Main Class) -> [SetLoginStatus]
Code:(Main Class) -> (Jabber Class) -> (Main Class) -> [SetLoginStatus]
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
6th Jul 2010, 12:17 PM #12Respected Developer
C# is a 110% OO language, unlike PHP. C# has events. Everything is C# is an object. In other words in OOP it is normal to be calling classes from classes. However, if something gets confusing about the flow of the program that is most likely due to a poor design or the use of crappy libraries.
-
6th Jul 2010, 02:50 PM #13ლ(ಠ益ಠლ)Website's:
extremecoderz.com"Thread cannot access object in which it was not created on"
That kind of error, or whatever it actually comes up with means exactly that. The thread that is trying to access a textbox, for example, that the thread did not specifically create itself, cannot access it simply because another thread may be doing something with it and mess it all up. So you have to invoke that textbox and say "hey, whats your status as of now". I showed you how to create instances of objects in a few of my sources, which is why i tryed to explain how to do things like that - its so much easier. Invoking objects is quite easy and actually makes a lot of sense once you get into the routine of it.
Take a look at my multi-threading example (attempt) and see if you can get any idea in how to go about doing such things:
http://www.besthostingforums.com/showthread.php?t=37330
Edit: Making objects out of things and making them re-useable, things like that are really useful here. Make a delegate and make it useful. A general status delegate for example that will be constantly used is a good idea. So for example have:
PHP Code:public delegate void GeneralStatusDelegate(string status, int progress, int maxProgress);
private void GeneralStatus(string status, int progress, int maxProgress)
{
toolStripStatusLabel1.Text = status;
toolStripProgressBar1.Maximum = maxProgress;
toolStripProgressBar1.Value = progress;
if (progress == maxProgress || progress == 0)
toolStripProgressBar1.Visible = false;
else
toolStripProgressBar1.Visible = true;
}
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
there is more then 1 million thread in a forum but showing 0 thread 0 post
By anandimhere in forum vBulletinReplies: 2Last Post: 23rd May 2012, 07:46 AM -
Specific Wordpress thread is taking me to my main website instead of that thread
By happyvalentine in forum WordpressReplies: 2Last Post: 13th Nov 2011, 12:23 PM -
Thread Closing & Thread Titles
By Loget in forum News and AnnouncementsReplies: 1Last Post: 6th Sep 2011, 07:22 AM -
can post new thread or reply on thread
By [AcE] in forum Technical Help Desk SupportReplies: 3Last Post: 25th May 2011, 06:07 AM -
Which Is Safe PP/LR/MB
By EsotorisK in forum OtherReplies: 34Last Post: 13th Feb 2010, 02:30 PM
themaCreator - create posts from...
Version 3.46 released. Open older version (or...