943,796 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 1184
  • C# RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Feb 27th, 2009
0

Re: case statement not working

And in debugging what was the value of say "bunitsCB.Text"
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Feb 27th, 2009
0

Re: case statement not working

Click to Expand / Collapse  Quote originally posted by LizR ...
And in debugging what was the value of say "bunitsCB.Text"
Thats just the problem. Im not getting a value for bunitsCB.Text. The value is visible on the screen but I cannot figure out how to call it for the switch statement. It is in the database, it shows in the combo box but unless I reselect it it does not get assigned to bunitsCB.Text.

HELPPPPPPP
MJV
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
MJV is offline Offline
66 posts
since Feb 2009
Feb 27th, 2009
0

Re: case statement not working

Then dont use the .Text but the selected item... and yes I know you had an error before but it was the right thing just in the wrong way
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Feb 27th, 2009
0

Re: case statement not working

When you set the DataSource or load the Items manually, you could just set the SelectedIndex property to 0. That should keep you from getting errors about nothing being selected. I guess whether or not you can do this would have to depend on any Business rules in place or requirements.
Reputation Points: 23
Solved Threads: 10
Light Poster
bcasp is offline Offline
45 posts
since Apr 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: operator overloading
Next Thread in C# Forum Timeline: Passing Parameters/Arguments to a C# .NET Program





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC