Pass locatioin to Secondary Form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ed Bitzer

    Pass locatioin to Secondary Form

    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


  • Joe Cool

    #2
    Re: Pass locatioin to Secondary Form

    On Thu, 12 Jun 2008 17:11:36 -0400, "Ed Bitzer" <edbitzer@yahoo .com>
    wrote:
    >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.

    Comment

    • Ed Bitzer

      #3
      Re: Pass locatioin to Secondary 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

      "Joe Cool" <joecool@home.n etwrote in message
      news:t17354hjjt 66hmg1hhohrthsm a75bhnc2l@4ax.c om...
      On Thu, 12 Jun 2008 17:11:36 -0400, "Ed Bitzer" <edbitzer@yahoo .com>
      wrote:
      >
      >>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.

      Comment

      • Joe Cool

        #4
        Re: Pass locatioin to Secondary Form

        On Fri, 13 Jun 2008 07:03:03 -0400, "Ed Bitzer" <edbitzer@yahoo .com>
        wrote:
        >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 Cool" <joecool@home.n etwrote in message
        >news:t17354hjj t66hmg1hhohrths ma75bhnc2l@4ax. com...
        >On Thu, 12 Jun 2008 17:11:36 -0400, "Ed Bitzer" <edbitzer@yahoo .com>
        >wrote:
        >>
        >>>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
        >>>constructo r 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.
        >

        Comment

        • Ed Bitzer

          #5
          Re: Pass locatioin to Secondary Form

          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

          "Joe Cool" <joecool@home.n etwrote in message
          news:4sq554dbvm rm6gj97utg8c6le stna8fjih@4ax.c om...
          On Fri, 13 Jun 2008 07:03:03 -0400, "Ed Bitzer" <edbitzer@yahoo .com>
          wrote:
          >
          >>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 Cool" <joecool@home.n etwrote in message
          >>news:t17354hj jt66hmg1hhohrth sma75bhnc2l@4ax .com...
          >>On Thu, 12 Jun 2008 17:11:36 -0400, "Ed Bitzer"
          >><edbitzer@yah oo.com>
          >>wrote:
          >>>
          >>>>Appreciat e 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
          >>>>construct or 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.
          >>

          Comment

          Working...