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

C#

 
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 
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 
Remember that the sintax is:

using System;<br />
//All namespace to attach<br />
<br />
namespace demo<br />
{<br />
    public class demo<br />
    {<br />
        public demo()<br />
        {<br />
            //this is the constructor but if the app is console application you need de main method<br />
        }<br />
<br />
        public Main()<br />
        {<br />
            this.demo();<br />
        }<br />
<br />
        private int Occurance(string Input, string Find) <br />
        { <br />
            System.Text.RegularExpressions.Regex rx = new System.Text.RegularExpressions.Regex(Find); // to display them do this <br />
            System.Text.RegularExpressions.Match mt = rx.Match(Input); <br />
            while (mt.Success) <br />
            { <br />
                System.Console.WriteLine("Found >>" + Find + "<< at position " + mt.Index.ToString()); <br />
                mt = mt.NextMatch(); <br />
            }<br />
<br />
            // end display <br />
            return rx.Matches(Input).Count; <br />
        } <br />
<br />
        private DateTime getDate(int day, int month, int year) <br />
        { <br />
            return new DateTime(year, month, day); <br />
        } <br />
<br />
        private void compareDates(DateTime a, DateTime b) <br />
        { <br />
            if (a > b) <br />
            {<br />
                Console.WriteLine(a.ToShortDateString() + " > " + b.ToShortDateString()); <br />
            }<br />
            else if (a == b) <br />
            {<br />
                Console.WriteLine(a.ToShortDateString() + " = " + b.ToShortDateString()); <br />
            }<br />
            else <br />
            {<br />
                Console.WriteLine(a.ToShortDateString() + " < " + b.ToShortDateString()); <br />
            }<br />
        } <br />
<br />
        ~demo()<br />
        {<br />
            //destructor<br />
        }<br />
<br />
    }<br />
}




SINCERELY.
ANTHONY ACUÑA

PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?

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 
Questionhow to use saveFileDialog Pin
veluru krishna13-Nov-06 5:27
veluru krishna13-Nov-06 5:27 
AnswerRe: how to use saveFileDialog Pin
Jamie Nordmeyer13-Nov-06 5:38
Jamie Nordmeyer13-Nov-06 5:38 

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.