Convert to a type

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2008
Posts: 27
Reputation: gouki2005 is an unknown quantity at this point 
Solved Threads: 0
gouki2005 gouki2005 is offline Offline
Light Poster

Convert to a type

 
0
  #1
Apr 4th, 2009
I have a class Gambler and a bet class

and I have a field named MyBet but is bet type

  1.  
  2. Gamer[0] = new gambler() { Name = "Joe", Mymoney = 100, MyBEt = ApuestasNUD.Value, Milabel = label4, MiradioButton = JoeRBT };
ApuestaNUD is a NumericUpdown but I cant convert to Bet type how can I do that?
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 436
Reputation: JerryShaw is on a distinguished road 
Solved Threads: 72
JerryShaw JerryShaw is offline Offline
Posting Pro in Training

Re: Convert to a type

 
0
  #2
Apr 4th, 2009
What are the possible "Bet Types" ?
NumericUpDown works on numeric values. Is this bet type a enumeration ? or a real value (like an integer) ?

IOW, what are you expecting to place in the NumericUpDown.Value property ?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC