SensiZOlmuyoR.org  
Geri git   SensiZOlmuyoR.org > Pc - Bilgisayar > Programlama > Visual Basic
İhbar sistemini kullanmak istermisin?


En iyi Paylaşımınız Ney¿

Cevapla
 
Konu Araçları Stil
Eski 29-02-2008, 05:51   #1 (permalink)
E & G
 
qRaLL - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Eyl 2007
Nerden: ordan burdan
Mesajlar: 894
Konular: 531
Üye No: 7129
Ruh halim:
Rep Gücü : 33
Rep Puanı : 567
Rep Seviyesi : qRaLL is a name known to allqRaLL is a name known to allqRaLL is a name known to allqRaLL is a name known to allqRaLL is a name known to allqRaLL is a name known to all


Standart Fareyi form a hapsetmek


Private Type RECT
left As Integer
top As Integer
right As Integer
bottom As Integer
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 Form_Load()
Command1.Caption = "Fareleri hapsedin"
Command2.Caption = "Birak garibani be!"
End Sub

Private Sub Command1_Click()
'fare imlecini form içine hapsedelim
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()
'fareyi serbset birakalim
ClipCursor ByVal 0&
End Sub
Private Sub Form_Unload(Cancel As Integer)
'yasagi kaldiralim.Yoksa form kapansa da devam eder.
ClipCursor ByVal 0&
End Sub
qRaLL isimli üyemiz çevrimdışıdır. (Offline)  
Bu Mesajı Google'a Ekle!Bu Mesajı FaceBook'da Paylaş!
Alıntı ile Cevapla
Cevapla

Bu konunun kısa yolunu aşağıdaki sitelere ekleyebilirsiniz!

Konu Araçları
Stil

Yetkileriniz
Konu Açma Yetkiniz Yok
Mesaj Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı

Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar son Mesaj
Kız Fareyi Yedii böğğğ... Ghost Korku 14 12-09-2008 21:15
fareyi sağ üst köşeye sürükLeyin xD CanSu Komik Resimler 13 16-07-2008 22:59
Form rengini kod ile degistirme Gu4rD1aN C ve C++ 2 29-03-2008 19:11
saydam form olusturma qRaLL Visual Basic 0 29-02-2008 06:05
Saydam Form *MeLeK* Delphi 0 28-01-2008 13:19


Tüm Saatler GMT +3. Şuan Saat: 08:06 .
(Türkiye için GMT +2 seçilmelidir.)


Powered by vBulletin Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
www.SensiZOlmuyoR.org © 2007 - 2008


* Metin2 * Trendy Bayan *Sohbet * Bilgisonsuz