ich bin zu doof zum rechnen -.-
ich habe position.left right top bottom
und will das meine form 30% des fensters bekommt bekommt
hier mal mein code. nicht das ihr denkt ich will nur c und p haben xD:
bin für jede hilfe offen
ich habe position.left right top bottom
und will das meine form 30% des fensters bekommt bekommt
hier mal mein code. nicht das ihr denkt ich will nur c und p haben xD:
VB.NET-Quellcode
- Dim weite As String
- Dim höhe As Long
- Dim pos As RECT
- fenster = FindWindow("class", "titel")
- If fenster = 0 Then
- Me.Close()
- Else
- Me.TopMost = True
- GetWindowRect(fenster, pos)
- höhe = pos.Bottom - pos.Top - 100 ' 100 abziehen wegen fenstertitel und rahmen + luft
- weite = pos.Right - pos.Left / 3 ' fensterweite durch 3 für formweite
- Me.Location = New System.Drawing.Point(pos.Right - weite, pos.Top + 35)
- Me.Height = höhe
- Me.Width = weite
bin für jede hilfe offen