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:
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 1537

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

Similar topics

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...
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?
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...
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...
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...
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...
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...
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...
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...
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++...
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...
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...
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...
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...
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...
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.
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', {...
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.