0
私の問題は、画像内にカーソルがある場合は、画像がsupertooltip
であることです。しかし、supertooltip
内の画像が大きすぎます。プログラムでサイズを変更する方法supertooltipで画像を最小化またはサイズ変更する方法
Public com As New MySql.Data.MySqlClient.MySqlCommand
Public da As New MySql.Data.MySqlClient.MySqlDataAdapter
Public dr As MySql.Data.MySqlClient.MySqlDataReader
Public ds As DataSet
Dim confirm As String
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
con.Close()
con.Open()
confirm = "select PPhoto From user_tbl"
dr = com.ExecuteReader
While dr.Read
BarEditItem10.EditValue = Image.FromFile(pathfrm.PathPhoto.Text & dr.GetString("PPhoto"))
Dim resImage As Image = Image.FromFile(pathfrm.PathPhoto.Text & dr.GetString("PPhoto"))
Dim sTooltip2 As SuperToolTip = New SuperToolTip
' Create an object to initialize the SuperToolTip.
Dim args As SuperToolTipSetupArgs = New SuperToolTipSetupArgs
args.Title.Text = "Profile Picture"
args.Contents.Text = "This is a Profile Picture"
args.Contents.Image = resImage
sTooltip2.Setup(args)
BarEditItem10.SuperTip = sTooltip2
End While
con.Close()
End sub
私は私があなたのSuperToolTipに割り当てる前にリサイズ画像を示唆している画像にカーソル(第二の画像)