Click here to Skip to main content
15,910,277 members
Home / Discussions / C#
   

C#

 
GeneralRe: Delegates Pin
AspDotNetDev25-Feb-10 14:25
protectorAspDotNetDev25-Feb-10 14:25 
QuestionCrystal Report - Problem in printing Pin
sachees12325-Feb-10 2:15
sachees12325-Feb-10 2:15 
AnswerRe: Crystal Report - Problem in printing Pin
Saksida Bojan25-Feb-10 3:37
Saksida Bojan25-Feb-10 3:37 
QuestionAsccessing secure web services using server certificate in winCE Pin
fatima.hashmi25-Feb-10 2:15
fatima.hashmi25-Feb-10 2:15 
QuestionByte Conversion Pin
spankyleo12324-Feb-10 23:53
spankyleo12324-Feb-10 23:53 
AnswerRe: Byte Conversion Pin
#realJSOP25-Feb-10 0:16
professional#realJSOP25-Feb-10 0:16 
GeneralRe: Byte Conversion Pin
spankyleo12325-Feb-10 0:24
spankyleo12325-Feb-10 0:24 
GeneralRe: Byte Conversion Pin
The Man from U.N.C.L.E.25-Feb-10 4:12
The Man from U.N.C.L.E.25-Feb-10 4:12 
I'm not clear why you are converting it to a byte, however ...

SelectedValue is of type Object and so you will be calling the Convert.ToByte overload that takes Object, which MUST implement IConvertible. Int32 does not implement this interface.

The solution is to force it to an int first . e.g.

C#
table.TestID = Convert.ToByte((int)comboBox.Selectedvalue)
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
[My Articles]  [My Website]

GeneralRe: Byte Conversion Pin
harold aptroot25-Feb-10 4:16
harold aptroot25-Feb-10 4:16 
GeneralRe: Byte Conversion Pin
The Man from U.N.C.L.E.25-Feb-10 8:13
The Man from U.N.C.L.E.25-Feb-10 8:13 
GeneralRe: Byte Conversion Pin
spankyleo12325-Feb-10 4:25
spankyleo12325-Feb-10 4:25 
GeneralRe: Byte Conversion Pin
spankyleo12325-Feb-10 4:37
spankyleo12325-Feb-10 4:37 
GeneralRe: Byte Conversion Pin
Saksida Bojan25-Feb-10 4:55
Saksida Bojan25-Feb-10 4:55 
GeneralRe: Byte Conversion Pin
spankyleo12325-Feb-10 4:59
spankyleo12325-Feb-10 4:59 
GeneralRe: Byte Conversion Pin
Richard MacCutchan25-Feb-10 5:15
mveRichard MacCutchan25-Feb-10 5:15 
QuestionWinforms Listview - Looking For Decent *Free* Control Pin
#realJSOP24-Feb-10 23:27
professional#realJSOP24-Feb-10 23:27 
AnswerRe: Winforms Listview - Looking For Decent *Free* Control PinPopular
Saksida Bojan25-Feb-10 0:02
Saksida Bojan25-Feb-10 0:02 
GeneralRe: Winforms Listview - Looking For Decent *Free* Control Pin
#realJSOP25-Feb-10 0:12
professional#realJSOP25-Feb-10 0:12 
QuestionC# - Fill a grid to Excelfile Pin
Mschauder24-Feb-10 22:37
Mschauder24-Feb-10 22:37 
AnswerRe: C# - Fill a grid to Excelfile Pin
Dan Mos25-Feb-10 5:48
Dan Mos25-Feb-10 5:48 
QuestionDate problem Pin
Mogamboo_Khush_Hua24-Feb-10 22:02
Mogamboo_Khush_Hua24-Feb-10 22:02 
AnswerRe: Date problem Pin
AspDotNetDev24-Feb-10 22:14
protectorAspDotNetDev24-Feb-10 22:14 
GeneralRe: Date problem Pin
Chetan Patel24-Feb-10 22:41
Chetan Patel24-Feb-10 22:41 
GeneralRe: Date problem Pin
AspDotNetDev24-Feb-10 22:57
protectorAspDotNetDev24-Feb-10 22:57 
AnswerRe: Date problem Pin
Luc Pattyn25-Feb-10 2:20
sitebuilderLuc Pattyn25-Feb-10 2:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.