The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi
I'm trying to use SF FlatScrollBars with generic System.Windows.Forms.TreeView. I know how to attach them, how to disable standard scrollbars and so on, but I don't know how to force TreeView to scroll in response to operations on FSB.
I was trying to send windows message to treeview (as in attachment) but it doesn't seem to work.
I'm using in myTreeView class:
[DllImport("user32.dll")]
public static extern long SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam);
and then
SendMessage(this.Handle, 0x0115, 1, _vScrollBar.Handle);
//0x0115 for WM_VSCROLL
//1 for SB_LINEDOWN
I'll be grateful for any ideas of how to make it work.
> Hi
>
> I'm trying to use SF FlatScrollBars with generic System.Windows.Forms.TreeView. I know how to attach them, how to disable standard scrollbars and so on, but I don't know how to force TreeView to scroll in response to operations on FSB.
>
> I was trying to send windows message to treeview (as in attachment) but it doesn't seem to work.
>
> I'm using in myTreeView class:
>
> [DllImport("user32.dll")]
> public static extern long SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam);
>
> and then
>
> SendMessage(this.Handle, 0x0115, 1, _vScrollBar.Handle);
> //0x0115 for WM_VSCROLL
> //1 for SB_LINEDOWN
>
> I'll be grateful for any ideas of how to make it work.