![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hello,
I have a winform UserControl that i created. It contains a flowlayoutpanel that i want to enable scrolling on. I have tried attaching the event handler to to this panel, to the usercontrol itself, etc., but the event never fires. this.MouseWheel += new MouseEventHandler(RecentActivity_MouseWheel); this.flowPanel.MouseWheel += new MouseEventHandler(RecentActivity_MouseWheel); Any ideas? tx :-) |
Ads |
#2
|
|||
|
|||
![]()
I was able to resolve this (finally) - the solution is simple but not
appearant. 1.) On The click event of the control you want to scroll (ie: flowlayoutpanel), simply set focus to that control - thats it! Even when clicking on the control or using the scrollbar, it was not considered as 'having focus' "aiKeith" wrote: Hello, I have a winform UserControl that i created. It contains a flowlayoutpanel that i want to enable scrolling on. I have tried attaching the event handler to to this panel, to the usercontrol itself, etc., but the event never fires. this.MouseWheel += new MouseEventHandler(RecentActivity_MouseWheel); this.flowPanel.MouseWheel += new MouseEventHandler(RecentActivity_MouseWheel); Any ideas? tx :-) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with Event firing of Function MyListbox_Click() | John E. | Outlook - Using Forms | 3 | January 2nd 07 01:11 AM |
vbScript Not Firing | Boyd | Outlook - Using Forms | 2 | September 29th 06 11:58 PM |
AdvancedSearchComplete Even Not Firing | Dav Banks | Outlook and VBA | 8 | June 8th 06 10:18 PM |
Mapi Folder Items ItemChange event is not firing | AtulSureka | Outlook and VBA | 3 | February 5th 06 07:25 PM |
Outlook Addin CommandBarButton Click Event Not Firing | Stu | Add-ins for Outlook | 0 | January 17th 06 03:10 AM |