Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 109339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:03:14+00:00 2026-05-11T02:03:14+00:00

Since there is apparently no Flash control that can accept bitmap pastes , I

  • 0

Since there is apparently no Flash control that can accept bitmap pastes, I want to think about writing one myself. I’d rather not use Flash though, so I though about using .NET.

Now I believe the correct terminology for a native code control that can be downloaded and run in the browser is ‘ActiveX control’. So my question is, can I create such an ActiveX control with .NET?

I’ve found some tutorials on the web, but they all expect you to have the assembly installed on your local machine, and registered and trusted both it and the website that’s accessing it.

This is asking a bit much for potential anonymous internet users, and even for intranet users another method of deployment would be preferable.

I distinctly remember some website asking me to download this or that ActiveX control. And on pages requiring such browser plugins as Flash and Java, there is some mechanism by which the browser knows where to fetch the plugin for that media type.

So my question is twofold:

  • Can I create a control that can run in the user’s browser in .NET?
  • What is the best method of (semi-)automatic delivery that I can achieve?

In response to Sunny:

Yes, a lot of JavaScript rich text editors allow you to paste a linked image into a text field, and it will insert the correct <img> tag. However, this only works for images that already have a location on the web, and I want this to upload new images just by copy/pasting any random bitmap from your clipboard.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:03:14+00:00Added an answer on May 11, 2026 at 2:03 am

    If you’re okay with IE only, I like the IE hosted control’s security model over Active-X, however, as of 1/1/09, Microsoft deprecates the use of .NET (in process) to extend IE so XBAP is okay, but not in ActiveX controls or IE Hosted controls.

    Update 7/13: Microsoft has published guidance on implementing in-process extensions; it’s still deprecated.

    Edit: W/o tweaking the registry, IE8 will only load a .NET hosted control from the intranet or trusted zone so for general internet use, Active-X is required for in-browser full trust access.

    To follow up on Russ’s post: Silverlight can’t access the clipboard: http://silverlight.net/forums/t/13024.aspx

    Most of the IE hosted control information is in blogs so I use: http://www.google.com/search?q=ie+hosted+control+site:msdn.com to find them. Below are the ones I’ve found particularly useful.

    Quick and easy control: http://blogs.msdn.com/mikechr/archive/2006/11/28/writing-a-simple-managed-control-under-ie.aspx

    Odd thing about security, unless the ‘evidence’ is a url, the assembly may be trusted, but not the domain, requiring asserts to fix: http://blogs.msdn.com/carloc/archive/2006/11/01/code-access-security-hosting-control-in-ie.aspx

    This is ‘fixed’ in 3.5 with manifests. It’s complicated to get right so see the instructions on using manifests from Shawnfa’s .NET Security Blog for the .NET 3.5 Beta and post GA .NET 3.5. Todd’s Random Discovery blog also documents the steps for creating a manifest for a hosted control

    I found this useful from a KB article on setting up the security, but you’ll still have to learn quite a bit about CAS: http://support.microsoft.com/kb/892466. This is probably the main consideration when deciding to use a (.net) Active-X vs an IE hosted control – that is, what security model works best for you and your users. My hope is that using manifest will make IE hosted controls work like click-once where the user is asked to ‘trust’ and the correct settings are created by the system. For my company we used could automate setting up the security for the user so an ie hosted was our choice.

    The one thing I never figured out was if I did or didn’t have to inherit from (User)control for a ui-less control. It worked better for me to do so, but I had to ‘hide’ the div the object tag lived in.

    It’s easy to debug the control if you compile for debug and attach to IE for ‘managed’ debugging once you get the control to load. If you can’t get the control to load, look up info on the fusion assembly binding viewer: http://msdn.microsoft.com/en-us/library/e74a18c4.aspx and how to turn on IEHost tracing: http://support.microsoft.com/kb/313892 in order to debug the load process.

    Be sure to version every version of the assembly. If you don’t, then IE gets confused and won’t load the control when the assembly in the download cache is different but has the same version # as the one the url references (gacutil /cdl clears the .net download cache)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 213k
  • Answers 213k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If PHP is running under Apache you should be able… May 12, 2026 at 10:35 pm
  • Editorial Team
    Editorial Team added an answer You made several errors in your getDelete function: store is… May 12, 2026 at 10:35 pm
  • Editorial Team
    Editorial Team added an answer First off this is a little confusing:- imageBrush.ImageSource = img;… May 12, 2026 at 10:35 pm

Related Questions

I'm trying to control the main timeline of my flash application from a MovieClip
I have a loop that looks like this def slow_loop(array) array.each_with_index do |item, i|
I have a large table with 1 million+ records. Unfortunately, the person who created
I'm trying to make a video out of a folder full of jpeg files.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.