Click here to Skip to main content
16,004,761 members
Home / Discussions / C#
   

C#

 
GeneralRe: File Problem Pin
Dave Kreskowiak22-Jun-04 13:07
mveDave Kreskowiak22-Jun-04 13:07 
GeneralRe: File Problem Pin
Peter Vertes23-Jun-04 8:49
Peter Vertes23-Jun-04 8:49 
GeneralUpdating text in a form while other tasks are happening Pin
quilkin22-Jun-04 9:25
quilkin22-Jun-04 9:25 
GeneralRe: Updating text in a form while other tasks are happening Pin
LongRange.Shooter22-Jun-04 9:42
LongRange.Shooter22-Jun-04 9:42 
GeneralRe: Updating text in a form while other tasks are happening Pin
quilkin23-Jun-04 8:12
quilkin23-Jun-04 8:12 
GeneralRe: Updating text in a form while other tasks are happening Pin
LongRange.Shooter23-Jun-04 8:49
LongRange.Shooter23-Jun-04 8:49 
GeneralListBox Pin
Gary Kirkham22-Jun-04 8:57
Gary Kirkham22-Jun-04 8:57 
GeneralRe: ListBox Pin
Heath Stewart22-Jun-04 10:44
protectorHeath Stewart22-Jun-04 10:44 
Extend the class, override WndProc, and handle WM_HSCROLL (0x0114) and WM_VSCROLL (0x0115). I suggest defining two events and their virtual handlers (VScroll event fired by OnVScroll handler, and HScroll event fired by OnHScroll - the recommended way of defining events) and fire those along with any data you want in your WndProc override.

To set the position, you P/Invoke SendMessage and send those messages to your control's HWND (window handle, exposed by the Handle property). Note that when setting the position, you must also update the scrollbar position information by P/Invoking SetScrollInfo. Why and what you should pass is documented on MSDN[^] if you lookup WM_VSCROLL.

 

Microsoft MVP, Visual C#
My Articles
GeneralI have problem to make connection on Access database. Pin
SasaTod22-Jun-04 8:56
SasaTod22-Jun-04 8:56 
GeneralRe: I have problem to make connection on Access database. Pin
Heath Stewart22-Jun-04 10:38
protectorHeath Stewart22-Jun-04 10:38 
GeneralRe: I have problem to make connection on Access database. Pin
SasaTod23-Jun-04 6:19
SasaTod23-Jun-04 6:19 
Questionsend ICMP packet like PING in .net? Pin
vista2722-Jun-04 7:51
vista2722-Jun-04 7:51 
AnswerRe: send ICMP packet like PING in .net? Pin
Daniel Turini22-Jun-04 8:18
Daniel Turini22-Jun-04 8:18 
AnswerRe: send ICMP packet like PING in .net? Pin
eggie522-Jun-04 8:49
eggie522-Jun-04 8:49 
AnswerRe: send ICMP packet like PING in .net? Pin
yoaz22-Jun-04 22:26
yoaz22-Jun-04 22:26 
Generalconverting vb.net code to c# Pin
vijju0422-Jun-04 7:44
vijju0422-Jun-04 7:44 
GeneralRe: converting vb.net code to c# Pin
Heath Stewart22-Jun-04 8:18
protectorHeath Stewart22-Jun-04 8:18 
GeneralRe: converting vb.net code to c# Pin
vijju0422-Jun-04 10:28
vijju0422-Jun-04 10:28 
GeneralRe: converting vb.net code to c# Pin
Heath Stewart22-Jun-04 10:36
protectorHeath Stewart22-Jun-04 10:36 
GeneralRe: converting vb.net code to c# Pin
Heath Stewart22-Jun-04 8:29
protectorHeath Stewart22-Jun-04 8:29 
GeneralRe: converting vb.net code to c# Pin
LongRange.Shooter22-Jun-04 10:00
LongRange.Shooter22-Jun-04 10:00 
GeneralRe: converting vb.net code to c# Pin
Heath Stewart22-Jun-04 10:32
protectorHeath Stewart22-Jun-04 10:32 
GeneralAuto adjust column width Pin
vcorn22-Jun-04 7:44
vcorn22-Jun-04 7:44 
GeneralRe: Auto adjust column width Pin
Heath Stewart22-Jun-04 8:12
protectorHeath Stewart22-Jun-04 8:12 
GeneralHelp me with an e-mail. Pin
svenakela22-Jun-04 7:36
svenakela22-Jun-04 7:36 

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.