Pass locatioin to Secondary Form

  • Thread starter Thread starter Ed Bitzer
  • Start date Start date
E

Ed Bitzer

Appreciate some direction as to what most of you professionals do when
passing some limited variables to another form. A simple example
would be passing the location of a second form. I could use a
constructor which I think of as parameters attached to the creation of
my New form (parameters) or I could use "properties" as I have learned
to use with classes. Some advice please.

Ed
 
Appreciate some direction as to what most of you professionals do when
passing some limited variables to another form. A simple example
would be passing the location of a second form. I could use a
constructor which I think of as parameters attached to the creation of
my New form (parameters) or I could use "properties" as I have learned
to use with classes. Some advice please.

My personal preference is to use properties in the secondary form to
pass data to it from the calling form.
 
Thanks Joe... this lets me concentrate on me using added classes to
avoid my historical use of globals and modules and maybe learn to use
them more often.
Ed
 
Thanks Joe... this lets me concentrate on me using added classes to
avoid my historical use of globals and modules and maybe learn to use
them more often.

If you ever expect to move to C#.NET, you will be forced to give up on
global variables.
 
Joe,

Rereading my comment to you I see some lack of clarity - I did mean
that I am going to avoid the globals and already have recoded a couple
of older programs I wrote for myself using "properties" (fields) in a
class and dumped the module.

Thanks again, Ed
 
Back
Top