2010-07-08 11 views

cevap

14

Evet, bu bir sistem ayarıdır. SystemInformation.HorizontalScrollBarHeight ve SystemInformation.VerticalScrollBarWidth kullanın. SystemInformation.HorizontalScrollBarHeight ve SystemInformation.VerticalScrollBarWidth yoktur

Net CF On
+0

Ben, teşekkürler var anladılar! – SwDevMan81

6

, bazı P/çağır gereklidir:

public sealed class Native 
{ 
    public static Int32 GetVerticalScrollbarWidth() 
    { 
     return GetSystemMetrics(SM_CXVSCROLL); 
    } 

    public Int32 GetHorizontalScrollbarHeight() 
    { 
     return GetSystemMetrics(SM_CYHSCROLL); 
    } 

    [DllImport("coredll.dll", SetLastError = true)] 
    public static extern Int32 GetSystemMetrics(Int32 index); 

    public const Int32 
     SM_CXVSCROLL = 2, 
     SM_CYHSCROLL = 3; 
} 
+0

Teşekkürler, bana bir sürü güçlük kurtardı – Manatherin

İlgili konular