Click here to Skip to main content
15,898,373 members
Home / Discussions / C#
   

C#

 
Questioncopy column values from one table to another Pin
Glen Harvy7-Oct-07 19:05
Glen Harvy7-Oct-07 19:05 
AnswerRe: copy column values from one table to another Pin
il_masacratore7-Oct-07 21:17
il_masacratore7-Oct-07 21:17 
GeneralRe: copy column values from one table to another Pin
Glen Harvy7-Oct-07 22:32
Glen Harvy7-Oct-07 22:32 
GeneralRe: copy column values from one table to another Pin
il_masacratore8-Oct-07 0:02
il_masacratore8-Oct-07 0:02 
GeneralRe: copy column values from one table to another Pin
Glen Harvy8-Oct-07 1:30
Glen Harvy8-Oct-07 1:30 
GeneralRe: copy column values from one table to another Pin
Andrei Ungureanu8-Oct-07 1:39
Andrei Ungureanu8-Oct-07 1:39 
QuestionExchange Server Pin
M. J. Jaya Chitra7-Oct-07 18:50
M. J. Jaya Chitra7-Oct-07 18:50 
QuestionProblem While Writing To A Text File Pin
rowdykuttan7-Oct-07 15:37
rowdykuttan7-Oct-07 15:37 
Hi all,

Am replacing a particular string with another string of a text file dynamically. but while doing this am putting them to a richtextbox also. the contents of this text file contains lot of HTML tags. right now am facing alignment problems. here is the code i have for replacing can some one help me with better solutions than mine

<------------------CODE---------------------><br />
public void ConvertFile(string Pathstring)<br />
        {<br />
<br />
             <br />
            bool change = false;<br />
            StreamReader re = File.OpenText(Pathstring);<br />
            <br />
            string test = "";<br />
            string input = null;<br />
            string fileName = Pathstring;<br />
            while ((input = re.ReadLine()) != null)<br />
            {<br />
                <br />
                if (input.Contains("XXX-XX"))<br />
                {<br />
                    change = true;<br />
                }<br />
                if (change == true)<br />
                {<br />
                    if (input.Contains(".jpg"))<br />
                    {<br />
                       if (test.Contains("XXX-XX"))<br />
                        {<br />
                                                 <br />
                            test = test.Replace("XXX-XX",  GetFilename((input)));<br />
                            <br />
                        }<br />
                    }<br />
                }<br />
                test += input+"\r\n";<br />
            }<br />
            re.Close();<br />
            richTextBox1.Text = test;<br />
        }<br />
<------------------END OF CODE--------------------->

AnswerRe: Problem While Writing To A Text File Pin
Christian Graus7-Oct-07 15:56
protectorChristian Graus7-Oct-07 15:56 
GeneralRe: Problem While Writing To A Text File Pin
rowdykuttan7-Oct-07 16:06
rowdykuttan7-Oct-07 16:06 
GeneralRe: Problem While Writing To A Text File Pin
Christian Graus7-Oct-07 16:16
protectorChristian Graus7-Oct-07 16:16 
QuestionGet File Executable Header Pin
Patricio Tapia7-Oct-07 11:49
Patricio Tapia7-Oct-07 11:49 
AnswerRe: Get File Executable Header Pin
Anthony Mushrow7-Oct-07 14:36
professionalAnthony Mushrow7-Oct-07 14:36 
QuestionHow to create multiple instances of images. Please help Pin
Matt Cavanagh7-Oct-07 11:45
Matt Cavanagh7-Oct-07 11:45 
AnswerRe: How to create multiple instances of images. Please help Pin
Christian Graus7-Oct-07 12:00
protectorChristian Graus7-Oct-07 12:00 
GeneralRe: How to create multiple instances of images. Please help [modified] Pin
Matt Cavanagh7-Oct-07 12:12
Matt Cavanagh7-Oct-07 12:12 
GeneralRe: How to create multiple instances of images. Please help Pin
Anthony Mushrow7-Oct-07 14:33
professionalAnthony Mushrow7-Oct-07 14:33 
GeneralRe: How to create multiple instances of images. Please help Pin
Christian Graus7-Oct-07 14:46
protectorChristian Graus7-Oct-07 14:46 
QuestionVS 2008 Pin
MasterSharp7-Oct-07 11:34
MasterSharp7-Oct-07 11:34 
AnswerRe: VS 2008 Pin
Christian Graus7-Oct-07 11:57
protectorChristian Graus7-Oct-07 11:57 
GeneralRe: VS 2008 Pin
MasterSharp7-Oct-07 12:01
MasterSharp7-Oct-07 12:01 
QuestionCSV to Database Pin
gvanto7-Oct-07 10:29
gvanto7-Oct-07 10:29 
AnswerRe: CSV to Database Pin
Christian Graus7-Oct-07 10:49
protectorChristian Graus7-Oct-07 10:49 
AnswerRe: CSV to Database Pin
gvanto7-Oct-07 12:29
gvanto7-Oct-07 12:29 
QuestionHow would i go about programming an excel like worksheet?? Pin
kranius7-Oct-07 8:09
kranius7-Oct-07 8:09 

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.