Click here to Skip to main content
15,911,315 members
Home / Discussions / C#
   

C#

 
AnswerRe: TCP and ASP and Connections Pin
Tony Richards19-Oct-08 12:17
Tony Richards19-Oct-08 12:17 
GeneralRe: TCP and ASP and Connections Pin
NULPTR19-Oct-08 13:07
NULPTR19-Oct-08 13:07 
QuestionPassing a SQL 2005 vBinary document object (a Word document) to an instance of Word.Document. Pin
dunloe19-Oct-08 9:13
dunloe19-Oct-08 9:13 
AnswerRe: Passing a SQL 2005 vBinary document object (a Word document) to an instance of Word.Document. Pin
Wendelius19-Oct-08 9:22
mentorWendelius19-Oct-08 9:22 
GeneralRe: Passing a SQL 2005 vBinary document object (a Word document) to an instance of Word.Document. Pin
dunloe20-Oct-08 5:53
dunloe20-Oct-08 5:53 
GeneralRe: Passing a SQL 2005 vBinary document object (a Word document) to an instance of Word.Document. Pin
Wendelius20-Oct-08 6:53
mentorWendelius20-Oct-08 6:53 
GeneralRe: Passing a SQL 2005 vBinary document object (a Word document) to an instance of Word.Document. Pin
dunloe20-Oct-08 7:24
dunloe20-Oct-08 7:24 
Questionhow to classify the content of textbox Pin
lolla200619-Oct-08 8:47
lolla200619-Oct-08 8:47 
hi...i wrote this code to read the input of textbox, and i wanna to classify each input to compute the given expression i want to store each operand in an index of arrayList ... as example:
suppose the input is : 22+99*7
then when i display the contents of the arrayKist results should be :
22
+
99
*

this is my Code please i realyy need help i stuck here:Confused | :confused:
private void equal_Click(object sender, EventArgs e)
        {
            ArrayList equation = new ArrayList();
            string input = textInput.Text;
            char[] Buffer = input.ToCharArray();
            string tempString="";
            try
            {
                FileStream historyFile = new FileStream("History.txt", FileMode.Append, FileAccess.Write);
                StreamWriter sw = new StreamWriter(historyFile);
                DateTime log = new DateTime();
                sw.WriteLine(input + ": @ time " + log.TimeOfDay + "@ date " + log.Date);
                sw.Close();
                historyFile.Close();
            }
            catch( FileNotFoundException l)
            {
                MessageBox.Show("Logs File Not Found !!","Error Message");
                FileStream exeptionFile = new FileStream("Errors.txt", FileMode.Append, FileAccess.Write);
                StreamWriter sw = new StreamWriter(exeptionFile);
                sw.WriteLine(l.ToString ());
                sw.Close();
                exeptionFile.Close();
            }           
            for (int i = 0; i < Buffer.Length; i++)
            {
                if (char.IsDigit(Buffer[i]))
                {
                    tempString += Buffer[i];
                    for (int j = i + 1; j < Buffer.Length; j++)
                    {
                        if(char.IsDigit (Buffer[j]))
                            tempString += Buffer[j];
                    }
                    //tempString += Buffer[i];
                    
                }                   
                else if (char.IsLetter (Buffer[i]))
                {
                    tempString += Buffer[i];
                    for (int j = i + 1; j < Buffer.Length; j++)
                    {
                        if (char.IsLetter(Buffer[j]))
                            tempString += Buffer[j];
                    }

                }
                else if (char.IsSymbol (Buffer[i]))
                {
                    tempString += Buffer[i];
                    for (int j = i + 1; j < Buffer.Length; j++)
                    {
                        if (char.IsSymbol(Buffer[j]))
                            tempString += Buffer[j];
                    }

                }
                equation.Add(tempString);      
               
            }
            for (int t=0; t<equation.Count ;t++)
                MessageBox.Show(equation[t].ToString());
            
            


            

        }


while(1)
System.out.println("I love Palestine ");

AnswerRe: how to classify the content of textbox Pin
Wendelius19-Oct-08 9:07
mentorWendelius19-Oct-08 9:07 
GeneralRe: how to classify the content of textbox Pin
lolla200619-Oct-08 10:46
lolla200619-Oct-08 10:46 
GeneralRe: how to classify the content of textbox Pin
Guffa19-Oct-08 15:33
Guffa19-Oct-08 15:33 
GeneralRe: how to classify the content of textbox Pin
lolla200622-Oct-08 7:14
lolla200622-Oct-08 7:14 
GeneralRe: how to classify the content of textbox Pin
Guffa22-Oct-08 22:05
Guffa22-Oct-08 22:05 
GeneralRe: how to classify the content of textbox Pin
Wendelius19-Oct-08 18:00
mentorWendelius19-Oct-08 18:00 
GeneralRe: how to classify the content of textbox Pin
lolla200622-Oct-08 7:17
lolla200622-Oct-08 7:17 
GeneralRe: how to classify the content of textbox Pin
Wendelius22-Oct-08 8:46
mentorWendelius22-Oct-08 8:46 
QuestionSimple case statement looking for Enter key Pin
Brad Wick19-Oct-08 8:22
Brad Wick19-Oct-08 8:22 
AnswerRe: Simple case statement looking for Enter key Pin
Wendelius19-Oct-08 9:14
mentorWendelius19-Oct-08 9:14 
AnswerRe: Simple case statement looking for Enter key Pin
PIEBALDconsult19-Oct-08 15:53
mvePIEBALDconsult19-Oct-08 15:53 
QuestionInsert DataTable to Database. Pin
hdv21219-Oct-08 8:02
hdv21219-Oct-08 8:02 
AnswerRe: Insert DataTable to Database. Pin
Mycroft Holmes19-Oct-08 12:35
professionalMycroft Holmes19-Oct-08 12:35 
QuestionC# CreateHandle Exceptions Pin
ewan19-Oct-08 7:54
ewan19-Oct-08 7:54 
AnswerRe: C# CreateHandle Exceptions Pin
N a v a n e e t h19-Oct-08 18:03
N a v a n e e t h19-Oct-08 18:03 
QuestionHow can I read out the process-name via a mouse click? Pin
MyPiano19-Oct-08 6:44
MyPiano19-Oct-08 6:44 
AnswerRe: How can I read out the process-name via a mouse click? Pin
GLLNS19-Oct-08 14:03
GLLNS19-Oct-08 14:03 

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.