IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Visual Basic (https://www.ircforumlari.net/visual-basic/)
-   -   Başlıksız Formu ve üstündeki nesneleri taşımak (https://www.ircforumlari.net/visual-basic/124438-basliksiz-formu-ve-ustundeki-nesneleri-tasimak.html)

Cemalizim 19 Temmuz 2008 16:59

Başlıksız Formu ve üstündeki nesneleri taşımak
 
PHP- Kodu:

'Bu kısmı MODÜL'e ekleyin
Public Declare Function ReleaseCapture Lib "user32" () As Long
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As LongByVal wMsg As LongByVal wParam As LonglParam As Any) As Long
Public Const ButonTut = &HA1
Public Const frmbaşlığı 2

Public Sub DragForm(hWnd As LongintButton As Integer)
On Error Resume Next

If intButton vbLeftButton Then
    ReleaseCapture
    SendMessage hWnd
ButonTutfrmbaşlığı0
End 
If

End Sub


'------------------------------------------------------------------
'
FORM' a Bir textbox ve picturebox ekleyin

Private Sub Command1_Click()
End
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
DragForm Form1.hWnd, 1
End Sub

Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
DragForm Picture1.hWnd, 1
End Sub

Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
DragForm Text1.hWnd, 1
End Sub 

Alıntıdır.


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 10:42.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk