Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting returns from a messagebox Pin
User 665813-Nov-06 10:24
User 665813-Nov-06 10:24 
GeneralRe: Getting returns from a messagebox Pin
Blekk13-Nov-06 10:29
Blekk13-Nov-06 10:29 
GeneralRe: Getting returns from a messagebox Pin
John Arlen113-Nov-06 10:09
John Arlen113-Nov-06 10:09 
GeneralRe: Getting returns from a messagebox Pin
Judah Gabriel Himango13-Nov-06 10:09
sponsorJudah Gabriel Himango13-Nov-06 10:09 
GeneralRe: Getting returns from a messagebox Pin
shopi3013-Nov-06 10:12
shopi3013-Nov-06 10:12 
GeneralRe: Getting returns from a messagebox Pin
Blekk13-Nov-06 10:11
Blekk13-Nov-06 10:11 
AnswerRe: Getting returns from a messagebox Pin
Blekk13-Nov-06 10:23
Blekk13-Nov-06 10:23 
Questionhow can i Pin
Friend4u13-Nov-06 8:50
Friend4u13-Nov-06 8:50 
These two programs are giving errors while compiling.

WAP that counts the no. of occurence of particular character in a line of text.

class demo
{
private int Occurance(string Input, string Find)
{
System.Text.RegularExpressions.Regex rx =
new System.Text.RegularExpressions.Regex(Find);
// to display them do this
System.Text.RegularExpressions.Match mt = rx.Match(Input);
while (mt.Success)
{
System.Console.WriteLine("Found >>" + Find + "<< at position " + mt.Index.ToString());
mt = mt.NextMatch();
}
// end display
return rx.Matches(Input).Count;
}
}

This program is giving error that entry point is not defined.

-------------------------------

WAP to take 2 dates using objects(day,month,year)& display both dates,their comparison also that which one is greater(take the dates with the help of three parameter constructors)

class demo
{
private DateTime getDate(int day, int month, int year)
{
return new DateTime(year, month, day);
}

private void compareDates(DateTime a, DateTime b)
{
if (a > b)
Console.WriteLine(a.ToShortDateString() + " > " + b.ToShortDateString());
else if (a == b)
Console.WriteLine(a.ToShortDateString() + " = " + b.ToShortDateString());
else
Console.WriteLine(a.ToShortDateString() + " < " + b.ToShortDateString());
}
}

this program is giving error "type or namespace couldnot be found(are u missing a using directive or an assembly reference).
AnswerRe: how can i Pin
ednrgc13-Nov-06 8:59
ednrgc13-Nov-06 8:59 
AnswerRe: how can i Pin
shopi3013-Nov-06 10:35
shopi3013-Nov-06 10:35 
QuestionCustom Button Background Pin
GoldenFrog13-Nov-06 8:12
GoldenFrog13-Nov-06 8:12 
AnswerRe: Custom Button Background Pin
Pradeep C13-Nov-06 10:28
Pradeep C13-Nov-06 10:28 
GeneralRe: Custom Button Background Pin
GoldenFrog13-Nov-06 11:14
GoldenFrog13-Nov-06 11:14 
GeneralRe: Custom Button Background Pin
Anthony Mushrow13-Nov-06 12:44
professionalAnthony Mushrow13-Nov-06 12:44 
QuestionCan't save after importing Access file Pin
Bjorn240413-Nov-06 7:42
Bjorn240413-Nov-06 7:42 
AnswerRe: Can't save after importing Access file Pin
George L. Jackson13-Nov-06 8:33
George L. Jackson13-Nov-06 8:33 
QuestionEditing File Properties Pin
digital_loser13-Nov-06 6:22
digital_loser13-Nov-06 6:22 
QuestionApplication.Run(new Form1()); Error Code Pin
Blekk13-Nov-06 6:10
Blekk13-Nov-06 6:10 
AnswerRe: Application.Run(new Form1()); Error Code Pin
Jon Hulatt13-Nov-06 6:28
Jon Hulatt13-Nov-06 6:28 
GeneralRe: Application.Run(new Form1()); Error Code Pin
Blekk13-Nov-06 6:30
Blekk13-Nov-06 6:30 
QuestionConcurrency violation Pin
Nadia Monalisa13-Nov-06 5:55
Nadia Monalisa13-Nov-06 5:55 
AnswerRe: Concurrency violation Pin
ednrgc13-Nov-06 9:01
ednrgc13-Nov-06 9:01 
GeneralRe: Concurrency violation Pin
Nadia Monalisa13-Nov-06 13:09
Nadia Monalisa13-Nov-06 13:09 
GeneralRe: Concurrency violation Pin
ednrgc14-Nov-06 2:50
ednrgc14-Nov-06 2:50 
GeneralRe: Concurrency violation Pin
Nadia Monalisa14-Nov-06 3:35
Nadia Monalisa14-Nov-06 3: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.