Results 1 to 15 of 15

Thread: No Longer "Quick Question"........Accessing controls on the main form from a CLASS,

Hybrid View

  1. #1

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Quick Question

    No probs buddy

    Thanks for the reply anyway

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    in the nederlands
    Posts
    37

    Talking Re: Quick Question

    np
    what is xml ???

    help my please on this link for xml
    http://www.vbforums.com/showthread.php?t=322815



  3. #3
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: Quick Question

    Hi Dino
    You forgot the new on your DeviationCalculation function.
    VB Code:
    1. Dim prog As ProgressBar


    Regards
    Jorge
    "The dark side clouds everything. Impossible to see the future is."

  4. #4

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Quick Question

    Yeha that is on the main form...

    i have no problems with progBar ....just with progBar1 coz i am calling it from the module...


  5. #5
    New Member
    Join Date
    Jan 2005
    Posts
    7

    Re: Quick Question

    haven't you forgotten to set CRSC before calling the sub in this module. Anyways wouldn't it be better to move all this into a class instead of a module?

  6. #6

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Quick Question

    Why would it be better in a class?

  7. #7
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142

    Re: No Longer "Quick Question".........dragging on now..

    if you put it in a class , you can add a reference to your Form ( because it's a null object at present ) , eg:
    VB Code:
    1. Public Class mod_Maths_Functions
    2.  
    3.     Public CRSC As CRS_Creator.frmMain
    4.    
    5.     Public Sub New(frm As Form)
    6.         CRSC = DirectCast( frm , CRS_Creator.frmMain )
    7.         '/// Now CRSC is an Active Reference to CRS_Creator.frmMain
    8.     End Sub
    9.  
    10. '/// Rest of Your Code Here ...
    11.  
    12. End Class
    to access from a Form / Class ...
    VB Code:
    1. Dim cls As New mod_Maths_Functions( Me ) '/// Where Me = the name of the Calling Form ( ie: CRS_Creator.frmMain )
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width