Re: reference a vb.net windows form control from a module sub

From: Mike McIntyre [MVP] (mikemc_at_dotnetshowandtell.com)
Date: 06/25/04


Date: Fri, 25 Jun 2004 14:18:50 -0700

Do you know how to make a form variable visible to a module or class other
than the form?

If not this article should help:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatasetclasswritexmltopic.asp

-- 
Mike
Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Mark D" <anonymous@discussions.microsoft.com> wrote in message
news:2ae401c4594a$5ff3c640$7d02280a@phx.gbl...
> Hi
>
> Relative vb.net newbie here... I have a Windows Form
> application with a few subroutines in a separate module.
> From one of the subroutines, I want to get the value of a
> label or text box on the form. As it is, I get
> a "Reference to a non-shared member requires an object
> reference." error message. I can't seem to figure out how
> to tell the subroutine how to find and use the labels or
> text boxes on the form.
>
> I'm sure there's an simple command I need to include,
> just can't seem to find it, can someone help?
>
> Mark D
> LandAmerica Data Center - Dallas
>


Relevant Pages

  • reference a vb.net windows form control from a module sub
    ... application with a few subroutines in a separate module. ... label or text box on the form. ... a "Reference to a non-shared member requires an object ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Sub routine location
    ... > does the calling to subroutines etc. ... of an error message isn't jumping out at me as immediately familiar. ... and you get a warning telling you about it. ... prototypes in the first place. ...
    (comp.lang.perl.misc)
  • Re: QBASIC color numbers
    ... subroutines is often to modify one or more of the arguments, ... passing parameters by reference to either functions or procedures ... as SUBs do, and can therefore change their values. ...
    (comp.lang.basic.misc)
  • Re: Strange Fortran version
    ... so it is in fact common to several subroutines... ... Entry points in SUBROUTINES - but using the same label in different ... But the compiler did complain. ...
    (comp.lang.fortran)
  • Re: accessing arrays in a different sub-routine
    ... The first subroutine you call generates the array you want, ... you pass that reference to other subroutines ... You lost me on that one. ...
    (comp.lang.perl.misc)