Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Objekte auf Form platzieren

Empfohlene Antworten

Veröffentlicht

Hallo,

ich öffne eine Form(frm_usropt) mit Form.WindowsState = 2(Maximized) und möchte mir eine Schaltfläche (cmd_save) rechts unten ins Eck platzieren.

cmd_save.Left = frm_usropt.ScaleWidth - (cmd_save.Width + 20)

cmd_save.Top = frm_usropt.ScaleHeight - (cmd_save.Height + 20)

Die Schaltfläche will einfach um verrecken nicht ganz nach unten rechts.

Mir scheint als ob bei einem Wert ~12000 schluss ist. ich habe es auch schon mit

cmd_save.Left = frm_usropt.Width - (cmd_save.Width + 20)

cmd_save.Top = frm_usropt.Height - (cmd_save.Height + 20)

probiert.

"the same......"

1. Wie löse ich das Problem?

2. Was ist der Unterschied zwischen .Widht und .Scalewidht

schon mal Danke für Euer Antworten.

Ach übrigens, ich progge in VB6 SP5 - Windoof

Catweezle

Schonmal ohne die +/- 20 versucht???

Scale width oder alle die anderen scale sachen sind die längen höhen was auch immer angaben in deinem gewählten scale mode....

Hy Warfox,

natürlich habe ich das auch ohne die +/- 20 probiert. Dies soll ja nur dazu sein damit die Schaltfläche nicht so ins Eck reingeklatscht ist.

Trotzdem Danke

Wenn ich das Ganze im Windows.State = 0 (normal) mache, haut das wunderbar hin. Kann es daran liegen dass die Eigenschaft Windows.State erst nach der Routine Form_Load zieht? Welche Routinen werden nach Form_Load ausgeführt die ich direkt nutzen kann? Soll ich da mit einem Timer arbeiten?

nunja, die aussage das es nicht im eck ist ist ja schonmal was, nur wo ist der button dann?

und wo hast du ihn beim erstellen des forms plaziert?

bzw. versuch mal die form nach allen sachen neu zu zeichnen, also sobald die form auf state 2 ist und alles einen ... ähh... redraw? reload? ... irgendwie so müsste es heißen, die msdn weiß es aber sicherlich ;)

Form_Resize

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.