|
| |||||||
![]() |
| | Seçenekler |
|
#1
| |||
| | |||
Mouse Formdan Dışarı ÇıkamazPrivate Type RECT left As Long top As Long right As Long bottom As Long End Type Private Type POINT x As Long y As Long End Type Private Declare Sub ClipCursor Lib “user32″ (lpRect As Any) Private Declare Sub GetClientRect Lib “user32″ (ByVal hWnd As Long, lpRect As RECT) Private Declare Sub ClientToScreen Lib “user32″ (ByVal hWnd As Long, lpPoint As POINT) Private Declare Sub OffsetRect Lib “user32″ (lpRect As RECT, ByVal x As Long, ByVal y As Long) Private Sub Command1_Click() Dim client As RECT Dim upperleft As POINT GetClientRect Me.hWnd, client upperleft.x = client.left upperleft.y = client.top ClientToScreen Me.hWnd, upperleft OffsetRect client, upperleft.x, upperleft.y ClipCursor client End Sub Private Sub Command2_Click() ClipCursor ByVal 0& End Sub Private Sub Form_Load() Command1.Caption = “Mause sınırla” Command2.Caption = “Serbest bırak” End Sub Private Sub Form_Unload(Cancel As Integer) ClipCursor ByVal 0& End Sub |
![]() |
| Seçenekler | |
| |
Benzer Konular | ||||
| Konu | Konu Açanlar | Forum | Cevaplar | Güncel Mesajlar |
| Formdan bilgi çekme (Textarea) | B737 | ASP | 0 | 26-01-2008 03:50 |
| Aynı formdan yapmak | Celebrian | Visual Basic & Action script | 0 | 24-12-2007 11:10 |
| Hesap Bilgilerini İçeri ve Dışarı Aktarma | kadınca | Google Adwords | 0 | 10-12-2007 11:31 |
| Cep telefonunuzun ekranını mouse olarak kullanın: Blue Mouse Mobile | B737 | Cep telefonu | 0 | 18-11-2007 02:20 |
| hoca: oğlum! çık dışarı! | kadınca | Geyik - Komik | 1 | 17-11-2007 08:46 |