DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 9 Aug 2007 09:08:02 -0700,    posted on: microsoft.public.dotnet.security        back       

Thread Index
  1    Sean


IE Hosted Winform control ClipBoard access   
I have a WinForms UserControl that supports DragDrop.  It works great on a 
form.  When I try to host it in IE, I'm running into what I think are 
security issues.  I've worked out most of the problems by Asserting some 
permissions, and using Isolated Storage, but I just can't seem to access the 
file contents of a file that is dropped on the control. (Drag from Outlook to 
the control)  I can get the file names from the FileGroupDescriptor, but when 
I try to get the contents of the file, things get weird:

new UIPermission(UIPermissionClipboard.AllClipboard).Assert();

// Now we need to get the actual raw data
MemoryStream ms = (MemoryStream) e.Data.GetData("FileContents");

After this line of code (no exception is thrown...) If I look at ms the 
debugger has it as <undefined value>.

Any help would be appreciated.

Sean
Date:Thu, 9 Aug 2007 09:08:02 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us