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

C#

 
AnswerRe: Check an internet connection Pin
Glen Harvy28-Jan-07 9:30
Glen Harvy28-Jan-07 9:30 
GeneralRe: Check an internet connection Pin
CodeItWell28-Jan-07 10:51
CodeItWell28-Jan-07 10:51 
QuestionFormatting String Like VB6 ... Pin
abalbo27-Jan-07 23:46
abalbo27-Jan-07 23:46 
AnswerRe: Formatting String Like VB6 ... Pin
Luc Pattyn28-Jan-07 0:06
sitebuilderLuc Pattyn28-Jan-07 0:06 
GeneralRe: Formatting String Like VB6 ... Pin
abalbo28-Jan-07 0:51
abalbo28-Jan-07 0:51 
AnswerRe: Formatting String Like VB6 ... Pin
Guffa28-Jan-07 0:55
Guffa28-Jan-07 0:55 
GeneralRe: Formatting String Like VB6 ... Pin
abalbo28-Jan-07 1:05
abalbo28-Jan-07 1:05 
AnswerRe: Formatting String Like VB6 ... Pin
Guffa28-Jan-07 0:11
Guffa28-Jan-07 0:11 
First, let's make the VB6 code better:

Label1 = Format((Num Mod 60000) / 1000, "00.000")

Then we can translate it into C#:

Label1 = ((Num % 60000) / 1000).ToString("00.000")

---
Year happy = new Year(2007);

GeneralRe: Formatting String Like VB6 ... Pin
abalbo28-Jan-07 0:51
abalbo28-Jan-07 0:51 
AnswerRe: Formatting String Like VB6 ... Pin
Guffa28-Jan-07 0:55
Guffa28-Jan-07 0:55 
GeneralRe: Formatting String Like VB6 ... Pin
abalbo28-Jan-07 1:04
abalbo28-Jan-07 1:04 
GeneralRe: Formatting String Like VB6 ... Pin
Colin Angus Mackay28-Jan-07 3:06
Colin Angus Mackay28-Jan-07 3:06 
QuestionRecord retrieval through dynamic column names in streamWriter Pin
Saira Tanwir27-Jan-07 22:39
Saira Tanwir27-Jan-07 22:39 
AnswerRe: Record retrieval through dynamic column names in streamWriter Pin
Guffa27-Jan-07 23:28
Guffa27-Jan-07 23:28 
GeneralRe: Record retrieval through dynamic column names in streamWriter Pin
Madiha Ashfaq27-Jan-07 23:49
Madiha Ashfaq27-Jan-07 23:49 
AnswerRe: Record retrieval through dynamic column names in streamWriter Pin
Guffa28-Jan-07 0:15
Guffa28-Jan-07 0:15 
AnswerRe: Record retrieval through dynamic column names in streamWriter Pin
bobsugar22228-Jan-07 2:39
bobsugar22228-Jan-07 2:39 
QuestionGet current property name using reflection Pin
vmo3d27-Jan-07 18:48
vmo3d27-Jan-07 18:48 
AnswerRe: Get current property name using reflection Pin
engsrini27-Jan-07 22:14
engsrini27-Jan-07 22:14 
QuestionSetup And Deployement Pin
justintimberlake27-Jan-07 18:38
justintimberlake27-Jan-07 18:38 
AnswerRe: Setup And Deployement Pin
Glen Harvy28-Jan-07 20:40
Glen Harvy28-Jan-07 20:40 
QuestionNamepaces Pin
max2929727-Jan-07 17:02
max2929727-Jan-07 17:02 
AnswerRe: Namepaces Pin
Thomas Stockwell27-Jan-07 17:48
professionalThomas Stockwell27-Jan-07 17:48 
GeneralRe: Namepaces Pin
Scott Dorman28-Jan-07 6:23
professionalScott Dorman28-Jan-07 6:23 
QuestionHow to generate code automatically? Pin
raymond.chen200827-Jan-07 16:40
raymond.chen200827-Jan-07 16:40 

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.