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.

[VB6] MSFlex Control 6.0: Zellen an Inhalt anpassen?

Empfohlene Antworten

Veröffentlicht

Hallo,

ich möchte, das sich die Zellen Ihrem Inhalt anpassen.

Ist das irgendwie möglich?

Gruß

Freundlicher Nachbar

  • 2 Wochen später...

ich weiß nicht, ob du schon was gefunden hast, aber ein kollege von mir hat das auch grad für sein proggie gebraucht...

hier der code:

Public Sub OptimaleSpaltenbreite(frm As Form, FG As MSFlexGrid)

Dim i As Integer 'Zeilen

Dim k As Integer 'Spalten

Dim Zeile As Integer 'Merkt sich die breiteste Zeile

Dim Breite As Double 'Merkt sich die Breite

k = 0

Do While k < FG.Cols

Breite = 0

Zeile = 0

i = 0

Do While i < FG.Rows

If frm.TextWidth(FG.TextMatrix(i, k)) > Breite Then

Breite = frm.TextWidth(FG.TextMatrix(i, k))

Zeile = i

End If

i = i + 1

Loop

FG.ColWidth(k) = frm.TextWidth(FG.TextMatrix(Zeile, k)) + 150

k = k + 1

Loop

End Sub

ich hoffe, es ist dir noch eine hilfe!! (O:

c ya

Thias

Habe noch nichts gefunden!

Vielen Dank für den Code!

Hat mir sehr geholfen!

Gruß

Freundlicher Nachbar

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.