المشاركات : 13
المواضيع 2
الإنتساب : Sep 2012
السمعة :
0
الشكر: 20
تم شكره 19 مرات في 2 مشاركات
اخي استخدم هذا الكود
Private Declare Function SetLayeredWindowAttributes Lib "user32.dll" (ByVal hwnd As Long, ByVal ByValcrKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Boolean
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Const LWA_ALPHA = 2
Const GWL_EXSTYLE = (-20)
Const WS_EX_LAYERED = &H80000
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.BackColor = Color.White
Me.TransparencyKey = Color.White
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
SetWindowLong(0, GWL_EXSTYLE, GetWindowLong(0, GWL_EXSTYLE) Or WS_EX_LAYERED)
SetLayeredWindowAttributes(0, 0, 128, LWA_ALPHA)
End Sub
المشاركات : 190
المواضيع 5
الإنتساب : Sep 2013
السمعة :
3
الشكر: 27
تم شكره 103 مرات في 33 مشاركات
من خصائص الفورم غير قيم ال backcolor , و ال transparencykey وخليهم نفس اللون
وغير قيمة ال FormBorderStyle الى Non
وبالتوفيق ان شاء الله
المشاركات : 9
المواضيع 5
الإنتساب : Nov 2012
السمعة :
0
الشكر: 0
تم شكره 0 مرات في 0 مشاركات
شكرا لكم اخواني الاعزاء الطريقتين نجحو والحمد لله