Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: form repaint event


Message #1 by "Vinod Thomas" <vthomas@a...> on Fri, 23 Feb 2001 19:09:18
Vinod,

is the line you need a Line Control (part of the standard VB controls) or do
you
paint your line yourself using Me.Line?
The AutoRedraw property works *only* if you are drawing the line by
yourself,
and in that case you have to draw it in the form Refresh event (not in the
Load)
or set AutoRedraw to True.
But from your description (the line get distorted) it could be a problem
with
your video card, and you are indeed using the Line Control (please correct
me
if I am wrong). Which kind of distortion do you get?


> -----Original Message-----
> From:	Vinod Thomas [SMTP:vthomas@a...]
> Sent:	Friday, February 23, 2001 11:09 AM
> To:	professional vb
> Subject:	[pro_vb] form repaint event
> 
> Hi,
> This might be very simple, But I am a starter.
> I have a line object in the form. The form is the startup one, so the line
> 
> object is kind of  for looks. The problem is when I open another form
> From the menu and drag this form over the line, the line gets distorted, 
> and lien is not getting repainted.
> Which event/property should I programme for the form so that the users 
> will not see the distortion.
> Hope I am able to send the message.
> Please get me an answer
> 
> Thanks
> Vinod
> 

  Return to Index