Click here to Skip to main content
15,913,242 members
Home / Discussions / C#
   

C#

 
GeneralControl Windows Key on Keyboard Pin
Member 6910894-Apr-04 15:04
Member 6910894-Apr-04 15:04 
GeneralRe: Control Windows Key on Keyboard Pin
Heath Stewart4-Apr-04 17:39
protectorHeath Stewart4-Apr-04 17:39 
GeneralRe: Control Windows Key on Keyboard Pin
Member 6910895-Apr-04 7:13
Member 6910895-Apr-04 7:13 
GeneralStartUp Folder?! Pin
Morten Kristensen4-Apr-04 14:28
Morten Kristensen4-Apr-04 14:28 
GeneralRe: StartUp Folder?! Pin
Heath Stewart4-Apr-04 17:29
protectorHeath Stewart4-Apr-04 17:29 
GeneralRe: StartUp Folder?! Pin
Morten Kristensen5-Apr-04 0:28
Morten Kristensen5-Apr-04 0:28 
GeneralAutoScroll on tabpage and animated cursor Pin
Flack4-Apr-04 11:18
Flack4-Apr-04 11:18 
GeneralRe: AutoScroll on tabpage and animated cursor Pin
Heath Stewart4-Apr-04 12:59
protectorHeath Stewart4-Apr-04 12:59 
The scrollbar is a different control so the cursor you set on your control won't be used for the scrollbar.

To know when scrolling occures, extend TabPage with your own control (you can still add these to a TabControl) and override WndProc like so:
private const int WM_HSCROLL = 0x0114;
private const int WM_VSCROLL = 0x0115;
protected override void WndProc(ref Message m)
{
  base.WndProc(ref m);
  if (m.Msg == WM_HSCROLL) OnHScroll();
  else if (m.Msg == WM_VSCROLL) OnVScroll();
}
protected virtual void OnHScroll()
{
  // Do something
}
protected virtual void OnVScroll()
{
  // Do something
}
If you want, add a couple of events that the On* methods fire, and use the Message.WParam and Message.LParam fields to get the relative or absolute positions (which would be handy to pass as EventArgs-derivatives to the event handlers).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: AutoScroll on tabpage and animated cursor Pin
Flack4-Apr-04 17:38
Flack4-Apr-04 17:38 
GeneralRe: AutoScroll on tabpage and animated cursor Pin
Heath Stewart4-Apr-04 17:43
protectorHeath Stewart4-Apr-04 17:43 
GeneralFlickering Controls and Non Transparent Corners Pin
Tristan Rhodes4-Apr-04 10:36
Tristan Rhodes4-Apr-04 10:36 
GeneralRe: Flickering Controls and Non Transparent Corners Pin
Nick Parker4-Apr-04 11:16
protectorNick Parker4-Apr-04 11:16 
GeneralRe: Flickering Controls and Non Transparent Corners Pin
Tristan Rhodes4-Apr-04 11:43
Tristan Rhodes4-Apr-04 11:43 
Questioncreate "washed out" images? Pin
pgraeve4-Apr-04 10:07
pgraeve4-Apr-04 10:07 
AnswerRe: create "washed out" images? Pin
Tristan Rhodes4-Apr-04 10:45
Tristan Rhodes4-Apr-04 10:45 
AnswerRe: create "washed out" images? Pin
Nick Parker4-Apr-04 10:49
protectorNick Parker4-Apr-04 10:49 
GeneralRe: create "washed out" images? Pin
pgraeve4-Apr-04 15:38
pgraeve4-Apr-04 15:38 
GeneralPort Control Pin
zaarzzz4-Apr-04 7:38
zaarzzz4-Apr-04 7:38 
GeneralRe: Port Control Pin
Dave Kreskowiak4-Apr-04 11:22
mveDave Kreskowiak4-Apr-04 11:22 
GeneralRe: Port Control Pin
mhmoud rawas5-Apr-04 0:59
mhmoud rawas5-Apr-04 0:59 
GeneralProgressbar in CommandBar Pin
Shmarya4-Apr-04 6:41
Shmarya4-Apr-04 6:41 
QuestionHow to write double quotes to File. Pin
IrishSonic4-Apr-04 6:40
IrishSonic4-Apr-04 6:40 
AnswerRe: How to write double quotes to File. Pin
Mazdak4-Apr-04 6:48
Mazdak4-Apr-04 6:48 
GeneralRe: How to write double quotes to File. Pin
IrishSonic4-Apr-04 7:11
IrishSonic4-Apr-04 7:11 
GeneralRe: How to write double quotes to File. Pin
Heath Stewart4-Apr-04 12:52
protectorHeath Stewart4-Apr-04 12:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.