Panel Problem

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

lodhaakhil85

Hi

I'm a newbie to C# and GDI+.I am writing an application that will
display some strings from a file on a panel. There are a few of
problems I am facing :

1.How do make the panel re-adjust its size when maximizing the form
window ??
2. I'm drawing the strings on the panel. if the number of strings
exceeds those that can be displayed in the panel, how can I add a
scroll bar to panel so that I can move it up and down to see the
remaning strings??
3.If I switch to another window and come back, the strings that were
earlier visible on the panel
no longer seem to be visible . How can I solve this issue ??

Any help would be appreciated.
Thanx,
Akhil
 
Hi

I'm a newbie to C# and GDI+.I am writing an application that will
display some strings from a file on a panel. There are a few of
problems I am facing :

1.How do make the panel re-adjust its size when maximizing the form
window ??
2. I'm drawing the strings on the panel. if the number of strings
exceeds those that can be displayed in the panel, how can I add a
scroll bar to panel so that I can move it up and down to see the
remaning strings??
3.If I switch to another window and come back, the strings that were
earlier visible on the panel
no longer seem to be visible . How can I solve this issue ??

Any help would be appreciated.
Thanx,
Akhil

In answer to your first two questions:

1. Look into the Dock and Anchor properties of the panel.
2. Look into the panel's AutoScroll property, although I don't know if
this works when you're just drawing on the surface using GDI+.
 

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