C
Christian Soltenborn
Hi guys,
I have a question to VB .NET: I add a Graphics object to a panel and use
a bunch of DrawLine methods etc (it's really nice and convenient).
But: As soon as I send my form (which contains the panel) to the task
bar and get it back, the graphics are gone.
I guess that I need to add an event handler to the pane (or the form?),
but which event do I have to handle? And which method do I call on the
panel to get it repainted? Panel.Invalidate?
I have the same problem if I resize the form containing the panel - If I
make it smaller such that some of the graphics disappear, they are gone
if I make it bigger again.
One more question: I would like my panel to resize itself if the form
whicht contains it gets resized (e.g. maximized). How can I do this? I'm
actually not sure if this is related to the problem above (maybe the
panel grows, but my graphics just don't get repainted
Sorry if those questions are stupid, but I'm new to VB .NET and to UI
programming...
Thankx in advance,
Christian
I have a question to VB .NET: I add a Graphics object to a panel and use
a bunch of DrawLine methods etc (it's really nice and convenient).
But: As soon as I send my form (which contains the panel) to the task
bar and get it back, the graphics are gone.
I guess that I need to add an event handler to the pane (or the form?),
but which event do I have to handle? And which method do I call on the
panel to get it repainted? Panel.Invalidate?
I have the same problem if I resize the form containing the panel - If I
make it smaller such that some of the graphics disappear, they are gone
if I make it bigger again.
One more question: I would like my panel to resize itself if the form
whicht contains it gets resized (e.g. maximized). How can I do this? I'm
actually not sure if this is related to the problem above (maybe the
panel grows, but my graphics just don't get repainted
Sorry if those questions are stupid, but I'm new to VB .NET and to UI
programming...
Thankx in advance,
Christian