Hosting WinForm controls

  • Thread starter Thread starter Leetree Man
  • Start date Start date
L

Leetree Man

I am new to the windows gui development, here is my question.

I currently have a java based applet that does file upload. It offers a
browse button that then lets the user choose one ore more file for upload.
The applet also allows dragging of file form the desktop. The applet then
open a HTTP connection to a server (different server then from where the
applet was launched from) and uploads the file. The applet is signed and
thus has the permission to do both file and url operations.

I would like to port this to C#. I need to know if
a) what is the .NET .equivalent to allow the applet to do file/url
operations. I have read that you can change the Internet permission on each
system, but this is not practical. Does Authenticode approach still work
with .NET?
2) Can JavaScript (client side) script the embedded control.

If anyone has sample code that does something similar I would appreciate it.

Boris
 
a) what is the .NET .equivalent to allow the applet to do file/url
operations. I have read that you can change the Internet permission on each
system, but this is not practical. Does Authenticode approach still work
with .NET?

No, it doesn't -- .NET will never prompt the user for permissions, it
will just approve/deny based on the current security settings. You'll
have to set the permissions on each client PC. This doesn't have to be
done manually; you can create an installer that sets the permissions for
you, and then each user can run the .msi file once and they're set. I
know this can be done, have seen it done (see e.g. the
WinForms-Control-based source-control browser on GotDotNet Workspaces),
but I'm not the one to tell you how to go about doing it yourself, sorry.

2) Can JavaScript (client side) script the embedded control.

I really don't know about this. I've tried it in the past but haven't
been able to get it to work. (I'd give you more details about what I
tried and what resulted, but I was just experimenting at the time and
didn't keep notes.)

Sorry I can't offer more help than this. Good luck!
 
Back
Top