Visua Basic 6.0 Dersleri
   
  vb6ders
  Yuvarlak Form Yapma
 
'bu kodu sadece forma yapıştırın hata verirse bu satırı silin
Option Explicit

Private Declare Function CreateEllipticRgn Lib "gdi32" (ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long

Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, _
ByVal hRgn As Long, ByVal bRedraw As Long) As Long



Private Sub Form_Load()


Dim ref&, i&

Dim en&, boy&

en& = Me.Width / Screen.TwipsPerPixelX

boy& = Me.Height / Screen.TwipsPerPixelY

ref& = CreateEllipticRgn(0, 0, en&, boy&)

i& = SetWindowRgn(Me.hWnd, ref&, True)

End Sub
 
  Bugün 11 ziyaretçi (14 klik) kişi burdaydı!  
 
Bu web sitesi ücretsiz olarak Bedava-Sitem.com ile oluşturulmuştur. Siz de kendi web sitenizi kurmak ister misiniz?
Ücretsiz kaydol