Click here to Skip to main content
15,912,977 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Newbie JavaScript Question Pin
gunner_uk200030-Dec-07 5:34
gunner_uk200030-Dec-07 5:34 
Generalclientscript.registerforeventvalidation Pin
arunkumarv28-Dec-07 23:27
arunkumarv28-Dec-07 23:27 
QuestionCan I develop Google map api to display on Mobile phone or PDA? Pin
bowling28-Dec-07 12:20
bowling28-Dec-07 12:20 
GeneralInstal ATP server Web Server on Win2K3... Pin
achainard28-Dec-07 8:42
achainard28-Dec-07 8:42 
Generalproblem in getting image width and height Pin
Tamimi - Code27-Dec-07 1:45
Tamimi - Code27-Dec-07 1:45 
Answersolved :) Pin
Tamimi - Code27-Dec-07 2:13
Tamimi - Code27-Dec-07 2:13 
GeneralRe: solved :) Pin
Paul Conrad27-Dec-07 15:06
professionalPaul Conrad27-Dec-07 15:06 
GeneralWindows foms control in Web page. a simple problem when with web pages Pin
ram197426-Dec-07 14:51
ram197426-Dec-07 14:51 
Hi all,

I am having a winodows forms control (windows control library) which is having a list view control on to which I will drag and drop the files and the control holds their names along with the path. It is working fine when I am executing it in VS2005. I am able to drag and drop single file or multiple files at a time. But, when I am embeding it into a web page using <object> tab, I am able to drag drop only single file at a time, it is not allowing me to drag and drop multiple files at a single go. any body have any clue?

my web page code:

<object id="myName" classid="http:WindowsControlLibrary1.dll#WindowsControlLibrary1.UserControl1"
height="870" width="1250" align="left" name="myCtrl" />
</object>

my dll code is here:

private void listView1_DragDrop(object sender, DragEventArgs e)
{
if(e.Data.GetDataPresent(System.Windows.Forms.DataFormats.FileDrop))
{
string[] files =(string[])e.Data.GetData(System.Windows.Forms.DataFormats.FileDrop);
try
{
foreach (string s in files)
{
listView1.Items.Add(s.ToString());
}
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
return;
}

}
}

private void listView1_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(System.Windows.Forms.DataFormats.FileDrop))
{
string[] files = (string[])e.Data.GetData(System.Windows.Forms.DataFormats.FileDrop);
foreach (string s in files)
{
e.Effect = System.Windows.Forms.DragDropEffects.Copy;

}
return;

}
else
{
e.Effect = System.Windows.Forms.DragDropEffects.None;
}
}


private void listView1_DragOver(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(System.Windows.Forms.DataFormats.FileDrop))
{
string[] files = (string[])e.Data.GetData(System.Windows.Forms.DataFormats.FileDrop);
foreach (string s in files)
{
e.Effect = System.Windows.Forms.DragDropEffects.Copy;
}
return;
}
else
{
e.Effect = System.Windows.Forms.DragDropEffects.None;
}

}

Thanks in Advance.

-Ram.

modified on Thursday, December 27, 2007 12:30:40 AM

GeneralRe: Windows foms control in Web page. a simple problem when with web pages Pin
Michael Sync26-Dec-07 19:12
Michael Sync26-Dec-07 19:12 
GeneralRe: Windows foms control in Web page. a simple problem when with web pages Pin
ram197426-Dec-07 20:23
ram197426-Dec-07 20:23 
GeneralRe: Windows foms control in Web page. a simple problem when with web pages Pin
Michael Sync26-Dec-07 20:41
Michael Sync26-Dec-07 20:41 
GeneralRe: Windows foms control in Web page. a simple problem when with web pages [modified] Pin
ram197426-Dec-07 21:02
ram197426-Dec-07 21:02 
GeneralRe: Windows foms control in Web page. a simple problem when with web pages Pin
Michael Sync26-Dec-07 21:20
Michael Sync26-Dec-07 21:20 
GeneralRe: Windows foms control in Web page. a simple problem when with web pages Pin
ram197426-Dec-07 22:46
ram197426-Dec-07 22:46 
GeneralRe: Windows foms control in Web page. a simple problem when with web pages Pin
Michael Sync26-Dec-07 23:06
Michael Sync26-Dec-07 23:06 
GeneralRe: Windows foms control in Web page. a simple problem when with web pages Pin
ram197427-Dec-07 19:02
ram197427-Dec-07 19:02 
QuestionNeed help with html client controls in asp.net Pin
sumanshakya26-Dec-07 9:56
sumanshakya26-Dec-07 9:56 
GeneralRe: Need help with html client controls in asp.net Pin
ram197426-Dec-07 18:11
ram197426-Dec-07 18:11 
QuestionHow to run exe from JavaScript Pin
rajesh4u24-Dec-07 0:17
rajesh4u24-Dec-07 0:17 
AnswerRe: How to run exe from JavaScript Pin
Manikandan.net25-Dec-07 19:26
Manikandan.net25-Dec-07 19:26 
AnswerRe: How to run exe from JavaScript Pin
Paul Conrad31-Dec-07 10:27
professionalPaul Conrad31-Dec-07 10:27 
QuestionGetting an Array from a Web Server? Pin
gunner_uk200022-Dec-07 6:59
gunner_uk200022-Dec-07 6:59 
AnswerRe: Getting an Array from a Web Server? Pin
Paul Conrad23-Dec-07 14:42
professionalPaul Conrad23-Dec-07 14:42 
QuestionSetting the Date/Time on the server hosting my web service Pin
Skippums21-Dec-07 5:09
Skippums21-Dec-07 5:09 
GeneralRe: Setting the Date/Time on the server hosting my web service Pin
Dave Kreskowiak21-Dec-07 8:34
mveDave Kreskowiak21-Dec-07 8:34 

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.