VB.Net Tutorial/Development/SystemInformation

Материал из VB Эксперт
Версия от 12:53, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

System Information: DoubleClickSize, DoubleClickTime, MouseButtons, MouseButtonsSw apped

imports System.Windows.Forms
Public Class Tester
    Public Shared Sub Main
                       Console.WriteLine(SystemInformation.DoubleClickSize.ToString())
                       Console.WriteLine(SystemInformation.DoubleClickTime.ToString())
                       Console.WriteLine(SystemInformation.MouseButtons.ToString())
                       Console.WriteLine(SystemInformation.MouseButtonsSwapped.ToString())
     End Sub
End Class
{Width=4, Height=4}
500
5
False

System Information: MousePresent, MouseWheelPresent, MouseWheelScrollLines, Native MouseWheelSupport

imports System.Windows.Forms
Public Class Tester
    Public Shared Sub Main
                       Console.WriteLine(SystemInformation.MousePresent.ToString())
                       Console.WriteLine(SystemInformation.MouseWheelPresent.ToString())
                       Console.WriteLine(SystemInformation.MouseWheelScrollLines.ToString())
                       Console.WriteLine(SystemInformation.NativeMouseWheelSupport.ToString())
     End Sub
End Class
True
True
3
True

SystemInformation.PrimaryMonitorMaximizedWindowSize

public class Test
   public Shared Sub Main
        Console.WriteLine(System.Windows.Forms.SystemInformation.PrimaryMonitorMaximizedWindowSize)
   End Sub
End class
{Width=1288, Height=746}