真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

vb.net拖動(dòng)圖片,VB圖片移動(dòng)

VB.NET移動(dòng)圖片問題

窗體加一個(gè)timer,interval置為50,然后在timer事件中更改圖片的left和height就可以了。如

我們提供的服務(wù)有:成都做網(wǎng)站、成都網(wǎng)站制作、微信公眾號開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、遠(yuǎn)安ssl等。為成百上千企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的遠(yuǎn)安網(wǎng)站制作公司

image1.left=image1.left+20

image1.height=image1.height+20

[VB.NET]怎樣讓移動(dòng)圖像顯示更快一些...

***怎樣讓移動(dòng)圖像顯示更快一些*** Hide Controls When Setting Properties to Avoid Multiple Repaints Every repaint is expensive. The fewer repaints Visual Basic must perform, the faster your application will appear. One way to reduce the number of repaints is to make controls invisible while you are manipulating them. For example, suppose you want to resize several list boxes in the Resize event for the form: Sub Form_Resize () Dim i As Integer, sHeight As Integer sHeight = ScaleHeight / 4 For i = 0 To 3 lstDisplay(i).Move 0, i * sHeight, _ ScaleWidth, sHeight Next End Sub This creates four separate repaints, one for each list box. You can reduce the number of repaints by placing all the list boxes within a picture box, and hiding the picture box before you move and size the list boxes. Then, when you make the picture box visible again, all of the list boxes are painted in a single pass: 在vb中用move方法移動(dòng)圖片時(shí),速度有些慢,當(dāng)圖片很大時(shí),這時(shí)可以用下面的方法: Sub Form_Resize () Dim i As Integer, sHeight As Integer picContainer.Visible = False picContainer.Move 0, 0, ScaleWidth, ScaleHeight sHeight = ScaleHeight / 4 For i = 0 To 3 lstDisplay(i).Move 0, i * sHeight, _ ScaleWidth, sHeight Next picContainer.Visible = True End Sub Note that this example uses the Move method instead of setting the Top and Left properties. The Move method sets both properties in a single operation, saving additional repaints.

vb.net 在Win窗體中如何實(shí)現(xiàn)圖標(biāo)或按鈕的拖放功能。

VB.NET做的窗體托盤,可以把窗體縮小到任務(wù)欄圖標(biāo),點(diǎn)右鍵可以觸發(fā)事件-VB.NET do form tray can form down to the taskbar icon, point right to trigger events


分享名稱:vb.net拖動(dòng)圖片,VB圖片移動(dòng)
URL地址:http://weahome.cn/article/phghhd.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部