From: "StrandElectric" Newsgroups: comp.lang.basic.visual.misc References: <4dfbf00c@dnews.tpgi.com.au> Subject: Re: Actual VB question! Date: Sun, 19 Jun 2011 05:04:49 +1000 Lines: 56 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 NNTP-Posting-Host: 220.245.43.70 X-Original-NNTP-Posting-Host: 220.245.43.70 Message-ID: <4dfcf6d5@dnews.tpgi.com.au> X-Trace: dnews.tpgi.com.au!tpg.com.au 1308423893 220.245.43.70 (19 Jun 2011 05:04:53 +1000) Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!news.ripco.com!rahul.net!wasp.rahul.net!rahul.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp3.phx1!dnews.tpgi.com.au!tpg.com.au!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:273 "John K.Eason" wrote in message news:memo.20110618122028.400W@jeason.cix.co.uk... > In article <4dfbf00c@dnews.tpgi.com.au>, Strand@dummyspit (StrandElectric) > wrote: > >> *From:* "StrandElectric" >> *Date:* Sat, 18 Jun 2011 10:23:35 +1000 >> >> "Eric Coleman" wrote in message >> news:itfqe1$e3a$1@speranza.aioe.org... >> > On 6/12/2011 4:11 PM, StrandElectric wrote: >> >> vb6 >> >> >> >> I have a problem where the text or caption line up near the top >> >> (vertically) >> >> of the textbox or label. Also captions on the labels and text in >> the text >> >> boxes does not quite line up. I'd like to have them more in the >> middle >> >> vertically and aligned properly. (I am of course OK for >> horizontal >> placeing >> >> (left right centre)). Is there some control property I should be >> >> tweaking? >> >> Apols for such a basic question. >> >> >> > >> > Select the controls you want to align, and then from the the >> > "Format" menu, select "Align" -> "Middles" >> > >> > There is a lot of neat stuff in the Format menu. Also, you can >> > right click on the toolbar and add the "Form Editor" toolbar. It >> > can also be customized to add more of the formatting controls >> > that aren't present. >> >> Experimenting now Eric. When I select a control and then go Format >> > Align > Middles, as you suggested, I get as far as Align and then >> all the options are greyed out. I will continue to try. > > That option is for aligning controls on a form, not for aligning text > within a > control (which isn't natively possible for vertical alignment). > To vertically align a label relative to a single-line text box, I've found > that > the Top property of the label control needs to be 45 points larger than > the textbox > Top property (assuming the desktop is using the default settings, and > using > 'Classic view in Windows). > > Regards > John Thanks John. Makes sense. I'll try it!