Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "ShowScrollBar" in [All]

user32

.
Summary
.

public static extern bool ShowScrollBar(IntPtr hWnd, int wBar, [MarshalAs(UnmanagedType.Bool)] bool bShow);

.

Private Declare Function ShowScrollBar Lib "user32" (ByVal hwnd As Long, ByVal wBar As Long, ByVal bShow As Long) As Long

.

In the TextBox's Change event handler, use the PictureBox's TextHeight function to see how tall the text is. If the text is too big to fit in the TextBox, we need to display the scrollbar. If the need for the scrollbar has changed, use the ShowScrollBar API function to show or hide it.

.

Private Declare Function ShowScrollBar Lib "user32" (ByVal _

.

    ShowScrollBar txtValue.hwnd, SB_VERT, _

.
Documentation
[ShowScrollBar] on MSDN
.

Public Shared Function ShowScrollBar(ByVal hWnd As System.IntPtr, ByVal wBar As Integer, ByVal bShow As Boolean) As Boolean

.

Call ShowScrollBar(hWnd1, SB_VERT, mytrue)

Constants

2: EM_
.
EM_SHOWSCROLLBAR WM_USER + 96 TODO
.

    SHOWSCROLLBAR = WM.USER + 96,


 
Access PInvoke.net directly from VS: