Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Perform()


Message #1 by "ejaz" <ejaz@v...> on Sat, 8 Feb 2003 09:42:07 +0530
Hello Friends,
I have several text boxes on TabbedDialog Control (SStab1)....SStab1
contains 4 tabs.....
what i want is that when I press enter on each text box the focus should be
set to next text box and when i am through with this operation on first Tab
of SStab1, automatically the second tab opens...and the same process
continues....
in C++ I do it something like this
Perform(WM_NEXTDLGCTL,0,0)
I dunno what is it in Visual Basic 6
Thanks in advance
Shahid

----- Original Message -----
From: <jleung@m...>
To: professional vb <pro_vb@p...>
Sent: Friday, February 07, 2003 10:45 PM
Subject: [pro_vb] Re: Help with PictureBox


>
> John,
>
> Thank you for taking the time to provide me with a detailed solution.
>
> Jason
>
>
>
>                       JohnRLick@h...
>                       com                      To:       "professional vb"
<pro_vb@p...>
>                                                cc:
>                       02/07/2003 10:58         Subject:  [pro_vb] Re: Help
with PictureBox
>                       AM
>                       Please respond to
>                       "professional vb"
>
>
>
>
>
>
> Okay,
>
> The easiest way to have a picture box redraw your graphics is to set the
> AutoRedraw property of the picture box to True.
>
> There are a couple problems with autodraw.
> 1) It keeps a complete copy of the picture box in memory, so you are using
> much more memory that having it off.
> 2) This memory is clipped at the size of the picture box when the data is
> written, so if your image goes off the edge of the picture box, auto draw
> won't display any of the image that was out of the picture box when it was
> drawn.
> 3) The auto redraw does not scale your image. Since you are using text,
> this may be what you want, but if you are drawing a picture, it will be
> clipped when it is redrawn, not shrunk to fit.
>
> If you want to do the re-draws manually, here is what you need to know.
> There are two events that you will want to pay attention to; Resize and
> Paint.
>
> When a form is:    This event is called:
> Created            Resize, Paint
> Exposed            Paint
> Shrunk             Resize
> Enlarged           Resize, Paint
> Minimized          Resize
> Restored           Resize, Paint
>
> You will want to think about this as you don't want to redraw your picture
> box twice when the user takes one action. But you DO want to redraw it
> when it should be redrawn.
>
> John.
> JohnRLick@h...
>
>
>
> > Dear all,
>
> I have a picturebox in the form that display data using (i.e.
> picture1.print "Hello").
> Whenever I switch to other application (i.e. IE, Word, etc.) & come back
to
> the VB app, the data in the picturebox disappeared.
> Does anyone know how to keep the data from disappearing?
>
> Thanks,
> Jason
>
>
>
>
>
>
>
>



  Return to Index