GPWiki.org
GPWiki.org
It is currently Wed Jun 19, 2013 4:59 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Winforms UI Problem
PostPosted: Mon Nov 28, 2011 11:11 pm 
Super-dooper pooper scooper
User avatar

Joined: Tue Oct 11, 2011 8:08 pm
Posts: 170
I'm writing the editor for my game with Winforms. All it does is use a listbox to show the names of a List<Upgrade> of classes, and when the user selects one, populates TextBoxes with information. Screenshot:

Image

Anyway, I keep running into weird problems. Here's a link to the code. Its pretty long, so I don't want to post it on the actual forums. I know its a bit of a noob question, but I simply can't get it to work.
I'd really appreciate it if someone'd take a look.

-That white space above "TSE" isn't supposed to be there. It should be another dummy name (check the code).
-The actual name "TSE" should be in the name box


Top
 Profile  
 
 Post subject: Re: Winforms UI Problem
PostPosted: Tue Nov 29, 2011 1:41 am 
King Code Monkey
User avatar

Joined: Wed Sep 01, 2004 3:05 pm
Posts: 11199
Location: Abingdon, MD
Try putting a breakpoint on the first line in the SelectedIndexChanged event and see what happens. You're getting a blank item from somewhere it appears. Is there a reason why you're binding the listbox in the first place?

_________________
Bored? Head on over to my blog and see what I'm up to.

Microsoft XNA MVP


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group