Creating ActiveX control in .NET for IE - Ambient Properties

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Lee Atkinson (leeatkinsonlincs_at_hotmail.com)
Date: 01/25/05


Date: Tue, 25 Jan 2005 09:20:49 +0000

Hi

I am creating an ActiveX control in .NET that is embedded into a web
page in IE. I am embedding an ActiveX rather than a Windows Forms
control, since the webpage runs from the local machine, and for
Microsoft security reasons, winforms controls won't work.

How do I prevent my control picking up the ambient properties of the
parent web page, such that the fonts become Times Roman of the standard
web page? Ideally, I would like the font's to be the fonts used in the
application IE itself - i.e. the standard Windows font. If not, I would
at least prefer to set the fonts myself.

Thanks

Regards

Lee Atkinson



Relevant Pages

  • Re: Controling printers at a detailed level
    ... > Years ago, in the pre-Windows days, I wrote code to directly control ... All these printer control codes were generally vendor ... I'd like to do something similar within a Win32 Windows program. ... This means all the Windows fonts, and text control are at your ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: Problem embedding fonts in PP2007
    ... But still I got no clue why some fonts don't allow the "characters in use" embed option under Windows XP while it works fine under Vista. ... It'd be interesting to install it under both Vista and XP to see whether the two versions say the same thing about the font's embedding properties. ...
    (microsoft.public.powerpoint)
  • adjusting fonts to computers dpi settings
    ... I have noticed that increasing dpi to 120 or even more does not ... have any effect on Microsoft's windows such as Control Panel and the ... programs within it) or Windows Explorer. ... However my app fonts (checkbox captions, texboxes, command boxes captions ...
    (microsoft.public.vb.general.discussion)
  • Problem embedding fonts in PP2007
    ... While migrating some templates from PowerPoint XP to 2007 I noticed that I get an error when trying to embed some fonts. ... Now embedding these fonts in 2007, I get the error on machines with Windows XP and Office 2007 installed. ...
    (microsoft.public.powerpoint)
  • Re: edit control from scratch
    ... Well, with that lengthy description, it seems strange you didn't mention WHY you are avoiding the Windows EDIT control. ... So for an edit control in my world, I have a rectangle that is sized of the font I am using(Hershey fonts are being used... ...
    (microsoft.public.vc.mfc)