
28/04/2009, 06:41
|
| | Fecha de Ingreso: octubre-2000
Mensajes: 1.692
Antigüedad: 24 años, 4 meses Puntos: 19 | |
Respuesta: Insertar imagen en richtextbox Fijate si te sirve este ejemplo:
Código:
public void InsertImage() {
...
string lstrFile = fileDialog.FileName;
Bitmap myBitmap = new Bitmap(lstrFile);
// Copy the bitmap to the clipboard.
Clipboard.SetDataObject(myBitmap);
// Get the format for the object type.
DataFormats.Format myFormat = DataFormats.GetFormat (DataFormats.Bitmap);
// After verifying that the data can be pasted, paste
if(NoteBox.CanPaste(myFormat)) {
NoteBox.Paste(myFormat);
}
else {
MessageBox.Show("The data format that you attempted site" +
" is not supportedby this control.");
}
...
}
http://www.codeproject.com/KB/edit/csexrichtextbox.aspx
__________________ PD: Con amor, fe, amor a Dios y amistad podemos hacer un mundo mejor!!!! |