#2
梦幻倩影2016-09-25 15:46
|
为什么MDI中更改背景图片,后无法正常连接SQL?
这好象与连接SQL没关系才对吧?
更改背景的代码如下:
Private Sub 设置背景图ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 设置背景图ToolStripMenuItem.Click
Dim Opendlg As New OpenFileDialog
Dim wjm01 As String
Opendlg.Title = "Select a picture file"
Opendlg.Filter = "(*.jpg;*.bmp)|*.jpg;*.bmp|(全部文件)|*.*"
Opendlg.ShowDialog()
wjm01 = Opendlg.FileName
If Exists(wjm01) Then
Me.BackgroundImage = Image.FromFile(wjm01)
End If
End Sub