472,377 Members | 1,565 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,377 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 1537

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
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

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.