Activity Stream
48,167 MEMBERS
61122 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1.     
    #11
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    whats 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]
    I dont understand why it cant follow the following route
    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


  2.   Sponsored Links

  3.     
    #12
    Respected 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.

  4.     
    #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 statusint progressint maxProgress);
            private 
    void GeneralStatus(string statusint progressint maxProgress)
            {
                
    toolStripStatusLabel1.Text status;
                
    toolStripProgressBar1.Maximum maxProgress;
                
    toolStripProgressBar1.Value progress;

                if (
    progress == maxProgress || progress == 0)
                    
    toolStripProgressBar1.Visible false;
                else
                    
    toolStripProgressBar1.Visible true;
            } 
    This will be very useful to invoke as you can see. We can set a string status, a current progress of the progressbar and a MaxProgress. very useful

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 23rd May 2012, 07:46 AM
  2. Replies: 2
    Last Post: 13th Nov 2011, 12:23 PM
  3. Thread Closing & Thread Titles
    By Loget in forum News and Announcements
    Replies: 1
    Last Post: 6th Sep 2011, 07:22 AM
  4. can post new thread or reply on thread
    By [AcE] in forum Technical Help Desk Support
    Replies: 3
    Last Post: 25th May 2011, 06:07 AM
  5. Which Is Safe PP/LR/MB
    By EsotorisK in forum Other
    Replies: 34
    Last Post: 13th Feb 2010, 02:30 PM

Tags for this Thread

BE SOCIAL