user926367
user926367

Reputation:

line spacing in label + vb.net

I have a .NET 2.0 standard Label on my form, well I put some text in it with several lines. But the spacing between the lines are too small. Just want to know if there's a way to fix this.

Thanks...

Upvotes: 3

Views: 4387

Answers (2)

CodeSi
CodeSi

Reputation: 421

There is another alternative way to work out that you use the WinformHTMLTextBox then embed the content by using html code which you can employ the advantage of CSS.

Upvotes: 1

Richard
Richard

Reputation: 6354

The only solution I can see would be to make multiple labels and space the labels appropriately.

You may need to create the labels dynamically, one per line.

Of course, you could do a .Split(vbNewLine) on the text you want to display and then for each string in the list, create a new label control, adding it to the form, and spacing it out appropriately from the previous label.

Not ideal, but about the only way to accomplish it.

Upvotes: 1

Related Questions