Click here to Skip to main content
15,909,741 members
Home / Discussions / C#
   

C#

 
GeneralRe: need help in programming in c# Pin
Esmo20001-Feb-05 2:14
Esmo20001-Feb-05 2:14 
GeneralRe: need help in programming in c# Pin
Anonymous1-Feb-05 3:49
Anonymous1-Feb-05 3:49 
GeneralRe: need help in programming in c# Pin
Dave Kreskowiak1-Feb-05 4:29
mveDave Kreskowiak1-Feb-05 4:29 
Questionhow to access enum from an unmanaged .h file ? Pin
CiNN31-Jan-05 22:18
CiNN31-Jan-05 22:18 
AnswerRe: how to access enum from an unmanaged .h file ? Pin
Corinna John31-Jan-05 23:01
Corinna John31-Jan-05 23:01 
GeneralRe: how to access enum from an unmanaged .h file ? Pin
CiNN31-Jan-05 23:29
CiNN31-Jan-05 23:29 
Generalproblem with enum type ?! Pin
CiNN31-Jan-05 21:47
CiNN31-Jan-05 21:47 
GeneralRe: problem with enum type ?! Pin
Corinna John31-Jan-05 22:10
Corinna John31-Jan-05 22:10 
The C# compiler does not understand that the Enum got a type. Wink | ;)
You can save a few cast operations like that:


W32_DriveTypes driveType = (W32_DriveTypes) int.Parse(mo["DriveType"].ToString());
switch( driveType )
{
case W32_DriveTypes.Removable : idxicon = 8; break;
case W32_DriveTypes.LocalDisk : idxicon = 4; break;
case W32_DriveTypes.NetworkDrive : idxicon = 6; break;
case W32_DriveTypes.CompactDisc : idxicon = 5; break;
case W32_DriveTypes.RAMDisk : idxicon = 7; break;
default: idxicon = 0; break;
}


_________________________________
Vote '1' if you're too lazy for a discussion

GeneralTcpClient doesn't close connection Pin
ehuysamer31-Jan-05 21:19
ehuysamer31-Jan-05 21:19 
GeneralRe: TcpClient doesn't close connection Pin
Arun Bhalla1-Feb-05 6:50
Arun Bhalla1-Feb-05 6:50 
GeneralInstaller woes Pin
Arun Bhalla31-Jan-05 19:28
Arun Bhalla31-Jan-05 19:28 
Questioni think create many table of dataset,i use gotdotnet,but what i creat it? Pin
xiaoyuan31-Jan-05 19:26
xiaoyuan31-Jan-05 19:26 
AnswerRe: i think create many table of dataset,i use gotdotnet,but what i creat it? Pin
Dave Kreskowiak1-Feb-05 4:18
mveDave Kreskowiak1-Feb-05 4:18 
Generalserialize hashtable within another hashtable Pin
rathishps31-Jan-05 18:10
rathishps31-Jan-05 18:10 
GeneralRe: serialize hashtable within another hashtable Pin
Robert Rohde1-Feb-05 3:38
Robert Rohde1-Feb-05 3:38 
GeneralScrollBar is disappeareing Pin
FocusedWolf31-Jan-05 16:19
FocusedWolf31-Jan-05 16:19 
GeneralRe: ScrollBar is disappeareing Pin
Stefan Troschuetz31-Jan-05 21:25
Stefan Troschuetz31-Jan-05 21:25 
GeneralRe: ScrollBar is disappeareing Pin
FocusedWolf1-Feb-05 9:50
FocusedWolf1-Feb-05 9:50 
GeneralRe: ScrollBar is disappeareing Pin
FocusedWolf1-Feb-05 10:04
FocusedWolf1-Feb-05 10:04 
Generalemail Pin
Anonymous31-Jan-05 15:47
Anonymous31-Jan-05 15:47 
GeneralRe: email Pin
Corinna John31-Jan-05 20:52
Corinna John31-Jan-05 20:52 
GeneralRe: email Pin
Esmo20001-Feb-05 2:22
Esmo20001-Feb-05 2:22 
GeneralRe: email Pin
Anonymous1-Feb-05 11:58
Anonymous1-Feb-05 11:58 
GeneralRe: email Pin
Anonymous1-Feb-05 12:30
Anonymous1-Feb-05 12:30 
GeneralListView with a multiline ColumnHeader Pin
Lin Qi31-Jan-05 15:35
Lin Qi31-Jan-05 15:35 

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.