⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utilgui.vb

📁 Programming the .NET Compact Framework with vb 源代码
💻 VB
字号:
' -----------------------------------------------------------------------------
' Code from _Programming the .NET Compact Framework with VB_
' and _Programming the .NET Compact Framework with C#_
' (c) Copyright 2002-2004 Paul Yao and David Durant. 
' All rights reserved.
' -----------------------------------------------------------------------------

Imports System
Imports System.Drawing
Imports System.Windows.Forms

Public Class utilGUI
   ' Symbolic constants for menu selections.
   Public Enum gameSpeed
      gsSlowest = 2046
      gsSlow = 1024
      gsSlower = 512
      gsNormal = 256
      gsFaster = 128
      gsFast = 64
      gsFastest = 32
   End Enum

   Public Enum gameZoom
      gzInnest = 8
      gzIn = 16
      gzInner = 16
      gzNormal = 32
      gzOuter = 64
      gzOut = 64
      gzOutest = 128
   End Enum


   ' Replaces a desktop method that is not
   '     available in Compact Framework.
   Shared Sub SetBounds(ByVal theControl As Control, ByVal x As Integer, ByVal y As Integer, ByVal width As Integer, ByVal height As Integer)
      theControl.Left = x
      theControl.Top = y
      theControl.Width = width
      theControl.Height = height
   End Sub

End Class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -