473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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:
Hi,
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.
Zaphod.

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
describe.

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

Zaphod.

Comments?
Jul 19 '05 #1
0 1597

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stephen Williams | last post by:
I am migrating a VB 6 PictureBox control to VB.NET. In VB 6, this control modified its border style during the mouse down and up events to provide user feedback that it was selected. Once...
15
by: Jose Michael Meo R. Barrido | last post by:
Hi! Can u please tech me a way to know if the image in the picturebox has changed? what event should i catch the chage?
0
by: Stephen Williams | last post by:
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: Hi, I believe it is...
0
by: Paul L | last post by:
I've created a picturebox inside a panel control with autoscroll enabled. The picturebox is twice the size of the panel so scrollbars are always shown. What I would like to do, is when the user...
1
by: Cedric | last post by:
Hello, I try to create clone of a picturebox throught a inherited class of picturebox where I implemented Icloneable interface. So I use Memberwiseclone to partialy copy members and then...
2
by: active | last post by:
Problem: The PictureBox display appears to have the image cut off. I.e., the image bottom does not display although the PictureBox has room for it. It occurred to me that what was displayed was...
0
by: akh | last post by:
I want to use de Drag and Drop ´s event to move a picture box from a form and within a Picture Box. But I have behaviour if the MyPBox As PictureBox as the Globale varible or not Thanks for...
5
by: Christopher Kurtis Koeber | last post by:
Dear All, This may sound like an elementary question but how do you implement scrollbars for the Picturebox control. Do I have to create my own code to do this or is there some property that I can...
3
by: Tom | last post by:
I have a picturebox on my VB.NET form. The picturebox size mode is set to stretched. I then load an image into that form and display it. As the user moves the mouse over the form, I want to get and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.