AdvancedHMI Software

General Category => Open Discussion => Topic started by: muratguenduez on April 04, 2017, 05:48:05 AM

Title: How can i use same "emailer1" for all forms??
Post by: muratguenduez on April 04, 2017, 05:48:05 AM
Hello Everyone,
first of all i would like to say thanks for AdvancedHMI. It is very usefull.
i have a question, im new for c#. how can i declare the "emailer1" as public static? OR How can i change a component of "emailer1" from another Form ? i have tried same name for both Form and didnt work =)

im waiting for your advanced helps =)

thanks
best regards
Murat
Title: Re: How can i use same "emailer1" for all forms??
Post by: Archie on April 04, 2017, 08:59:34 AM
You can reference a control on another form by using the form name  : MainForm.Emailer1