label :saut de ligne / interligne

B

BS

Guest
Bonjour à tous ,

J'ai saisi du texte dans un label en y ajoutant des sauts de ligne mais cela ne me satisfait pas totalement. D'où mes questions :

- Comment ajoute -t-on plus d'un saut de ligne ( ex : je veux sauter 2 lignes)
Pour une, C'est OK avec :
Label1 .Caption = "Bonjour," & vbNewLine & "blabla"

- Y- a -til un moyen de gérer l'interligne dans un label ?

Merci d'avance de toutes les solutions que vous pourrez m'apporter !

BS
 
@

@+Thierry

Guest
Coucou BS vite fait

Je me casse du bureau !

Un coipé collé de l'aide (qui va pas sortir propre !)

Constant Equivalent Description
vbCrLf Chr(13) + Chr(10) Carriage return–linefeed combination
vbCr Chr(13) Carriage return character
vbLf Chr(10) Linefeed character
vbNewLine Chr(13) + Chr(10) or, on the Macintosh, Chr(13) Platform-specific new line character; whichever is appropriate for current platform
vbNullChar Chr(0) Character having value 0
vbNullString String having value 0 Not the same as a zero-length string (""); used for calling external procedures
vbObjectError -2147221504 User-defined error numbers should be greater than this value. For example:
Err.Raise Number = vbObjectError + 1000
vbTab Chr(9) Tab character
vbBack Chr(8) Backspace character
vbFormFeed Chr(12) Not useful in Microsoft Windows or on the Macintosh
vbVerticalTab Chr(11) Not useful in Microsoft Windows or on the Macintosh


Bye
@+Thierry
 
B

BS

Guest
Bonjour à tous !

Merci Thierry mais ce n'est pas tout à fait ma demande. Oui , j'ai bien les constantes en tête mais je n'obtiens pas le résultat voulu !

Alors je reformule ma question: comment fait-on pour sauter 2 lignes par exemples dans un texte :
ex label.caption = " blabla" & VbNewline & "blablabla"
ça donne : blabla
blablabla
Mais moi je voudrais obtenir :
blabla

blablabla
Comment code -t-on sachant que
Label1 .Caption = "Bonjour," & vbNewLine & AND & vbNewLine & "blablabla"

ne marche pas ?

Ou Alors si on contourne le problème : y' a-t-il un moyen de gérer les interlignes ?

Merci d'avance de se pencher sur mon malheureux problème :)

BS
 

Statistiques des forums

Discussions
312 489
Messages
2 088 855
Membres
103 979
dernier inscrit
bderradji