|
Hi,
from your scenario I would give it high probability the problem occurs in the main thread,
so watch your exceptions (I trust you dont throw them away); you might want to add an
overall try-catch (with a MessageBox.Show(myException.ToString()) in the static Main method.
I prefer this approach over Visual debugging since that might interfere with your scenario
to begin with.
|
|
|
|
|
|
I have a windows form that contains a webbrowser control on it. When the form loads it creates a HTML page with contains some JavaScript. When the control loads the first time I can pass it parms and make it do what ever I want but I want more of an AJAX tool here. So what I need to do is call some of the JavaScript functions within that webpage externaly. I guess I could tie buttons to events and try to find them within the dom and send a button push command but I don't know if that would work either? Any help here would be great. Thanks
|
|
|
|
|
|
Hello everyone,
I am migrating my C++ COM server to managed code (C# COM server). I am using the same client to use the same COM class in COM server. The C++ version COM server works properly, but when using the C# COM server, there is a strange error indicating dll is not installed correctly (data link error).
I have tried to delete the DLL at the same time to test whether the DLL could be found correctly when the client is invoking the DLL, and Windows system reports error message indicating that the DLL is in use -- so I think the DLL should be able to found. Why COM client will report the strange error indicating the DLL is not installed properly (C# COM server)?
Any check list to solve this issue?
thanks in advance,
George
|
|
|
|
|
Have you registered the dll using the RegAsm tool in the .NET SDK?
|
|
|
|
|
Hi Judah,
I think if we select "Register for COM" option, then it should be registered automatically in Windows registry? So, no need to run regasm again?
regards,
George
|
|
|
|
|
Hi All,
Wondering if someone could explain to me how to send a drop event to a different application. The Drag and Drop events allow an application to move objects around in a drag and drop event, but how do you get an application to send a drop event with the list of file(s) to a different application.
My application is .NET 2.0 compatible, the other application is written in delphi. The delphi application is a large complex application and is used throughout the company, the new application has to be able to process a file, convert it to a different file, save it, and then send a drop command with the new filepath to the delphi application which has drag/drop events enabled on its main window.
I'm needing something that will allow me to give it a handle of a window, a list of files and a structure.
Oh last but not least I'm coding in C#.
|
|
|
|
|
Not sure, but this sounds like you need to interop to the raw API call -
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam,lParam);
You can then get the handle of your Dephi window, and send whatever message you like. YOu need to look up the actual message format and structure for WM_DROPFILES message (that was a pure guess at the message name)
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
how can i copy files and folders from a specific location on my computer to a remote pc on my network using c# code and a window form based application
|
|
|
|
|
Make your subject be specific.
don't post it as "urgent Help Required".
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
|
waqas_2k wrote: Re: Urgent Help Required
If it's urgent why are you asking here instead of paying someone to help?
You want a couple of FolderBrowserDialog's and the System.IO namespace.
|
|
|
|
|
originSH wrote: paying someone to help
|
|
|
|
|
Please read the forum guidelines. You have already been mocked once for using 'urgent' in your message titles. So now you are CROSS-POSTING your urgent messages.
READ THE FORUM GUIDELINES.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Every time you do this, I think of the Key Stone Cops come flyin' around the corner, siren blazing, with a bunch of guys, who look like Charlie Chaplin, hanging off the sides of the car!
|
|
|
|
|
Dave Kreskowiak wrote: hanging off the sides of the car
with powerful rifles also?
|
|
|
|
|
Next I plan on taking down every reporter who starts their segment with "Well,"
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Uh oh! Now I'm going to have to watch how I start some of my replies!
|
|
|
|
|
Well, some of them.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
I don't mind the occasional 'well' as I do it myself. But if you watch for it on CNN, your local news, etc. almost every reporter they cut to starts off with "Well Lou/Peter/Katie/Bill" yada yada. Once I started noticing it started to drive me crazy. That and people who do not use well/good correctly or use borrow/lend correctly.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
waqas_2k wrote: Urgent Help Required
Wrong subject. Please read Forum Posting Guidelines first.
|
|
|
|
|
Open filestream, save filestream, close filestream. And no, I'm not going to write it for you.
|
|
|
|
|
How rude putting urgent in your subject line.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi all,
I am creating an website using AJAX, When the user close the browser by clicking the X button in right top, i want to call an javascript function, this function calls an asp.net page using AJAX, In that asp.net page i am doing some database related operations.
My doubt is when i close the browser the asp.net page is called and closed suddenly, I cant able to call the method in that asp.net page.
How to solve this problem, plz any one suggest me.
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|