473,396 Members | 1,590 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.

Event not raised for Panel

Hi!

I have a created an extended control that inherits from the Panel class. This functions like an editing pane and allows the user to drag and add controls over it.

When I drag the child control toward one of the borders of the panel, the control is restricted to stay within the bounds of the parent panel but the mouse cursor moves out. I want to be able to change the cursor while i am dragging a child control (hence mouse button is down and the active control is the child control) and the mouse moves outside the bounds of the parent. Also, I need to be able to rechange the cursor when the mouse re-enters the panel.

The cursor can be changed in the MouseEnter and MouseLeave events of the parent Panel. But I find that these events dont get fired while I am dragging the child control is active at the moment.

Does anyone have any idea how I can accomplish this?
Is it possible to raise these events for the panel explicitly?

Regards,
Abhishek
Feb 18 '09 #1
2 1552
vekipeki
229 Expert 100+
What about DragEnter and DragLeave events?

Also, if you are inheriting from a control, you might rather override OnDragEnter and OnDragLeave, instead of subscribing to your own base class events.
Feb 18 '09 #2
Hi Vekipeki,

The control does not actually move out of the Panel. They only move within the bounds of the Panel. Its only the cursor that moves out. So these events do not occur and hence don't get fired.

I have checked with few other events too. I found that no events on the Panel get fired as the active control is the child control that is being moved.

Any ideas would be appreciated.
Feb 18 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Luc Benninger | last post by:
Hi, I want a panel control on a form appear as raised. But the BorderStyle property just let me choose Fixed3D which adds a sunken 3D border around the panel. How can I get a raised one? Many...
4
by: Aaron Smith | last post by:
I have a panel that I have in the paint event to draw a Raised 3d border around it.. The problem is, if a msgbox is popped up or a tooltip is displayed, it leaves lines on the panel. I've tried...
2
by: shuckjunkmail | last post by:
It was suggested that I re-submit this question as a new post rather than adding onto an old and unanswered post. The basic problem has to do with the .NET datagrid and sorting. I am having...
9
by: Marcelo Cabrera | last post by:
Hi, I have a user control that in turn creates a bunch of webcontrols dynamically and handles the events these webcontrols raise. It used to work fine on ASP .Net 1.1 but when compiled on 2.0 it...
1
by: theinvisibleGhost | last post by:
Is there an underlying interface anywhere that .NET form controls use to include the Enter, Leave, GotFocus, and LostFocus events? I have a problem where I've got a usercontrol which is being...
2
by: WolfyUK | last post by:
Hello, I have a standard asp:DataGrid called CasesGrid that I wish to write my own paging controls for. The aim is to get something like the following rendered to screen: << First < Previous...
19
by: Daniela Roman | last post by:
Hello, I try to fire an event under a button click event and maybe anybody can give a clue please. I have let's say a WEB grid with PageIndexChanged event: private void...
12
by: markwalker84 | last post by:
Hi there, just wondering if i could have a pointer inthe right direction here... Sorry about the massive code posting - is that a wrong thing to do? from Initials import * import wx...
4
by: yumbelie | last post by:
Hi, I've got an issue where I've created a prototype that contains 2 methods, and a few private variables. The first method simply registers the second method to be an event handler for the...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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.