Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2005

Tip: Looking for answers? Try searching our database.

VisualUI Font on Custom Caption Bar Button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jordan - 05 Aug 2005 17:12 GMT
I've added a custom button to my form's caption bar to perform a pin
function.  However the font-family that contains the pin/unpin image is
VisualUI (which come with VS.NET).  However I can't seem to get this font to
display.

Any ideas on how to get this to work?

using(Font f = new Font("VisualUI", 7F))
{
ControlPaint.DrawStringDisabled( g, "q", f, Color.Black, _rcButton,
StringFormat.GenericDefault);
}
Andrew Smith (Infragistics) - 06 Aug 2005 19:07 GMT
You'll notice that that font is only available while visual studio is
running so visual studio is probably just installing it for its own use -
most likely using AddFontResource. It is not a font that you should expect
to be available on the end user's system. I would recommend creating images
that correspond to the pin/unpin image and use that instead.

> I've added a custom button to my form's caption bar to perform a pin
> function.  However the font-family that contains the pin/unpin image is
[quoted text clipped - 9 lines]
> StringFormat.GenericDefault);
> }

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.