More IDE woes

L

Lloyd Sheen

I should have been on the QA team. Now I have trouble with GUI events and
handling those events. I put two picture boxes on a form and am attempting
to use them as buttons. The regular button is a mess when I attempt to put
the icon as the image.

So in the designer I double click the pic box and it jumps to the code for
picbox_click. So far so good. Add the code like any other event , start
the app, get to where I can click the pic and ..... wait for it, nothing
happens. All other events on the form happen with no problem. The handles
syntax is generated for the event but ... wait for it ... nothing happens.

How can this be RAD??? An IDE is supposed to help with coding. If the
click event will not be captured then why is it shown (especially since it
is the default action).

Any ideas? ( and I have already re-installed about 5 times).

Lloyd Sheen
 
G

Guest

You don't by any chance have any dragdrop properties or events on this picture box do you?
 
L

Lloyd Sheen

No, but the pic box is on a panel , which is on a user control , which is on
a panel on an app. Thought that one of the other controls was eating the
event but if I add a double click event handler for the hosting panel, that
event happens even when I click on the pic box (which shows correctly). I
finally got the regular button to work with my icons so I have left that one
as a head scratcher.

Lloyd

geoffhanna said:
You don't by any chance have any dragdrop properties or events on this
picture box do you?
 
G

Guest

See if right-clicking raises the click event on the picture box. If it does, something else is consuming your event on a left click. I think this is more of an issue in VB6 than it is in .NET but it's something to check anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top