I have a form and in this form i have a button there open another
file , when i do this i want the first form to be minimize can't i do this?
my form name is priser i have try to find a code to minimize this form
but..........?
Alvin
But maybe it is easier just to make a button on the form
to set the height, width and top of the form.
RBS
"Alvin Hansen" <Alvin...@discussions.microsoft.com> wrote in message
news:8215B77D-68B5-4166...@microsoft.com...
Go to www.vbusers.com and download flex controls. They are free and give you
controls you can drop an a vba userform to do form resizing and add min/max
buttons. Just drag it onto the form and set the properties.No programming at
all for min/max buttons.
You do have to register the control using regsvr32.
HTH
Ken
RBS
"Ken Macksey" <KenMa...@tnt21.com> wrote in message
news:%2378QYSi...@tk2msftngp13.phx.gbl...
alvin
"RB Smissaert" skrev:
I just could not find flex controls at www.vbusers.com
(I'm looking for simple control to minimise userform)
any suggestions appreciated
Thanks
K
Enter the site, click Downloads on the left side menu. Item # 3 on the page
that opens.
HTH
Ken
"kurb" <mom...@sympatico.ca> wrote in message
news:O8PYZPwC...@tk2msftngp13.phx.gbl...
' Minimize in application
Private Sub UserForm_Initialize()
' Min: &H20000 / Max: &H10000 / Resize: &H40000
'Dim Style As Long
'Style = &H84C80080 Or &H20000 Or &H40000 ' => &H84CE0080
hWnd = FindWindow(vbNullString, Me.Caption)
SetWindowLong hWnd, -16, &H84CE0080
End Sub
Private Sub UserForm_Activate()
' Minimize in TaskBar (activate following lines)
'ShowWindow hWnd, 0
'SetWindowLong hWnd, -20, &H40101
'ShowWindow hWnd, 1
' no modal userform for xl97
EnableWindow FindWindow(vbNullString, Application.Caption), 1
End Sub
In standard module:
Sub FormShow()
#If VBA6 Then
UserForm1.Show 0
#Else
UserForm1.Show
#End If
End Sub
Regards,
MP
"kurb" <mom...@sympatico.ca> a écrit dans le message de
news:O8PYZPwC...@tk2msftngp13.phx.gbl...
RBS
"Michel Pierron" <michel....@free.fr> wrote in message
news:e0x0vBDD...@TK2MSFTNGP09.phx.gbl...