Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

kuphryn

Multi-Column Listbox :: C#

This topic is 5689 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I am a C++ and MFC programmer. I have been forced to code a simple C# program at school. Frankly, I feel threaten. Secondly, I find C# confused. Everything is "Win Form." Where the heck are all the code behind the program? Anyways, I am desperately in need of help. Here is the basic program. Buttons = 2 Edit boxes = 3 Listbox = 1 The idea is to enter information in one the three edit boxes and then click a button to add it to a list box. Right now I want to add multicolumns to the listbox. Please post if you have experience with C# and can point out all the shortcuts. This is a very simple introductory program. Thanks, Kuphryn

Share this post


Link to post
Share on other sites
Advertisement
a listbox control has (surprisingly enough) a MultiColumn property under Behavior, setting which to True will give you a multicolumn listbox.

Share this post


Link to post
Share on other sites
didn''t your visual studio come with a copy of msdn? come on, how long does it take to type ''listbox'' into the index pane and click on the line that says ''about listbox class''?

Share this post


Link to post
Share on other sites
I did not see anything about adding multiple items to a listbox. Maybe you can find it. Post if you find it.

Kuphryn

Share this post


Link to post
Share on other sites
quote:
Original post by kuphryn Where the heck are all the code behind the program?


right click the form and select ''view code''.

Share this post


Link to post
Share on other sites
quote:
Original post by kuphryn
I did not see anything about adding multiple items to a listbox. Maybe you can find it. Post if you find it.


ok. step 1:


step 2:


step 3:

quote:

I said "code," as in algorithms, not a dozen likes of class declarations!


you won''t see winforms source code, and you''ll see your code when you write some. in the meantime, all code you''ve got is probably in InitializeComponent.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!