473,396 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

image in richtextbox

Hi,

How can i use an image in a richtextbox in a Windows Form application
written in C#? I have a richtextbox with print facilitities and i need
to be able to print the text and an image.

Jul 21 '06 #1
3 2634
I can just copy and paste any image in if you want.

chanmm

<jo********@gmail.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
Hi,

How can i use an image in a richtextbox in a Windows Form application
written in C#? I have a richtextbox with print facilitities and i need
to be able to print the text and an image.

Jul 21 '06 #2

chanmm schreef:
I can just copy and paste any image in if you want.

chanmm

<jo********@gmail.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
Hi,

How can i use an image in a richtextbox in a Windows Form application
written in C#? I have a richtextbox with print facilitities and i need
to be able to print the text and an image.
Yeah i figured that out after a while. My colleagues told me different
and that it could't be done easily. It took me just 3 lines of code...
But thnx anyway!

Jul 21 '06 #3

Maniac schreef:
chanmm schreef:
I can just copy and paste any image in if you want.

chanmm

<jo********@gmail.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
Hi,
>
How can i use an image in a richtextbox in a Windows Form application
written in C#? I have a richtextbox with print facilitities and i need
to be able to print the text and an image.
>

Yeah i figured that out after a while. My colleagues told me different
and that it could't be done easily. It took me just 3 lines of code...
But thnx anyway! I needed it in the textbox during initialisation. I knew that i could copy an image dureing runtime, but tha't was not what i needed. I realised that i could copy it to the clipboard during compilation and after that it was easy.
Jul 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sachin | last post by:
If I have an image inside the RichTextBox, can I drag/move it inside the RichTextBox with the help of mouse, just like we can move any control on the form during design time. Please guide -- sachin
1
by: Sachin | last post by:
If an image is inserted in the RichTextBox at runtime, how to drag/move it inside the RichTextBox with the help of mouse, just like we can move any control on the form during design time. Please...
0
by: Sakharam Phapale | last post by:
Hi All, How to insert the image into the richtextbox control and catch the mouse click event of that image. Thanks in Advance, Sakharam Phapale
0
by: Pedro Cardoso | last post by:
hi, i would like to add some smileys to a chat program and for that i intend to use pictures just like msn messenger but the following code doesnt preserve the transparency existant in the image...
0
by: Chandu | last post by:
Hi there, I want to know that how can we display any image file in jpg format ptogrammatically in RichTextBox Control. One menothd i know is copying the file in clipboard and then pasting it in...
0
by: Vincent | last post by:
Dear all, I have implemented a class to export the content of RichTextBox to image in WYSISYG mode so that line breaks on the screen are the same as exported. C# Code: public struct...
1
by: Asking | last post by:
Hi all, I want to insert an image any location (x, y) on RichTextBox or PictureBox (or any on component supported drawing too). Can I do this? or How can I do this, please show me a way ? ...
0
by: randadotexas | last post by:
Hello, everybody. I have a form with a RichTextBox or a simple TextBox control. It contains hundreds of text lines, so control has to be scrolled. I want to send to a printer only the lines...
1
by: randadotexas | last post by:
Hello, everybody. I'm working on a Vb.net project. I have a form with a RichTextBox or a simple TextBox control. It contains hundreds of text lines, so the control has to be scrolled. I want...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.