Re: Execute function from within a class
From: Rigga (s_at_g.c)
Date: 02/17/04
- Next message: Jon Skeet [C# MVP]: "Re: Unicode problem (displaying japanese text correctly)"
- Previous message: Brandon Bray [MSFT]: "Re: gc classes and destructors"
- In reply to: Tommy: "Execute function from within a class"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 17 Feb 2004 08:10:43 -0000
Is this function one of your own?
If so and you have an instance of a form, then make the function public.
If you don't need an instance of a form then make the function Public
Shared.
Rigga.
"Tommy" <tommy.martin@DONTSPAMMEsoftware-plus.net> wrote in message
news:#7Yp2AO9DHA.712@tk2msftngp13.phx.gbl...
> I need a way to execute a function that is contained in a windows form
from
> a class. How can I pass the address to the function and execute it.
>
> I would settle with passing a button and firing the click event of it from
> within the class to accomplish my task.
>
> How can I accomplish this?
>
> Tommy
>
>
- Next message: Jon Skeet [C# MVP]: "Re: Unicode problem (displaying japanese text correctly)"
- Previous message: Brandon Bray [MSFT]: "Re: gc classes and destructors"
- In reply to: Tommy: "Execute function from within a class"
- Messages sorted by: [ date ] [ thread ]