That works fine with SendKey, but it just requires that focus is on the application.. Which it isnt all the time.. Else it just does a Enter push while i am in another program.. Can I do so it does the ENTER in my application, and not in my current open program?
i've searched a lot around the web to find a Reflection-Sample which is really easy to understand, but i don't find anything.
I want to make an application, which is plugin-based, so i have each plugin in a *.exe or *.dll file. I want to have a list, lets say "List<plugins>" where the specific Plugin-Class from each *.dll file is in.
Has somebody a very simple sample how to do that? I've found only samples where i don't access external DLL-Librarys.
There are plenty of samples lying around this site showing how to create plugin based applications, but I'll give you a quick overview.
Generally, your application will have a plugin directory which will contain the relevant DLLs. What you want to do in your application is find all the DLLs in this directory (you can use DirectoryInfo for this). Then, you'd want to load these into separate app-domains in your application. You might find this[^] post useful.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
I have created the socket using
Socket newsock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
It receives the string from the client but that window closes immediately it gets the string so im not able to see the displayed string in the server...
Please tell me how i can do it...
i have given the code in the previous post
First I tried to implement IDocHostUIHandler interface in my main class and cast IWebBrowser2 to ICustomDoc. Then pass an object, which implemented IDispatch interface, to SetUIHandler. The result - absolute silence (even alert(typeof window.external.myFunction) did not return anything), although method GetExternal got called.
So here are few questions:
What does this exception mean?
Why GetExternal (window.external) does not work ?
Am I on the right track for ActiveX to BHO communication (and vice-versa)?
I'm a newbie on C#. Please help!
My system configuration is:
Windows XP SP3, IE7, .NET 3.5 and I'm using Microsoft Visual C# 2008 Express Edition
If the object in question has a close or dispose method then call that. If not, once it's no longer referenced by any active objects, it will automatically be cleaned up when the garbage collector next runs. You can sometimes help matters by making the instance = null.
Dave BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
yes but some classes needs to be dispose...like Graphics
128 bit encrypted signature, crack if you can
An easy way is to only pass one string that is the full query.
You simply construct it by using variables in C# to read the input and then adding it to the query string.
You might have to add brackets and commas to the query string after the variables have been added.