By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,184 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,184 IT Pros & Developers. It's quick & easy.

Windows Form List & Text controls: Newbie Qs

P: n/a
Hi,
I have just started building an application which is windows form based,
rather than web based, and I am having troubles with layout.
I can't find any control which gives me just a simple text list! There is
ListView, but that gives me very strange spacing, perhaps because it is
trying to put in icons? There are Flow and Table layout panels, but those
also give me strange spacing. I just want the Windows Form Equivalent of an
HTML <ul></ULtype list. I assume it is here somewhere, but I can't find it.
I have a similar problem with just displaying a Block of text which wraps
in a reasonable way. I have used a TextBox, set to MultiLine and with
background color set to background color, but that seems harder than it
should be. Is there any easier way?
I can't get a label to accept any sort of newline. I have tried "\n",
"<br>" and a few other things. Any thoughts?

I feel like I am probably missing something pretty fundamental. Anyone
know what it is?

Thanks!
Ethan

Jun 27 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
did you try RichTextBox control??

On May 5, 4:44*pm, Ethan Strauss
<EthanStra...@discussions.microsoft.comwrote:
Hi,
* *I have just started building an application which is windows form based,
rather than web based, and I am having troubles with layout.
* *I can't find any control which gives me just a simple text list! There is
ListView, but that gives me very strange spacing, perhaps because it is
trying to put in icons? There are Flow and Table layout panels, but those
also give me strange spacing. I just want the Windows Form Equivalent of an
HTML <ul></ULtype list. I assume it is here somewhere, but I can't find it.
* *I have a similar problem with just displaying a Block of text whichwraps
in a reasonable way. I have used a TextBox, set to MultiLine and with
background color set to background color, but that seems harder than it
should be. Is there any easier way?
* *I can't get a label to accept any sort of newline. I have tried "\n",
"<br>" and a few other things. Any thoughts?

* *I feel like I am probably missing something pretty fundamental. Anyone
know what it is?

Thanks!
Ethan
Jun 27 '08 #2

P: n/a

"Ethan Strauss" <Et**********@discussions.microsoft.comwrote in message
news:73**********************************@microsof t.com...
Hi,
I have just started building an application which is windows form based,
rather than web based, and I am having troubles with layout.
I can't find any control which gives me just a simple text list! There
is
ListView, but that gives me very strange spacing, perhaps because it is
trying to put in icons? There are Flow and Table layout panels, but those
also give me strange spacing. I just want the Windows Form Equivalent of
an
HTML <ul></ULtype list. I assume it is here somewhere, but I can't find
it.
I have a similar problem with just displaying a Block of text which
wraps
in a reasonable way.
Listbox, Listview and Datagridview is it, unless you're using some 3rd party
controls. You'll need to figure out how to use the controls.
I have used a TextBox, set to MultiLine and with
background color set to background color, but that seems harder than it
should be. Is there any easier way?
It's not that hard. You can figure it out if you take the time to look
things up by using Google or something similar. Thed information is out
there with plenty of examples.
I can't get a label to accept any sort of newline. I have tried "\n",
"<br>" and a few other things. Any thoughts?

I feel like I am probably missing something pretty fundamental. Anyone
know what it is?
You should figure things out for desktop solutions and its form controls,
just like you figured out how to use the Web from and its controls.

It's not that hard.

Jun 27 '08 #3

P: n/a
You can try Listview, setting its property "View" to value "Details"

"Mr. Arnold" <MR. Ar****@Arnold.comescreveu na mensagem
news:uH**************@TK2MSFTNGP05.phx.gbl...
>
"Ethan Strauss" <Et**********@discussions.microsoft.comwrote in message
news:73**********************************@microsof t.com...
>Hi,
I have just started building an application which is windows form
based,
rather than web based, and I am having troubles with layout.
I can't find any control which gives me just a simple text list! There
is
ListView, but that gives me very strange spacing, perhaps because it is
trying to put in icons? There are Flow and Table layout panels, but those
also give me strange spacing. I just want the Windows Form Equivalent of
an
HTML <ul></ULtype list. I assume it is here somewhere, but I can't find
it.
I have a similar problem with just displaying a Block of text which
wraps
in a reasonable way.

Listbox, Listview and Datagridview is it, unless you're using some 3rd
party controls. You'll need to figure out how to use the controls.
>I have used a TextBox, set to MultiLine and with
background color set to background color, but that seems harder than it
should be. Is there any easier way?

It's not that hard. You can figure it out if you take the time to look
things up by using Google or something similar. Thed information is out
there with plenty of examples.
> I can't get a label to accept any sort of newline. I have tried "\n",
"<br>" and a few other things. Any thoughts?

I feel like I am probably missing something pretty fundamental. Anyone
know what it is?

You should figure things out for desktop solutions and its form controls,
just like you figured out how to use the Web from and its controls.

It's not that hard.

Jun 27 '08 #4

P: n/a
also give me strange spacing. I just want the Windows Form Equivalent of an
HTML <ul></ULtype list.
I think ListView might help.
I have a similar problem with just displaying a Block of text which wraps
in a reasonable way. I have used a TextBox, set to MultiLine and with
background color set to background color, but that seems harder than it
should be. Is there any easier way?
I can't get a label to accept any sort of newline. I have tried "\n",
"<br>" and a few other things. Any thoughts?
TextBox + Multiline should help you display text that wraps

For newlines you can use Environment.NewLine which is "\r\n"
I feel like I am probably missing something pretty fundamental. Anyone
know what it is?
I am new to win forms myself. It doesnt take a long time to get a hang
of it. try browsing some sample projects(winforms). that should help..
Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.