469,951 Members | 2,706 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,951 developers. It's quick & easy.

Bug - PictureBox Class ? Microsoft Feedback Solicited

Does Microsoft have a comment the possible bug on the
PictureBox Class. Here is the exchange I had on the
Experts-Exchange regarding this issue:

From Z_Beeblebrox:
I believe it is standard windows behavious to continue to
send mouse events to the window in which the mouse was
depressed until the mouse is released. A quick test in VB6
confirms this, but I don't have .Net here to test that,
but I don't see why it would be any different. So, in that
case, you don't need to do anything special at all to have
similar functionality as Word.

From Myself:
Thank-you Zaphod. However, and unfortunately I didn't
realize this when I posed the question, the difficulty is
that I had set my VB.NET Picturebox's BorderStyle to
Fixed3D (or FixedSingle) during the MouseDown event of the
PictureBox control. Doing this seems to stop the
PictureBox control from receiving mouse events unless the
mouse is within the boundaries of the PictureBox. "NOT"
doing this does give the standard functionality you

So what I want is to alter the appearance of the control
until the MouseUp event occurs. Setting the BorderStyle
property affects the transmission of mouse events. Is
there another approach?

From Z_Beeblebrox:
Wow, thats amazing. That's gotta be a bug. I did some
investigating and the control doesn't even receive mouse
move events from windows after you change the border
style. I tried with the panel control, and it doesn't have
this problem. Also, you don't get a mouse up notification
if you release the mouse button outside of the control.
Something is seriously screwed up with that control. Is
there a reason you need to use the PictureBox? You may
find the panel control will work for you if you are making
your own control, I am using right now for a control I am
making. Also, you may want to tell Microsoft about this,
its probably not something people try very often :P


Jul 19 '05 #1
0 1458

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Stephen Williams | last post: by
reply views Thread by Stephen Williams | last post: by
reply views Thread by Paul L | last post: by
1 post views Thread by Cedric | last post: by
2 posts views Thread by active | last post: by
reply views Thread by akh | last post: by
5 posts views Thread by Christopher Kurtis Koeber | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.