- Код: Выделить всё
Option Explicit
Private Sub Command1_Click()
Me.BorderStyle = 0
End Sub
Но у меня ничё неработает (((((...подскажите пожалуста что я делаю нетак???
Option Explicit
Private Sub Command1_Click()
Me.BorderStyle = 0
End Sub
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Const GWL_STYLE = (-16)
Private Const WS_VISIBLE = &H10000000
Private Sub Form_Click()
SetWindowLong Form1.hwnd, GWL_STYLE, WS_VISIBLE
End Sub
Naked писал(а):
- Код: Выделить всё
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Const GWL_STYLE = (-16)
Private Const WS_VISIBLE = &H10000000
Private Sub Form_Click()
SetWindowLong Form1.hwnd, GWL_STYLE, WS_VISIBLE
End Sub
NIC писал(а):
А изменить свойство Show in TaskBar с помощью API реально???
SetWindowLong Form1.hwnd, GWL_EXSTYLE, GetWindowLong(Me.hwnd, GWL_EXSTYLE) Or WS_EX_APPWINDOW
Naked писал(а):
- Код: Выделить всё
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Const GWL_STYLE = (-16)
Private Const WS_VISIBLE = &H10000000
Private Sub Form_Click()
SetWindowLong Form1.hwnd, GWL_STYLE, WS_VISIBLE
End Sub
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 37