Author Topic: How can i use same "emailer1" for all forms??  (Read 1132 times)

muratguenduez

  • Newbie
  • *
  • Posts: 22
    • View Profile
How can i use same "emailer1" for all forms??
« 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: How can i use same "emailer1" for all forms??
« Reply #1 on: April 04, 2017, 08:59:34 AM »
You can reference a control on another form by using the form name  : MainForm.Emailer1