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

📄 splashform.vb

📁 Windows mobile 图形编程例子
💻 VB
字号:
Imports System.IO
Imports System.Reflection

Public Class SplashForm

    Private Sub SplashForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Show full screen
        Me.ControlBox = False

        ' Load graphic into PictureBox
        Dim appPath As String = GetApplicationDirectory()
        Dim img As Image = New Bitmap(Path.Combine(appPath, "graphic.jpg"))
        pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
        pictureBox1.Image = img
    End Sub

    Private Function GetApplicationDirectory() As String

        Return Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetModules(0).FullyQualifiedName)

    End Function

End Class

⌨️ 快捷键说明

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