Display Setup Question

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

    #1

    Display Setup Question

    Hello. I have just enrolled in a Visual Basic class, so please
    forgive this very basic question about the display environment of the
    VB Editor....

    The illustrations in my textbook indicate that they can choose the
    form that they have created in the Class View and, to the right of
    that, they can choose one or more **specifically-named** event
    procedure(s) that they have written for various objects (ie.,
    btnPush_Click).

    When I view my screen, however, I can choose the specific form that I
    created in the class name box. However, I am unable to choose from
    the method name box the specific event procedures that I have written.
    All I see in the drop-down window are: "Declaratio ns," "New,"
    "Finalize," and "Initialize Component."

    I am sure that this is something very simple... How can I choose the
    event procedures that I have written in the drop-down window?

    Thanks!
    Jessi
  • Scott M.

    #2
    Re: Display Setup Question

    The "click" event is an event that is tied to a button, not the form, so you
    must first select the control that owns the event in the left drop down box.

    Even after you choose it in the left drop down, the drop down will later
    revert back to showing the form, so you have to choose the control again in
    the left drop down when you want to see its events.

    "Marcia" <Jessi_Right@ya hoo.com> wrote in message
    news:41df4e1e.0 309021644.54b48 b9e@posting.goo gle.com...[color=blue]
    > Hello. I have just enrolled in a Visual Basic class, so please
    > forgive this very basic question about the display environment of the
    > VB Editor....
    >
    > The illustrations in my textbook indicate that they can choose the
    > form that they have created in the Class View and, to the right of
    > that, they can choose one or more **specifically-named** event
    > procedure(s) that they have written for various objects (ie.,
    > btnPush_Click).
    >
    > When I view my screen, however, I can choose the specific form that I
    > created in the class name box. However, I am unable to choose from
    > the method name box the specific event procedures that I have written.
    > All I see in the drop-down window are: "Declaratio ns," "New,"
    > "Finalize," and "Initialize Component."
    >
    > I am sure that this is something very simple... How can I choose the
    > event procedures that I have written in the drop-down window?
    >
    > Thanks!
    > Jessi[/color]


    Comment

    • Marcia

      #3
      Re: Display Setup Question

      Thanks, Scott. I selected the control button on the left, and I was
      able to see it's "Click" event on the right.

      It irks me, though, that the book repeatedly shows something else. The
      form is selected on the left, and "btnFranklin_Cl ick" displays on the
      right. I thought my display environment options were wrong!

      Thanks again,
      Jessi

      Comment

      • Scott M.

        #4
        Re: Display Setup Question

        Actually, your book is correct (although misleading). You see, after you do
        successfully select your control event in the right-hand drop down box and
        then do almost anything in the IDE, the LEFT drop down box reverts to
        showing the form, but the RIGHT drop down box stays put.

        This is a new behavior for these drop downs in VS .NET. It used to be that
        once you selected something it stayed there until you changed it.



        "Marcia" <Jessi_Right@ya hoo.com> wrote in message
        news:41df4e1e.0 309030214.12251 770@posting.goo gle.com...[color=blue]
        > Thanks, Scott. I selected the control button on the left, and I was
        > able to see it's "Click" event on the right.
        >
        > It irks me, though, that the book repeatedly shows something else. The
        > form is selected on the left, and "btnFranklin_Cl ick" displays on the
        > right. I thought my display environment options were wrong!
        >
        > Thanks again,
        > Jessi[/color]


        Comment

        • Marcia

          #5
          Re: Display Setup Question

          Thanks very much!!
          Jessi

          Comment

          Working...