By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Display Setup Question

P: n/a
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
Jul 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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" <Je*********@yahoo.com> wrote in message
news:41**************************@posting.google.c om...
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

Jul 19 '05 #2

P: n/a
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
Jul 19 '05 #3

P: n/a
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" <Je*********@yahoo.com> wrote in message
news:41**************************@posting.google.c om...
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

Jul 19 '05 #4

P: n/a
Thanks very much!!
Jessi
Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.