PC Review


Reply
Thread Tools Rate Thread

DrawString on a ProgressBar

 
 
Isaias Formacio Serna
Guest
Posts: n/a
 
      12th Mar 2004
I'm trying to to draw a string in the middle of a progress bar, I tried
first to inherit the control in order to override the OnPaint function, but
it's a sealed control so I guess this won't work, then I tried to add an
Event Handler to the instance and the Paint event just doesn't seem to fire,
does anybody know some way to achieve this??

I'll appreciate your help, regards,

Isaias Formacio


 
Reply With Quote
 
 
 
 
Tim Wilson
Guest
Posts: n/a
 
      12th Mar 2004
You could use the code from the BatteryLife control, that draws a custom
progress bar with text, here:
http://opennetcf.org/sourcebrowse/vi...BatteryLife.cs

.... or get the code wrapped in the OpenNETCF SDF here:
http://opennetcf.org/smartdeviceframework.asp

Tim

"Isaias Formacio Serna" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm trying to to draw a string in the middle of a progress bar, I tried
> first to inherit the control in order to override the OnPaint function,

but
> it's a sealed control so I guess this won't work, then I tried to add an
> Event Handler to the instance and the Paint event just doesn't seem to

fire,
> does anybody know some way to achieve this??
>
> I'll appreciate your help, regards,
>
> Isaias Formacio
>
>



 
Reply With Quote
 
Milosz - [playseven.com]
Guest
Posts: n/a
 
      13th Mar 2004
or take my progressbar from here

http://www.playseven.com/11620/p7_Controls.html


"Isaias Formacio Serna" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> I'm trying to to draw a string in the middle of a progress bar, I tried
> first to inherit the control in order to override the OnPaint function,

but
> it's a sealed control so I guess this won't work, then I tried to add an
> Event Handler to the instance and the Paint event just doesn't seem to

fire,
> does anybody know some way to achieve this??
>
> I'll appreciate your help, regards,
>
> Isaias Formacio
>
>



 
Reply With Quote
 
Isaias Formacio Serna
Guest
Posts: n/a
 
      13th Mar 2004
You're the man! =D

Regards,

Isaias Formacio

"Milosz - [playseven.com]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> or take my progressbar from here
>
> http://www.playseven.com/11620/p7_Controls.html
>
>
> "Isaias Formacio Serna" <(E-Mail Removed)> schrieb im Newsbeitrag
> news:(E-Mail Removed)...
> > I'm trying to to draw a string in the middle of a progress bar, I tried
> > first to inherit the control in order to override the OnPaint function,

> but
> > it's a sealed control so I guess this won't work, then I tried to add an
> > Event Handler to the instance and the Paint event just doesn't seem to

> fire,
> > does anybody know some way to achieve this??
> >
> > I'll appreciate your help, regards,
> >
> > Isaias Formacio
> >
> >

>
>



 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to set DPI for DrawString? Mark B Microsoft ASP .NET 1 14th Aug 2009 11:25 PM
ProgressBar/Custom ProgressBar =?Utf-8?B?RXh0cmVtZSBEYXRhc2V0cw==?= Microsoft Dot NET Framework Forms 1 31st Jan 2005 02:01 AM
Bug in GDI+ DrawString Brian Smith Microsoft Dot NET Framework 5 22nd Oct 2004 08:29 AM
Application quit when i set ProgressBar.Minimum and ProgressBar.Maximum with the same value Cheetah Microsoft Dot NET Compact Framework 17 29th Sep 2004 05:39 AM
gdi+ drawstring jack Microsoft VB .NET 5 13th Nov 2003 12:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 AM.