Global variable

  • Thread starter Thread starter Patrick Weidener
  • Start date Start date
P

Patrick Weidener

I would like to get the window handle of a certain window at my app's
startup and store this value in variable so that I can use it within my
whole app. Can somebody give me a sample?
 
I would like to get the window handle of a certain window at my app's
startup and store this value in variable so that I can use it within my
whole app. Can somebody give me a sample?

Hi,

Is your problem where/how to store the handlers or how to get those
handlers?

I suggest a static class and you might want to store a reference to
the Form instead.
Also remember that if you do so the form will not be destroyed so you
should think carefully which forms to store there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top