Click here to Skip to main content
15,919,479 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: OpenFileDialog and SaveFileDialog crashing Pin
Marc Clifton27-Apr-08 3:38
mvaMarc Clifton27-Apr-08 3:38 
GeneralRe: OpenFileDialog and SaveFileDialog crashing Pin
Thomas Stockwell27-Apr-08 3:46
professionalThomas Stockwell27-Apr-08 3:46 
GeneralRe: OpenFileDialog and SaveFileDialog crashing Pin
Marc Clifton27-Apr-08 4:19
mvaMarc Clifton27-Apr-08 4:19 
GeneralRe: OpenFileDialog and SaveFileDialog crashing Pin
Mark Salsbery27-Apr-08 10:25
Mark Salsbery27-Apr-08 10:25 
GeneralRe: OpenFileDialog and SaveFileDialog crashing Pin
Marc Clifton27-Apr-08 11:17
mvaMarc Clifton27-Apr-08 11:17 
GeneralRe: OpenFileDialog and SaveFileDialog crashing Pin
S. Senthil Kumar27-Apr-08 15:10
S. Senthil Kumar27-Apr-08 15:10 
GeneralRe: OpenFileDialog and SaveFileDialog crashing Pin
Marc Clifton28-Apr-08 0:44
mvaMarc Clifton28-Apr-08 0:44 
QuestionDrag & Drop from Windows Explorer into IE using ActiveX Pin
philster24-Apr-08 19:04
philster24-Apr-08 19:04 
Hi Guys
i m writing an activeX control for a Webform
The requirements for this control are that the user must be able to drag files from Windows explor into
a Listbox which appears on a webpage.
For the listbox i set the property Allowdrop = true.
And inserted the control into the webform.

My problem is that the IE ignores the Drag & drop.
When i Put the same listobx on a Winform it works.

May somebody help me??

<br />
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Drawing;<br />
using System.Data;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
<br />
namespace ActiveXUploadControl<br />
{<br />
    public partial class ActiveXUploadControl : UserControl<br />
    {<br />
        public ActiveXUploadControl()<br />
        {<br />
            InitializeComponent();<br />
        }<br />
<br />
        private void LBFiles_DragDrop(object sender, DragEventArgs e)<br />
        {<br />
            if(e.Data.GetDataPresent(DataFormats.FileDrop))<br />
            {<br />
                string[] files = e.Data.GetData(DataFormats.FileDrop) as string[];<br />
                int i = 0;<br />
                // Assign the files to array<br />
<br />
                for (i = 0; i<= files.Length - 1; i++)<br />
                {<br />
                    LBFiles.Items.Add( files[ i] );<br />
                }<br />
            }<br />
        }<br />
<br />
        private void LBFiles_DragEnter(object sender, DragEventArgs e)<br />
        {<br />
            if (e.Data.GetDataPresent(DataFormats.FileDrop))<br />
                e.Effect = DragDropEffects.All;<br />
        }<br />
    }<br />
} <br />


<br />
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ActiveXTest._Default" %><br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br />
<br />
<HTML><br />
<br />
<HEAD><br />
<br />
<script type="text/javascript"><br />
<br />
</script><br />
<br />
</HEAD><br />
<br />
<body MS_POSITIONING="GridLayout"><br />
<br />
<OBJECT id="OBJECT1" style="<br />
<br />
Z-INDEX: 0; LEFT: 125px; WIDTH: 484px;<br />
<br />
POSITION: absolute; TOP: 85px; HEIGHT: 200px" classid="ActiveXUploadControl.dll#ActiveXUploadControl.ActiveXUploadControl" ><br />
<br />
</div><br />
<br />
</form><br />
<br />
</body><br />
<br />
</HTML><br />

GeneralApplication as both WS client and server Pin
sandersja23-Apr-08 10:31
sandersja23-Apr-08 10:31 
GeneralRe: Application as both WS client and server Pin
Colin Angus Mackay23-Apr-08 12:20
Colin Angus Mackay23-Apr-08 12:20 
GeneralRe: Application as both WS client and server Pin
#realJSOP27-Apr-08 3:29
professional#realJSOP27-Apr-08 3:29 
GeneralService Oriented Architecture Pin
ctrlnick22-Apr-08 10:33
ctrlnick22-Apr-08 10:33 
GeneralRe: Service Oriented Architecture Pin
led mike22-Apr-08 11:08
led mike22-Apr-08 11:08 
GeneralRe: Service Oriented Architecture Pin
#realJSOP27-Apr-08 3:30
professional#realJSOP27-Apr-08 3:30 
GeneralSystem.ServiceProcess Pin
ffowler22-Apr-08 5:37
ffowler22-Apr-08 5:37 
GeneralRe: System.ServiceProcess Pin
Mark Salsbery22-Apr-08 6:17
Mark Salsbery22-Apr-08 6:17 
GeneralRe: System.ServiceProcess Pin
ffowler22-Apr-08 7:12
ffowler22-Apr-08 7:12 
GeneralXQuery Pin
Gktony21-Apr-08 23:33
Gktony21-Apr-08 23:33 
GeneralRe: XQuery Pin
Christian Graus23-Apr-08 12:26
protectorChristian Graus23-Apr-08 12:26 
GeneralRe: XQuery Pin
Gktony23-Apr-08 22:00
Gktony23-Apr-08 22:00 
GeneralRe: XQuery Pin
Christian Graus23-Apr-08 22:02
protectorChristian Graus23-Apr-08 22:02 
QuestionDo SOAP-based web services see clients' cookies? Pin
Mark Schumann21-Apr-08 15:07
Mark Schumann21-Apr-08 15:07 
AnswerRe: Do SOAP-based web services see clients' cookies? Pin
led mike22-Apr-08 4:55
led mike22-Apr-08 4:55 
GeneralRe: Do SOAP-based web services see clients' cookies? Pin
Mark Schumann22-Apr-08 5:02
Mark Schumann22-Apr-08 5:02 
GeneralRe: Do SOAP-based web services see clients' cookies? Pin
led mike22-Apr-08 5:28
led mike22-Apr-08 5:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.