Salut,
Extrait de la doc de Visual Studio .NET :
private bool pasteMyBitmap(string fileName) {
// Open an bitmap from file and copy it to the clipboard. Bitmap myBitmap = new Bitmap(fileName); // 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 it. if(richTextBox1.CanPaste(myFormat)) { richTextBox1.Paste(myFormat); return true; } else { MessageBox.Show("The data format that you attempted to paste is not supported by this control."); return false; } } |
-------------------------------
Réponse au message :
-------------------------------
> Bonjour, je souhaite inserer des images dans un textbox est ce que quelqu'un sait comment faire. Voila le pb je recois une chaine de caractere et selon ces caracteres soit j'affiche la chaine tel quel dans la textbox soit j'affiche la chaine et j'integre une ou des images. Ainsi de suite de suite...
> Merci