Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
GeneralRe: hide the maximize,minimize box from mdi child form Pin
sathish s19-Feb-08 23:19
sathish s19-Feb-08 23:19 
Generalrestore problem for mdi child form [modified] Pin
Miss Maheshwari19-Feb-08 19:42
Miss Maheshwari19-Feb-08 19:42 
QuestionHow to use LinkLabel? Pin
Chaitanya Joshi19-Feb-08 19:42
Chaitanya Joshi19-Feb-08 19:42 
GeneralRe: How to use LinkLabel? Pin
Arjun Marwaha19-Feb-08 20:35
Arjun Marwaha19-Feb-08 20:35 
GeneralRe: How to use LinkLabel? Pin
Chaitanya Joshi21-Feb-08 3:20
Chaitanya Joshi21-Feb-08 3:20 
GeneralRe: How to use LinkLabel? Pin
N a v a n e e t h19-Feb-08 20:36
N a v a n e e t h19-Feb-08 20:36 
Questionregarding port monitoring Pin
routhu rao19-Feb-08 19:23
routhu rao19-Feb-08 19:23 
Questionretrieving text from richtextbox [modified] Pin
DKalepu19-Feb-08 19:14
DKalepu19-Feb-08 19:14 
Hi All,


I have a RichTextBox and two buttons placed on the windows form. Where user can type the text he wants, and inserts any picture by clicking "insert picture" button. Whenever he clicks the "EXPORT" button, i want to retrieve all the text from the Richtext box to a string variable. Now, my problem is that, i can save the text but if there is any picture inserted in the message, it is indicating as "space" in the text. I want to insert a special character ( like any character between 127 - 255 in ascii table) in the place of that picture. How could I do that?

could any one please guide me.. I'm really lost in this issue since 3 days! Cry | :((


Here i'm posting my code here!:


pic = ImageSelect.pbSelected[i].Image;
InsertImage(pic);

private void InsertImage(Image pic)
{
Bitmap myBitMap = new Bitmap(pic);
Clipboard.SetDataObject(myBitMap);
DataFormats.Format myFormat = DataFormats.GetFormat(DataFormats.Bitmap);
maskedTextBox1.Paste();
if (richTextBox1.CanPaste(myFormat))
{
richTextBox1.Paste(myFormat);
}
else
MessageBox.Show("cannot paste");
}

private void btnExport_Click_1(object sender, EventArgs e)
{
//richTextBox1.SaveFile("D:\\b.txt");
strMessage = richTextBox1.Text;
MessageBox.Show(strMessage);
}


Thanks,
Durga.

Strength is life, Weakness is death.

--- Swami vivekananda

modified on Wednesday, February 20, 2008 1:57 AM

Questionhow to pass parameters to webclient.uploadFileAsyncEventHandler() Pin
anumadhu19-Feb-08 18:46
anumadhu19-Feb-08 18:46 
QuestionHow to do Ftp from one server to another server directly Pin
anumadhu19-Feb-08 18:22
anumadhu19-Feb-08 18:22 
QuestionHow to print image or text from the memory in win application?? Pin
Tridip Bhattacharjee19-Feb-08 18:17
professionalTridip Bhattacharjee19-Feb-08 18:17 
AnswerRe: How to print image or text from the memory in win application?? Pin
Arjun Marwaha19-Feb-08 19:58
Arjun Marwaha19-Feb-08 19:58 
Questionhow to Save SDI form's outer look as a file in file system in my win application?? Pin
Tridip Bhattacharjee19-Feb-08 18:14
professionalTridip Bhattacharjee19-Feb-08 18:14 
GeneralSave Text as Image Pin
D i x y19-Feb-08 17:19
D i x y19-Feb-08 17:19 
GeneralRe: Save Text as Image Pin
CKnig19-Feb-08 18:12
CKnig19-Feb-08 18:12 
GeneralRe: Save Text as Image Pin
D i x y19-Feb-08 18:44
D i x y19-Feb-08 18:44 
Generalreferencing dlls with same name. Pin
D2raghu19-Feb-08 17:08
D2raghu19-Feb-08 17:08 
GeneralRe: referencing dlls with same name. Pin
Hamza Nadim20-Feb-08 5:00
Hamza Nadim20-Feb-08 5:00 
GeneralGAC related question Pin
Imtiaz Murtaza19-Feb-08 13:24
Imtiaz Murtaza19-Feb-08 13:24 
GeneralRe: GAC related question Pin
Luc Pattyn19-Feb-08 13:56
sitebuilderLuc Pattyn19-Feb-08 13:56 
GeneralRe: GAC related question Pin
PIEBALDconsult19-Feb-08 14:04
mvePIEBALDconsult19-Feb-08 14:04 
QuestionThread instance object location Pin
Spacix One19-Feb-08 13:01
Spacix One19-Feb-08 13:01 
GeneralRe: Thread instance object location Pin
Luc Pattyn19-Feb-08 14:25
sitebuilderLuc Pattyn19-Feb-08 14:25 
GeneralRe: Thread instance object location Pin
Spacix One19-Feb-08 17:08
Spacix One19-Feb-08 17:08 
GeneralRe: Thread instance object location Pin
Luc Pattyn20-Feb-08 4:07
sitebuilderLuc Pattyn20-Feb-08 4:07 

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.