problem in display on panel

  • Thread starter Thread starter lodhaakhil85
  • Start date Start date
L

lodhaakhil85

Hi,

I am graphics object of the panel to draw Strings on the panel, but
when I scroll down I cannot see the remaining strings and when I move
up the scroll bar the orginial strings that were visible initially seem
to get erased ?? What's happening ne Idea ??

Thanks,
Akhil
 
Hi,

I am graphics object of the panel to draw Strings on the panel, but
when I scroll down I cannot see the remaining strings and when I move
up the scroll bar the orginial strings that were visible initially seem
to get erased ?? What's happening ne Idea ??

Thanks,
Akhil

I believe that you have to override the OnPaint method and do the
drawing in there, but I'm not exactly sure... someone else can give you
better info on this than I can.
 
Bruce said:
I believe that you have to override the OnPaint method and do the
drawing in there, but I'm not exactly sure... someone else can give you
better info on this than I can.
This is correct,
You will need to override onpaint method and do your drawing in there so
that every time the control redraws it will redraw your text.
Im not sure about the positioning, if you scroll the control if it
changes the coordinates or not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top