Click here to Skip to main content
15,902,811 members
Home / Discussions / C#
   

C#

 
GeneralRe: TreeNodes Pin
g00fyman27-Sep-05 1:45
g00fyman27-Sep-05 1:45 
GeneralRe: TreeNodes Pin
PHDENG8127-Sep-05 1:53
PHDENG8127-Sep-05 1:53 
GeneralRe: TreeNodes Pin
g00fyman27-Sep-05 2:05
g00fyman27-Sep-05 2:05 
GeneralRe: TreeNodes Pin
PHDENG8127-Sep-05 2:10
PHDENG8127-Sep-05 2:10 
GeneralRe: TreeNodes Pin
g00fyman27-Sep-05 2:26
g00fyman27-Sep-05 2:26 
GeneralRe: TreeNodes Pin
PHDENG8127-Sep-05 2:42
PHDENG8127-Sep-05 2:42 
GeneralRe: TreeNodes Pin
g00fyman27-Sep-05 2:45
g00fyman27-Sep-05 2:45 
Questionhorizontal scrolling Pin
g00fyman27-Sep-05 1:22
g00fyman27-Sep-05 1:22 
hi to all,

does anyone know why this is not working for me, if have searched hi and low to get the constants (btw, is there an easy way to inspect dll to get constants ?) and i have come up with this but it doesnt scroll, i only want to scroll horizontally, single line, to make sure i can left / right scroll through textbox over/under flow

<br />
    private const int WM_HSCROLL = 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 />
 <br />
    [DllImport("user32.dll", CharSet=CharSet.Auto)]<br />
    private static extern int SendMessage(IntPtr hWnd, int wMsg, IntPtr wParam, IntPtr lParam);<br />
<br />
<br />
    private void btnScrollLeft_Click(object sender, System.EventArgs e)<br />
    {<br />
      SendMessage(this.textBox.Handle, WM_HSCROLL, (IntPtr)SB_LINELEFT, IntPtr.Zero);<br />
    }<br />


any help would be excellent,

thank you
g00fy
AnswerRe: horizontal scrolling Pin
Christian Graus27-Sep-05 1:42
protectorChristian Graus27-Sep-05 1:42 
GeneralRe: horizontal scrolling Pin
g00fyman27-Sep-05 1:50
g00fyman27-Sep-05 1:50 
GeneralRe: horizontal scrolling Pin
Christian Graus27-Sep-05 2:11
protectorChristian Graus27-Sep-05 2:11 
GeneralRe: horizontal scrolling Pin
g00fyman27-Sep-05 2:29
g00fyman27-Sep-05 2:29 
QuestionXtending Stylesheets Pin
Member 194743127-Sep-05 0:56
Member 194743127-Sep-05 0:56 
QuestionSystem.Data.SqlClient.SqlException Pin
signbit27-Sep-05 0:36
signbit27-Sep-05 0:36 
Questioncustom button component Pin
ppp00127-Sep-05 0:17
ppp00127-Sep-05 0:17 
AnswerRe: custom button component Pin
seee sharp27-Sep-05 0:25
seee sharp27-Sep-05 0:25 
QuestionDatabase Error Pin
AshishBasran27-Sep-05 0:00
sussAshishBasran27-Sep-05 0:00 
Questionrunning a javascript every time a button with autopostback is clicked Pin
livez26-Sep-05 23:58
livez26-Sep-05 23:58 
AnswerRe: running a javascript every time a button with autopostback is clicked Pin
Christian Graus27-Sep-05 0:30
protectorChristian Graus27-Sep-05 0:30 
GeneralRe: running a javascript every time a button with autopostback is clicked Pin
livez27-Sep-05 1:24
livez27-Sep-05 1:24 
QuestionKeyboard control Pin
J Liang26-Sep-05 23:33
J Liang26-Sep-05 23:33 
AnswerRe: Keyboard control Pin
Lapje28-Sep-05 4:09
Lapje28-Sep-05 4:09 
QuestionBreakpoint don't work :( WHY??? HELP!!! Pin
yarns26-Sep-05 23:17
yarns26-Sep-05 23:17 
AnswerRe: Breakpoint don't work :( WHY??? HELP!!! Pin
Christian Graus27-Sep-05 0:30
protectorChristian Graus27-Sep-05 0:30 
GeneralRe: Breakpoint don't work :( WHY??? HELP!!! Pin
yarns27-Sep-05 1:31
yarns27-Sep-05 1:31 

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.