Click here to Skip to main content
15,912,507 members
Home / Discussions / C#
   

C#

 
GeneralMultiple Forms NOT MDI Pin
TofuBug2423-Mar-05 16:45
TofuBug2423-Mar-05 16:45 
GeneralRe: Multiple Forms NOT MDI Pin
Luis Alonso Ramos23-Mar-05 18:47
Luis Alonso Ramos23-Mar-05 18:47 
GeneralRe: Multiple Forms NOT MDI Pin
Robert Rohde23-Mar-05 20:11
Robert Rohde23-Mar-05 20:11 
GeneralRe: Multiple Forms NOT MDI Pin
Guinness4Strength24-Mar-05 4:36
Guinness4Strength24-Mar-05 4:36 
GeneralRe: Multiple Forms NOT MDI Pin
TofuBug2424-Mar-05 13:18
TofuBug2424-Mar-05 13:18 
Generalconvert string to int Pin
LeeeNN23-Mar-05 13:47
LeeeNN23-Mar-05 13:47 
GeneralRe: convert string to int Pin
LeeeNN23-Mar-05 15:20
LeeeNN23-Mar-05 15:20 
GeneralRe: convert string to int Pin
Ashok Dhamija25-Mar-05 0:03
Ashok Dhamija25-Mar-05 0:03 
Because the string "0x10" used by you is in hexadecimal form which uses the fromBase value of 16 in the following method,

public static int ToInt32(string value, int fromBase);

Therefore, you have to use the aforesaid overloaded method with the value of the second parameter fromBase being put at 16, in which case a string containing a hexadecimal number can be correctly converted to a mumber in int format.

For illustration, the example in your question,

int a = Convert.ToInt32("0x10");//does not work

will not work and will have to be used in the following form,

int a = Convert.ToInt32("0x10", 16);

in which case "a" will have the value of 16.

Similarly in,

int a = Convert.ToInt32("0x30", 16);

"a" will have the value of 48.



GeneralDataGrid Pin
DriesDeRudder23-Mar-05 11:10
DriesDeRudder23-Mar-05 11:10 
GeneralRe: DataGrid Pin
Robert Rohde23-Mar-05 19:44
Robert Rohde23-Mar-05 19:44 
GeneralWSDL.exe won't generate group tag from .wsdl Pin
Kant23-Mar-05 10:06
Kant23-Mar-05 10:06 
Generalexposing an object instance over .NET remoting Pin
Doom-Child23-Mar-05 9:35
Doom-Child23-Mar-05 9:35 
GeneralRe: exposing an object instance over .NET remoting Pin
_J_23-Mar-05 9:54
_J_23-Mar-05 9:54 
GeneralRe: exposing an object instance over .NET remoting Pin
Doom-Child23-Mar-05 9:57
Doom-Child23-Mar-05 9:57 
GeneralRe: exposing an object instance over .NET remoting Pin
Doom-Child23-Mar-05 11:27
Doom-Child23-Mar-05 11:27 
GeneralMulti Language Interface Pin
jawwad_jee23-Mar-05 9:32
jawwad_jee23-Mar-05 9:32 
GeneralRe: Multi Language Interface Pin
TylerBrinks23-Mar-05 12:05
TylerBrinks23-Mar-05 12:05 
QuestionHow to handle SQL errors with severity 10 Pin
_J_23-Mar-05 9:07
_J_23-Mar-05 9:07 
AnswerRe: How to handle SQL errors with severity 10 Pin
TylerBrinks23-Mar-05 11:58
TylerBrinks23-Mar-05 11:58 
GeneralRe: How to handle SQL errors with severity 10 Pin
_J_23-Mar-05 21:23
_J_23-Mar-05 21:23 
GeneralRe: How to handle SQL errors with severity 10 Pin
TylerBrinks24-Mar-05 4:16
TylerBrinks24-Mar-05 4:16 
GeneralDestroying objects. Pin
paixtis23-Mar-05 8:57
paixtis23-Mar-05 8:57 
GeneralRe: Destroying objects. Pin
TylerBrinks23-Mar-05 11:57
TylerBrinks23-Mar-05 11:57 
GeneralRe: Destroying objects. Pin
paixtis24-Mar-05 4:18
paixtis24-Mar-05 4:18 
GeneralRe: Destroying objects. Pin
TylerBrinks24-Mar-05 4:22
TylerBrinks24-Mar-05 4:22 

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.