Click here to Skip to main content
15,895,283 members
Home / Discussions / C#
   

C#

 
QuestionImagelist transparency bug Pin
g00fyman14-Oct-05 23:55
g00fyman14-Oct-05 23:55 
Questionsearch for files Pin
Mridang Agarwalla14-Oct-05 22:57
Mridang Agarwalla14-Oct-05 22:57 
AnswerRe: search for files Pin
Rob Philpott15-Oct-05 8:12
Rob Philpott15-Oct-05 8:12 
QuestionI can't convert a var string to a var int Pin
tinh cau14-Oct-05 21:32
tinh cau14-Oct-05 21:32 
AnswerRe: I can't convert a var string to a var int Pin
Guffa14-Oct-05 22:02
Guffa14-Oct-05 22:02 
AnswerRe: I can't convert a var string to a var int Pin
Andrew Kirillov14-Oct-05 22:05
Andrew Kirillov14-Oct-05 22:05 
QuestionRichtextbox scrolling Pin
Anonymous14-Oct-05 18:30
Anonymous14-Oct-05 18:30 
AnswerRe: Richtextbox scrolling Pin
g00fyman15-Oct-05 0:02
g00fyman15-Oct-05 0:02 
set your scrollbars to 'none' and use the SendMessage API call to control the scrolling

e.g.,
<br />
using System.Runtime.InteropServices;<br />
<br />
private const int WM_SCROLL = 276; // Horizontal scroll<br />
private const int WM_VSCROLL = 277; // Vertical scroll<br />
private const int SB_LINEUP = 0; // Scrolls one line up<br />
private const int SB_LINELEFT = 0;// Scrolls one cell left<br />
private const int SB_LINEDOWN = 1; // Scrolls one line down<br />
private const int SB_LINERIGHT = 1;// Scrolls one cell right<br />
private const int SB_PAGEUP = 2; // Scrolls one page up<br />
private const int SB_PAGELEFT = 2;// Scrolls one page left<br />
private const int SB_PAGEDOWN = 3; // Scrolls one page down<br />
private const int SB_PAGERIGTH = 3; // Scrolls one page right<br />
private const int SB_PAGETOP = 6; // Scrolls to the upper left<br />
private const int SB_LEFT = 6; // Scrolls to the left<br />
private const int SB_PAGEBOTTOM = 7; // Scrolls to the upper right<br />
private const int SB_RIGHT = 7; // Scrolls to the right<br />
private const int SB_ENDSCROLL = 8; // Ends scroll<br />
<br />
[DllImport("user32.dll",CharSet=CharSet.Auto)]<br />
private static extern int SendMessage(IntPtr hWnd, int wMsg,IntPtr wParam, IntPtr lParam);<br />


then call SendMessage() and the way you want to scroll Smile | :)

hope that helps
g00fy
GeneralRe: Richtextbox scrolling Pin
AB777115-Oct-05 2:55
AB777115-Oct-05 2:55 
GeneralRe: Richtextbox scrolling Pin
mav.northwind15-Oct-05 22:43
mav.northwind15-Oct-05 22:43 
GeneralRe: Richtextbox scrolling Pin
AB777116-Oct-05 19:08
AB777116-Oct-05 19:08 
Questiongetting folder size from windows Pin
g00fyman14-Oct-05 18:19
g00fyman14-Oct-05 18:19 
AnswerRe: getting folder size from windows Pin
Guffa14-Oct-05 22:07
Guffa14-Oct-05 22:07 
GeneralRe: getting folder size from windows Pin
g00fyman14-Oct-05 22:14
g00fyman14-Oct-05 22:14 
GeneralRe: getting folder size from windows Pin
Guffa14-Oct-05 22:36
Guffa14-Oct-05 22:36 
Questioncode about case-based reasoning Pin
Rachel.S Shen14-Oct-05 16:15
Rachel.S Shen14-Oct-05 16:15 
AnswerRe: code about case-based reasoning Pin
...---...14-Oct-05 16:53
...---...14-Oct-05 16:53 
AnswerRe: code about case-based reasoning Pin
Guffa14-Oct-05 22:09
Guffa14-Oct-05 22:09 
QuestionButton disabling while a page is still loading Pin
TheMajorRager14-Oct-05 14:07
TheMajorRager14-Oct-05 14:07 
AnswerRe: Button disabling while a page is still loading Pin
Guffa14-Oct-05 22:21
Guffa14-Oct-05 22:21 
QuestionI can't get to the next TextBox-- Help Pin
Anonymous14-Oct-05 13:54
Anonymous14-Oct-05 13:54 
AnswerRe: I can't get to the next TextBox-- Help Pin
Anonymous14-Oct-05 18:16
Anonymous14-Oct-05 18:16 
AnswerRe: I can't get to the next TextBox-- Help Pin
leppie14-Oct-05 19:17
leppie14-Oct-05 19:17 
AnswerRe: I can't get to the next TextBox-- Help Pin
Guffa14-Oct-05 22:32
Guffa14-Oct-05 22:32 
QuestionC# Pin
Anonymous14-Oct-05 12:06
Anonymous14-Oct-05 12:06 

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.