Ich komme einfach nicht drauf, aber wie bekomme ich die Größe einer Userform
auf Vollbild?
Raimond
> Ich komme einfach nicht drauf, aber wie bekomme ich die Größe einer
Userform
> auf Vollbild?
Du könntest die Grösse im Eigenschaftenfenster anpassen.
- High (Höhe)
- Width (Breite)
--
Ich hoffe, dass dir das weiterhilft.
Liebs Grüessli aus der Schweiz
Monika
------ EXCEL ------
http://www.jumper.ch
Gruß Raimond
Userform.Height = Application.Height
und Width ebenso.
So ist allerdings evtl. die Taskleiste sichtbar, was man per API ändern könnte.
ciao
stefan
--
__________________________________________________________
News suchen, lesen, schreiben mit http://newsgroups.web.de
Genau das habe ich gesucht. Das die Taskleiste sichtbar ist, ist schon ok
(eigentlich sogar gut so)
.
Gruß Raimond
Private Declare Function GetSystemMetrics Lib "user32" _
(ByVal nIndex As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias _
"FindWindowA" (ByVal lpClassName As String, ByVal _
lpWindowName As String) As Long
Private Declare Function SetWindowPos Lib "user32" _
(ByVal hwnd As Long, ByVal hWndInsertAfter As Long, _
ByVal x As Long, ByVal y As Long, ByVal cx As Long, _
ByVal cy As Long, ByVal wFlags As Long) As Long
Private Sub UserForm_Initialize()
Dim Titel$, Suchstring$, Fensterhandle&
Dim cx&, cy&
Suchstring = "QWERYT"
Titel = Me.Caption
Me.Caption = Suchstring
Fensterhandle = FindWindow(vbNullString, Suchstring)
Me.Caption = Titel
cx = GetSystemMetrics(0)
cy = GetSystemMetrics(1)
SetWindowPos Fensterhandle, 1, 0, 0, cx, cy, 0
End Sub
MfG Frank
_____________________________________________________
Frank Arendt-Theilen, Microsoft MVP für Excel, Hameln
eMail: Thei...@t-online.de, Homepage: http://www.xl-faq.de