Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
QuestionCan we import managed DLL Pin
jpk4205-Aug-09 3:24
jpk4205-Aug-09 3:24 
AnswerRe: Can we import managed DLL Pin
Luc Pattyn5-Aug-09 3:31
sitebuilderLuc Pattyn5-Aug-09 3:31 
AnswerRe: Can we import managed DLL Pin
jpk4205-Aug-09 3:33
jpk4205-Aug-09 3:33 
GeneralRe: Can we import managed DLL Pin
harold aptroot5-Aug-09 3:40
harold aptroot5-Aug-09 3:40 
GeneralRe: Can we import managed DLL Pin
Luc Pattyn5-Aug-09 3:49
sitebuilderLuc Pattyn5-Aug-09 3:49 
Question[Message Deleted] Pin
Amangang5-Aug-09 3:22
Amangang5-Aug-09 3:22 
NewsRe: Problem with brackets on the 'Console.WriteLine' & the 'Console.ReadLine' commands Pin
Amangang5-Aug-09 3:23
Amangang5-Aug-09 3:23 
AnswerRe: Problem with brackets on the 'Console.WriteLine' & the 'Console.ReadLine' commands Pin
Luc Pattyn5-Aug-09 3:35
sitebuilderLuc Pattyn5-Aug-09 3:35 
Hi,

you need some variables when reading from the console. Here is a way to get a number (note the use of PRE tags for readability):

Console.WriteLine("please enter number:");
string s=Console.ReadLine();
int number;
bool OK=int.TryParse(s, out number);
if (OK) {
    Console.WriteLine("You entered the number "+number);
} else {
    Console.WriteLine("Unacceptable input: "+s);
}


Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Problem with brackets on the 'Console.WriteLine' & the 'Console.ReadLine' commands Pin
Amangang5-Aug-09 3:44
Amangang5-Aug-09 3:44 
GeneralRe: Problem with brackets on the 'Console.WriteLine' & the 'Console.ReadLine' commands Pin
Luc Pattyn5-Aug-09 3:55
sitebuilderLuc Pattyn5-Aug-09 3:55 
GeneralRe: Problem with brackets on the 'Console.WriteLine' & the 'Console.ReadLine' commands Pin
Amangang5-Aug-09 4:34
Amangang5-Aug-09 4:34 
GeneralRe: Problem with brackets on the 'Console.WriteLine' & the 'Console.ReadLine' commands Pin
Luc Pattyn5-Aug-09 5:01
sitebuilderLuc Pattyn5-Aug-09 5:01 
GeneralRe: Problem with brackets on the 'Console.WriteLine' & the 'Console.ReadLine' commands Pin
Amangang5-Aug-09 5:20
Amangang5-Aug-09 5:20 
GeneralRe: Problem with brackets on the 'Console.WriteLine' & the 'Console.ReadLine' commands Pin
Luc Pattyn5-Aug-09 5:39
sitebuilderLuc Pattyn5-Aug-09 5:39 
GeneralRe: [Message Deleted] Pin
Amangang5-Aug-09 4:39
Amangang5-Aug-09 4:39 
AnswerRe: Solved Pin
Amangang5-Aug-09 19:06
Amangang5-Aug-09 19:06 
Questionadding nodes to a xml document in c# Pin
laziale5-Aug-09 3:09
laziale5-Aug-09 3:09 
AnswerRe: adding nodes to a xml document in c# Pin
stancrm5-Aug-09 3:16
stancrm5-Aug-09 3:16 
GeneralRe: adding nodes to a xml document in c# Pin
laziale5-Aug-09 3:34
laziale5-Aug-09 3:34 
QuestionPage numbers and Line numbers for Web browser control like MS word Pin
pavanip5-Aug-09 3:03
pavanip5-Aug-09 3:03 
QuestionCreate Textfile Pin
5fingers5-Aug-09 2:24
5fingers5-Aug-09 2:24 
AnswerRe: Create Textfile Pin
stancrm5-Aug-09 2:26
stancrm5-Aug-09 2:26 
GeneralRe: Create Textfile Pin
5fingers5-Aug-09 2:31
5fingers5-Aug-09 2:31 
GeneralRe: Create Textfile Pin
stancrm5-Aug-09 2:39
stancrm5-Aug-09 2:39 
GeneralRe: Create Textfile Pin
Michael Bookatz5-Aug-09 2:31
Michael Bookatz5-Aug-09 2:31 

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.