Custom CLR to Host WinForm App?

L

lucius

I would like to run a custom CLR (Framework 2.0) and host my WinForm
application inside it. I would also like to show a Task Bar icon that
shows the new CLR is running, just like when certain Java runtimes
launch to host things.

Thanks.
 
L

Linda Liu [MSFT]

Hi Lucius,

Based on my understanding, you'd like to implement a custom Common Language
Runtime host for your managed applications, and show an icon in the system
notification area while the custom CLR host is running. If I'm off base,
please feel free to let me know.

Generally speaking, a CLR host is responsible for loading the CLR into a
process, defining the application domains within the process, and executing
user code within those domains.

I search and find a good article addressing how to implement a custom CLR
host for managed applications and you may visit the following link for this
article:

'Microsoft .NET: Implement a Custom Common Language Runtime Host for Your
Managed App'
http://msdn.microsoft.com/msdnmag/issues/01/03/clr/default.aspx

In addition, to show an icon in the system notification area, I suggest
that you use the Win32 API Shell_NotifyIcon.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
L

Linda Liu [MSFT]

Hi Lucius,

How about the problem?

If you need our further assistance, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top