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 / February 2005

Tip: Looking for answers? Try searching our database.

resize/rescale user control in ActiveX container

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sunny - 04 Feb 2005 20:12 GMT
This is repost, as it seems I had some problems with my antispam alias.
Lets hope it is solved.

Now, here's the repost:

Hi,
I have a user control, which I use in COM application. To be more
specific, I have Outlook 2000 add-in (C#. framework 1.1 SP 1).

So, you can attach your own Options page to Outlook's Tools/Options.

I have created a user control for that, and it displays and acts as
intended.

The only problem is, when it runs on a machine with different
resolution, and different system font size, it does not rescale
(autoscale) as regular forms does.

If I switch my windows to Large Fonts, then everything enlarges :), all
forms are rescaled, etc. So does the box Outlook opens when you select
Tools/Options. All property pages there are OK, only mine is not
rescaled, and labels become multiline, all controls a far away from the
right end, etc.

Now, the question:

How to get the parent size, so I can manually rescale and reposition my
controls. (Control.Parent does not work, as this is ActiveX control
hosted in Outlook).

Or, better, is there some automatic feature, like AutoScale in winforms?

Thanks
Sunny
"Jeffrey Tan[MSFT]" - 08 Feb 2005 02:28 GMT
Hi Sunny,

We have reviewed your post, currently, we will spend some time to do some
research on this issue, we will reply to you ASAP. Thanks for your
understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

"Jeffrey Tan[MSFT]" - 10 Feb 2005 07:23 GMT
Hi Sunny,

Sorry for letting you wait for so long.

Actually, currently for .Net 1.1, the only officially supported ActiveX
containers for .Net Control are Windows Forms, Microsoft Foundation Classes
(MFC) 7.x, and Internet Explorer 5.01 and later versions, which does not
container Office applications. This is documented in the KB below:
"ActiveX control containers that support .NET controls"
http://support.microsoft.com/default.aspx?scid=KB;EN-US;311334

I also have contacted our product team, from the feedback, I was told that
we don??t support .NET controls in non-.net containers since the managed /
unmanaged message pumps are different. And except for the above 3 type of
activeX containers, other application is not fully tested for hosting .Net
Control, and you may result in some un-expected strange behaviors.

Hope this information helps.
=============================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Sunny - 11 Feb 2005 16:57 GMT
Jeffrey Tan[MSFT] wrote:

> Hi Sunny,
>
[quoted text clipped - 24 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.

Hi Jeffrey,
not exactly what I need but ...
Anyway, as it works OK in normal situation (i.e. using "small fonts" for the
desktop), I was kind-a hoping to make it run.

Most probably I'll create my own, managed form to set my options. But it was
so beautiful, when it was in Tools/Options ... huh

Sunny
"Jeffrey Tan[MSFT]" - 14 Feb 2005 01:56 GMT
Hi Sunny,

Thanks for your feedback!

Yes, I see your concern. Once upon a time, I meet a customer who made a COM
container to host the .Net User Control, everything works well, but after
sometime there comes a strange problem(the details I can not remember),
which we can not work out. Then, I find that this issue also fall into the
un-supported senario in that KB. So we strongly not support you do
something like this, and any issue arises from this senario is not official
supported. Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


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.