Thursday, March 22, 2012

LISTBOX : how to insert VBTab or Blank spaces ?

I have a LISTBOX
how to insert VBTab or Blank spaces ?

in Example

Listbox1.Items.Add ("Hallo" & vbTab & "GoodMorning")
or
Listbox1.Items.Add ("Hallo" & " " & "GoodMorning")

Unfortunately I get no separation beteween
I get only: "Hallo GoodMorning"Try:

Listbox1.Items.Add ("Hallo" & " " &
"GoodMorning")

teo wrote:

Quote:

Originally Posted by

I have a LISTBOX
how to insert VBTab or Blank spaces ?
>
in Example
>
Listbox1.Items.Add ("Hallo" & vbTab & "GoodMorning")
or
Listbox1.Items.Add ("Hallo" & " " & "GoodMorning")
>
Unfortunately I get no separation beteween
I get only: "Hallo GoodMorning"


I think the horizontal tab character code is

rgds
bren

Why do I climb mountains? Simple! because they are there
www.3peakschallenge.co.uk
Doesn't work:
I get Hallonbsp; GoodMorning

Quote:

Originally Posted by

>Try:
>
>
>
>Listbox1.Items.Add ("Hallo" & " " &
>"GoodMorning")
>
>
>teo wrote:

Quote:

Originally Posted by

>I have a LISTBOX
>how to insert VBTab or Blank spaces ?
>>
>in Example
>>
>Listbox1.Items.Add ("Hallo" & vbTab & "GoodMorning")
>or
>Listbox1.Items.Add ("Hallo" & " " & "GoodMorning")
>>
>Unfortunately I get no separation beteween
>I get only: "Hallo GoodMorning"


Doen't work:
tried ListBox1.Items.Add("Hallo" & Chr(9) & Chr(9) & Chr(9) &
"GoodMorning")
I get:
Hallo GoodMorning

Quote:

Originally Posted by

>I think the horizontal tab character code is
>
rgds
>bren
>
>Why do I climb mountains? Simple! because they are there
>www.3peakschallenge.co.uk
>

0 comments:

Post a Comment