Home All Groups Group Topic Archive Search About

What can I use instead of "picture box"?

Author
31 Aug 2006 8:39 PM
Carlos Villaseñor M.
Hi everyboy

I'm new to VB. NET, and I need to know what instruction can use instead
"pictre box" control, I need to regenerate the picture in a window after
that another window was superimposed or activate another application, or if
the window was hidden, this feature in VB 6.0 was performed with
"autoredraw".What control can be used instead?

Thanks in advance

Carlos Villaseñor

Author
31 Aug 2006 10:23 PM
Herfried K. Wagner [MVP]
"Carlos Villaseñor M." <cvmdis***@avantel.net> schrieb:
> I'm new to VB. NET, and I need to know what instruction can use instead
> "pictre box" control, I need to regenerate the picture in a window after
> that another window was superimposed or activate another application, or
> if
> the window was hidden, this feature in VB 6.0 was performed with
> "autoredraw".What control can be used instead?

Use a panel control and add the drawing code to its 'Paint' event handler.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
1 Sep 2006 4:31 AM
Carlos Villaseñor M.
Thanks, but I would like to get an sample, Can you tell me where can I find
that?

Thank you

Calor Villaseñor




Use a panel control and add the drawing code to its 'Paint' event handler.
Show quoteHide quote
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>




"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> escribió en el mensaje
news:uhMwMwUzGHA.3568@TK2MSFTNGP03.phx.gbl...
> "Carlos Villaseñor M." <cvmdis***@avantel.net> schrieb:
> > I'm new to VB. NET, and I need to know what instruction can use instead
> > "pictre box" control, I need to regenerate the picture in a window after
> > that another window was superimposed or activate another application, or
> > if
> > the window was hidden, this feature in VB 6.0 was performed with
> > "autoredraw".What control can be used instead?
>
> >
>
Author
1 Sep 2006 10:38 AM
Herfried K. Wagner [MVP]
"Carlos Villaseñor M." <cvmdis***@avantel.net> schrieb:
> Thanks, but I would like to get an sample, Can you tell me where can I
> find
> that?

Check out the documentation on the 'Control.Paint' event.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>