Display Setup Question

  • Thread starter Thread starter Marcia
  • Start date Start date
M

Marcia

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: "Declarations," "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
 
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.
 
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_Click" displays on the
right. I thought my display environment options were wrong!

Thanks again,
Jessi
 
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.
 
Back
Top