VB.Net Tutorial/Development/SystemInformation — различия между версиями

Материал из VB Эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 19:40, 26 мая 2010

System Information: DoubleClickSize, DoubleClickTime, MouseButtons, MouseButtonsSw apped

<source lang="vbnet">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</source>

{Width=4, Height=4}
500
5
False

System Information: MousePresent, MouseWheelPresent, MouseWheelScrollLines, Native MouseWheelSupport

<source lang="vbnet">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</source>

True
True
3
True

SystemInformation.PrimaryMonitorMaximizedWindowSize

<source lang="vbnet">public class Test

  public Shared Sub Main
       Console.WriteLine(System.Windows.Forms.SystemInformation.PrimaryMonitorMaximizedWindowSize)
  End Sub

End class</source>

{Width=1288, Height=746}