Control for show text with images

  • Thread starter Thread starter Vitaly Sedov
  • Start date Start date
V

Vitaly Sedov

Hello!

I am writing an application for pocket pc 2003 using C#.
I need to show text with images in the text. Which user control I need to do
this?

Vitaly
 
Good idea, but i need to insert images in the middle of the text.
For example:

this is a first line of text
this is a text <image> and
text again.


Like you can do in word :)
 
If your text is static and will never be changed during application
execution then just split your text on different labels that will gather
round image. If text can be changed then you should consider Peter's
suggestion to implement it as HTML text.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Thank you guys! I already thought about HTMLViewer. Actually I writing
application for testing people. So, I need control for show each question
from SQL CE database. Each question can contain some pictures in text. If I
use HTMLViewer I'll need to store pictures and HTML text as files on disk
(memory) and point HTMLViewer to this location. It will be better if I have
just some control to show text and pictures from memory (not from files).
I'll try to find control

Thank you,
Vitaly Sedov
 
Thank you for response,
but it's not so easy to draw text with images manually, becouse images can
be with different size and text should be well alligned.
So, I f we have image on second string and image height is bigger than one
string, we need additional space between strings and so on...

Thank you, Mark
 
Using the HTMLViewer / WebBrowser control you can load the html from a
database by writing to the Source property. However your images would have
to be stored as files either permanently or on the fly as you read each
section out from the database to a temporary directory.

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://blog.opennetcf.org/pfoot/

Vitaly Sedov said:
Thank you for response,
but it's not so easy to draw text with images manually, becouse images can
be with different size and text should be well alligned.
So, I f we have image on second string and image height is bigger than one
string, we need additional space between strings and so on...

Thank you, Mark

"Mark Arteaga <MVP>" <marteaga_[at]_neotericsdc_[dot]_com> wrote in
message
Sounds like the text will not be changed by the user and only will be
viewed. If this is correect then I would draw the text and the pictures
manually in a panel or something similar.
 
Thank you guys! :)

So, now I need to get value from HTML ComBobox which I'll put in the buttom
of this text. Hot can I do this? :)

Thank you again
Vitaly Sedov

Peter Foot said:
Using the HTMLViewer / WebBrowser control you can load the html from a
database by writing to the Source property. However your images would have
to be stored as files either permanently or on the fly as you read each
section out from the database to a temporary directory.

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://blog.opennetcf.org/pfoot/

Vitaly Sedov said:
Thank you for response,
but it's not so easy to draw text with images manually, becouse images can
be with different size and text should be well alligned.
So, I f we have image on second string and image height is bigger than one
string, we need additional space between strings and so on...

Thank you, Mark

"Mark Arteaga <MVP>" <marteaga_[at]_neotericsdc_[dot]_com> wrote in
message
Sounds like the text will not be changed by the user and only will be
viewed. If this is correect then I would draw the text and the pictures
manually in a panel or something similar.


--
Mark Arteaga
.NET Compact Framework MVP
http://www.neotericsdc.com | http://blog.markarteaga.com




Thank you guys! I already thought about HTMLViewer. Actually I writing
application for testing people. So, I need control for show each question
from SQL CE database. Each question can contain some pictures in
text.
If
I
use HTMLViewer I'll need to store pictures and HTML text as files on disk
(memory) and point HTMLViewer to this location. It will be better if I
have
just some control to show text and pictures from memory (not from files).
I'll try to find control

Thank you,
Vitaly Sedov

If your text is static and will never be changed during application
execution then just split your text on different labels that will gather
round image. If text can be changed then you should consider Peter's
suggestion to implement it as HTML text.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com


Vitaly Sedov wrote:
Good idea, but i need to insert images in the middle of the text.
For example:

this is a first line of text
this is a text <image> and
text again.


Like you can do in word :)


What about using of PictureBox and Label?

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com


Vitaly Sedov wrote:

Hello!

I am writing an application for pocket pc 2003 using C#.
I need to show text with images in the text. Which user control I need

to do

this?

Vitaly
 
Back
Top