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 zur Laufzeit in VB erstellen

Empfohlene Antworten

Hi Leutz!

Ich möchte ein Image oder ein anderes Objekt erst zur Laufzeit erstellen! Wie kann ich das am besten in VB realisieren???

Wäre echt dankbar für eure Hilfe!!

greetz Schattenfeder

Also wenn du eine art Kopie von einem Objekt machen willst

ist es easy:

Erst erstellst du z.B. nen Button, dann setzt du den Index vom Button auf 0

dann kannst du im Programm eine Schleife machen die weitere objekte erstellt

For intRun = 1 to 10

Load cmdButton(intRun)

Next intRun

mit cmdButton(Index) kannst du die einzelnen Objekte dann ansteuern

Wenn du das Objekt aus dem Nichts erstellen willst dann wirds glaube ich schwerer, da müsste ich auch erst rumsuchen...

Bin mittlerweile auf die Lösung gekommen.. .

Dim oControl As Control

Set oControl = Me.Controls.Add("VB.Line", "MyLine")

With oControl

.X1 = 500

.X2 = 5000

.Y1 = 1000

.Y2 = 1000

.Visible = True

End With

Danke..

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.