Click here to Skip to main content
15,901,982 members
Home / Discussions / C#
   

C#

 
AnswerRe: mobile application using c# Pin
Muammar©8-Nov-08 23:50
Muammar©8-Nov-08 23:50 
QuestionProxy and AxWebBrowser Pin
lalspo8-Nov-08 19:09
lalspo8-Nov-08 19:09 
AnswerRe: Proxy and AxWebBrowser [modified] Pin
sph3rex9-Nov-08 0:58
sph3rex9-Nov-08 0:58 
GeneralRe: Proxy and AxWebBrowser Pin
lalspo9-Nov-08 23:41
lalspo9-Nov-08 23:41 
GeneralRe: Proxy and AxWebBrowser Pin
sph3rex9-Nov-08 23:54
sph3rex9-Nov-08 23:54 
GeneralRe: Proxy and AxWebBrowser Pin
lalspo10-Nov-08 23:19
lalspo10-Nov-08 23:19 
QuestionC# and NUSOAP, blank results Pin
Patricio Tapia8-Nov-08 16:38
Patricio Tapia8-Nov-08 16:38 
Questionhow to use formating in richtextbox.. Pin
raj2313628-Nov-08 16:34
raj2313628-Nov-08 16:34 
hello all,



actually i am working on richtextbox control in window application.
i have a problem in font class. because i want to show rtf file paragraph in para for

<\p>,
for bold paragrpah<\b>,
For ITalic Paragrph,<\I>.

so, how here i am use font class to generate such tag with every paragrph.
my code is here,plz help me ...???


richTextBox1.LoadFile(filepath,RichTextBoxStreamType.RichText);
string inputstring = richTextBox1.Text;
StringBuilder sb =newStringBuilder(inputstring);
//string xx = inputstring;
//string yy = xx.Replace("", "");
sb.Insert(0, "<p>");
//string yy = xx.Replace("", "");
//sb.Replace("<p>", "");
//int num = 0;
// sb.Replace("<p>"
//Random rand = new Random(3);
string rt = "" ;
for (int i = 0; i < 10; i++)
{
rt = i.ToString();
}
//sb.Insert(0, "<p local_id = P-" + rt + ">");
sb.Replace("\n", "</p>" + "\n" + "<p>");
//sb.Replace("<p local_id = P-" + rt + ">" +"</p>", "");
//sb.Append("</p>");
//sb.Replace("<p local_id = P-" + rt + ">" + "</p>", "");
sb.Replace("\n\n", "\n");
sb.Replace("\n\n", "\n");
sb.Replace("\n\n", "\n");
sb.Replace("\n\n", "\n");
sb.Replace("\n\n", "\n");
sb.Replace("\n\n", "\n");
int p=0;
string xx = sb.ToString ();
int ppara = 0;
ppara = xx.IndexOf("<p>", 0);
while (ppara!= -1)
{
p = p+1;
string f1 = Convert.ToString(p);
f1.ToString().PadLeft(3);
xx = xx.Remove(ppara, 3);
xx = xx.Insert(ppara, "<p local-id=\"p-" + p + "\">");
ppara = xx.IndexOf("<p>", ppara+3);
}

richTextBox1.Text = xx.ToString();

}
//}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}


AnswerRe: how to use formating in richtextbox.. Pin
sph3rex9-Nov-08 1:00
sph3rex9-Nov-08 1:00 
GeneralRe: how to use formating in richtextbox.. Pin
raj2313629-Nov-08 19:29
raj2313629-Nov-08 19:29 
GeneralRe: how to use formating in richtextbox.. Pin
sph3rex9-Nov-08 19:36
sph3rex9-Nov-08 19:36 
GeneralRe: how to use formating in richtextbox.. Pin
raj2313629-Nov-08 19:43
raj2313629-Nov-08 19:43 
QuestionDocking a Windows Form to the edge of a screen Pin
Jordanwb8-Nov-08 16:05
Jordanwb8-Nov-08 16:05 
AnswerRe: Docking a Windows Form to the edge of a screen Pin
sph3rex9-Nov-08 1:03
sph3rex9-Nov-08 1:03 
AnswerRe: Docking a Windows Form to the edge of a screen Pin
Jordanwb9-Nov-08 2:57
Jordanwb9-Nov-08 2:57 
GeneralRe: Docking a Windows Form to the edge of a screen Pin
Eddy Vluggen9-Nov-08 22:02
professionalEddy Vluggen9-Nov-08 22:02 
QuestionDoes any one know about how to code for automated shift scheduling using genetic algorithm?? Pin
hiewmoi8-Nov-08 11:01
hiewmoi8-Nov-08 11:01 
QuestionColour clicker Pin
boberick28-Nov-08 1:41
boberick28-Nov-08 1:41 
GeneralRe: Colour clicker Pin
Luc Pattyn8-Nov-08 2:53
sitebuilderLuc Pattyn8-Nov-08 2:53 
AnswerRe: Colour clicker Pin
Muammar©8-Nov-08 23:59
Muammar©8-Nov-08 23:59 
QuestionClosing sockets in asynchronous TCP server Pin
Metal767-Nov-08 22:42
Metal767-Nov-08 22:42 
AnswerRe: Closing sockets in asynchronous TCP server Pin
Nicholas Butler8-Nov-08 1:01
sitebuilderNicholas Butler8-Nov-08 1:01 
GeneralRe: Closing sockets in asynchronous TCP server Pin
Metal768-Nov-08 1:10
Metal768-Nov-08 1:10 
GeneralRe: Closing sockets in asynchronous TCP server Pin
Nicholas Butler8-Nov-08 2:39
sitebuilderNicholas Butler8-Nov-08 2:39 
GeneralRe: Closing sockets in asynchronous TCP server Pin
Metal768-Nov-08 23:16
Metal768-Nov-08 23:16 

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.