PDA

View Full Version : A line Object...perhaps



irresistible
11-11-2006, 04:24 AM
Hi,

I wanna know how to get this line (see attachement) in my form...?

thanks
Mudassir

Andy Pope
11-11-2006, 04:54 AM
Use a label control and format so,


With Label1
.Caption = ""
.Height = 2
.SpecialEffect = fmSpecialEffectSunken
End With

irresistible
11-11-2006, 04:59 AM
lolx... quite deceiving... is that the actual way or a nasty trick?

Andy Pope
11-11-2006, 05:04 AM
It's a work around when using VBA.

graphic drawing routines were probably used on the actual dialog but these are only available to VBA by the use of APIs.

Bob Phillips
11-11-2006, 12:11 PM
An alternative is to use a frame with a caption of "", and a height of 2.