PC Review


Reply
Thread Tools Rate Thread

changing font size in an activex label

 
 
TONY
Guest
Posts: n/a
 
      20th Dec 2007
This fragment of code i am creating a lable, but when I attempt to change the
font size in the WITH BLOCK. Could someone point out what I am doing wrong.

Set control = OLEObjects.Add(ClassType:="Forms.Label.1", Link:=False, _
DisplayAsIcon:=False, Left:=cw * 3, Top:=rh * 2, Width:=cw * 6,
Height:= _
rh)



With control


End With
 
Reply With Quote
 
 
 
 
Tim Zych
Guest
Posts: n/a
 
      20th Dec 2007
control.Object.Font.Size = 20

--
Tim Zych
SF, CA

"TONY" <(E-Mail Removed)> wrote in message
news:A97F1308-8D60-4C00-ACE6-(E-Mail Removed)...
> This fragment of code i am creating a lable, but when I attempt to change
> the
> font size in the WITH BLOCK. Could someone point out what I am doing
> wrong.
>
> Set control = OLEObjects.Add(ClassType:="Forms.Label.1", Link:=False, _
> DisplayAsIcon:=False, Left:=cw * 3, Top:=rh * 2, Width:=cw * 6,
> Height:= _
> rh)
>
>
>
> With control
>
>
> End With



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the font for part of an axis label, not the whole label. amy45 Microsoft Excel Charting 1 19th Jan 2010 09:29 AM
Label Font Size Miro Microsoft VB .NET 5 25th Oct 2008 06:20 PM
Font size on ActiveX controls Fred Microsoft Excel Programming 0 5th Aug 2008 11:08 PM
Changing Font color based on font type or size John Microsoft Excel Misc 2 7th Feb 2008 12:50 AM
Using <asp:label font-size=16px...> ist not showing size in FireFox Browser Andreas Klemt Microsoft ASP .NET 6 28th Nov 2004 09:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:31 PM.