PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Control for show text with images

Reply

Control for show text with images

 
Thread Tools Rate Thread
Old 17-03-2005, 08:59 AM   #1
Vitaly Sedov
Guest
 
Posts: n/a
Default Control for show text with images


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


  Reply With Quote
Old 17-03-2005, 09:38 AM   #2
Sergey Bogdanov
Guest
 
Posts: n/a
Default Re: Control for show text with images

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
>
>

  Reply With Quote
Old 17-03-2005, 10:23 AM   #3
Vitaly Sedov
Guest
 
Posts: n/a
Default Re: Control for show text with images

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

"Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
news:OtFczysKFHA.1136@TK2MSFTNGP10.phx.gbl...
> 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
> >
> >



  Reply With Quote
Old 17-03-2005, 10:29 AM   #4
Peter Foot [MVP]
Guest
 
Posts: n/a
Default Re: Control for show text with images

You could build it as HTML and use the HTMLViewer / WebBrowser control -
www.opennetcf.org/sdf/

Peter

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

"Vitaly Sedov" <Vitaly.Sedov@aplana.com> wrote in message
news:OhH76LtKFHA.3500@TK2MSFTNGP14.phx.gbl...
> 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
>
> "Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
> news:OtFczysKFHA.1136@TK2MSFTNGP10.phx.gbl...
>> 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
>> >
>> >

>
>



  Reply With Quote
Old 17-03-2005, 10:51 AM   #5
Sergey Bogdanov
Guest
 
Posts: n/a
Default Re: Control for show text with images

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
>
> "Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
> news:OtFczysKFHA.1136@TK2MSFTNGP10.phx.gbl...
>
>>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
>>>
>>>

>
>
>

  Reply With Quote
Old 17-03-2005, 11:44 AM   #6
McFar
Guest
 
Posts: n/a
Default Re: Control for show text with images

Try to look at
http://www.labitweb.com/raidpage.aspx
may be u will get this there...

"Vitaly Sedov" <Vitaly.Sedov@aplana.com> wrote in message
news:ePo00csKFHA.2812@TK2MSFTNGP15.phx.gbl...
> 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
>
>



  Reply With Quote
Old 17-03-2005, 05:13 PM   #7
Vitaly Sedov
Guest
 
Posts: n/a
Default Re: Control for show text with images

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

"Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
news:%23bnQybtKFHA.1136@TK2MSFTNGP10.phx.gbl...
> 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
> >
> > "Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
> > news:OtFczysKFHA.1136@TK2MSFTNGP10.phx.gbl...
> >
> >>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
> >>>
> >>>

> >
> >
> >



  Reply With Quote
Old 17-03-2005, 06:02 PM   #8
Mark Arteaga
Guest
 
Posts: n/a
Default Re: Control for show text with images

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




"Vitaly Sedov" <Vitaly.Sedov@aplana.com> wrote in message
news:eHVJHxwKFHA.2936@TK2MSFTNGP15.phx.gbl...
> 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
>
> "Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
> news:%23bnQybtKFHA.1136@TK2MSFTNGP10.phx.gbl...
>> 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
>> >
>> > "Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
>> > news:OtFczysKFHA.1136@TK2MSFTNGP10.phx.gbl...
>> >
>> >>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
>> >>>
>> >>>
>> >
>> >
>> >

>
>



  Reply With Quote
Old 17-03-2005, 06:31 PM   #9
Vitaly Sedov
Guest
 
Posts: n/a
Default Re: Control for show text with images

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
news:OpOkSMxKFHA.2648@TK2MSFTNGP14.phx.gbl...
> 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
>
>
>
>
> "Vitaly Sedov" <Vitaly.Sedov@aplana.com> wrote in message
> news:eHVJHxwKFHA.2936@TK2MSFTNGP15.phx.gbl...
> > 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
> >
> > "Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
> > news:%23bnQybtKFHA.1136@TK2MSFTNGP10.phx.gbl...
> >> 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
> >> >
> >> > "Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
> >> > news:OtFczysKFHA.1136@TK2MSFTNGP10.phx.gbl...
> >> >
> >> >>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
> >> >>>
> >> >>>
> >> >
> >> >
> >> >

> >
> >

>
>



  Reply With Quote
Old 18-03-2005, 09:58 AM   #10
Peter Foot [MVP]
Guest
 
Posts: n/a
Default Re: Control for show text with images

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" <Vitaly.Sedov@aplana.com> wrote in message
news:OLv6rcxKFHA.688@TK2MSFTNGP10.phx.gbl...
> 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
> news:OpOkSMxKFHA.2648@TK2MSFTNGP14.phx.gbl...
>> 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
>>
>>
>>
>>
>> "Vitaly Sedov" <Vitaly.Sedov@aplana.com> wrote in message
>> news:eHVJHxwKFHA.2936@TK2MSFTNGP15.phx.gbl...
>> > 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
>> >
>> > "Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
>> > news:%23bnQybtKFHA.1136@TK2MSFTNGP10.phx.gbl...
>> >> 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
>> >> >
>> >> > "Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
>> >> > news:OtFczysKFHA.1136@TK2MSFTNGP10.phx.gbl...
>> >> >
>> >> >>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
>> >> >>>
>> >> >>>
>> >> >
>> >> >
>> >> >
>> >
>> >

>>
>>

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off