|
|
Thanks a lot, just what I needed.
Andrei Matei
andreimatei@home.ro
|
|
|
|
|
Hi,
We can use an arraylist of objects as a datasource for a datagrid. We need to have public properties in that object to shown as columns. My question is if we are exposing another type as a public properties how can we show that.
It can be a master detail relation ship.
Cheers,
Venkatraman Kalyanam
Chennai - India
"Being Excellent is not a skill, it is an attitude"
|
|
|
|
|
What's the equivalent of the Win32 API keybd_event (or SendInput ) for .NET?
Thanks,
Alvaro
When birds fly in the right formation, they need only exert half the effort. Even in nature, teamwork results in collective laziness. -- despair.com
|
|
|
|
|
I don't know, but there is no rule that you can't use API's in .NET!
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
I know, but why reinvent the wheel? You'd think that something like this would already be there, somewhere...
Thanks,
Alvaro
When birds fly in the right formation, they need only exert half the effort. Even in nature, teamwork results in collective laziness. -- despair.com
|
|
|
|
|
I had a similar question that I posted a couple of days ago, with mixed results. See thread:
http://www.codeproject.com/script/comments/forums.asp?msg=466571&forumid=1649#xx466571xx
I tried calling keybd_event from C# through an extern declaration, like this:
<br />
[DllImport("User32.dll")] <br />
private unsafe static extern void keybd_event(byte bVk, <br />
byte bScan, <br />
uint dwflags, <br />
ulong* dwExtraInfo);<br />
For me, this works the first time but is flaky after that. I'm not sure why, but it's possible that the last two parameter types are off -- I wasn't exactly sure what to use there.
|
|
|
|
|
|
My digging payed off!!
I found a class called SendKeys class in the System.Windows.Forms namespace. Not the most intuitive name, but hey, it's a lot better than that awful keybd_event.
Regards,
Alvaro
When birds fly in the right formation, they need only exert half the effort. Even in nature, teamwork results in collective laziness. -- despair.com
|
|
|
|
|
cool enjoy
|
|
|
|
|
I had a quick look at the SendKeys class but can you use that to send it remotely, I think that was what you wanted to do. I am also looking for remote components to can control terminals across a tellephone line, I found some cool stuff, but not key strokes or mouse events... Let me know if you need any other stuff...
Leon v Wyk
|
|
|
|
|
Can i use TCL with c#? is there any integration between them like there is in C++?
The whole reason for this is i need to add some form of version managment to my final year software engineering project (and its getting rather late in the day) My plans were to use the Sharp develop CVS library but as there is no documentation for this i cant work out what is happening or what im supposed to do!
So i thought the next best thing might be to use TCL expect so i can easily send and recieve lines to and from the console but its been a while since ive used TCL and its a bit messy so i'd much rather do it all in c#!
Does anyone have any ideas on how i can impliment basic version management in any readily available system (CVS, RCS, etc.) im getting so fedup of trying to get this to work im even debating writing my own version management system but i know there must be one out there that will be fairly quick to get working?
Any help, ideas, or suggestions no matter how small will be greatfully accepted!
Thanks
Tim
|
|
|
|
|
se99ts wrote:
Does anyone have any ideas on how i can impliment basic version management in any readily available system (CVS, RCS, etc.) im getting so fedup of trying to get this to work im even debating writing my own version management system but i know there must be one out there that will be fairly quick to get working?
Why not either use:
1. CVS (free, open source solution) and the command line client,
or
2. Perforce (http://www.perforce.com) with it's integrated tools or command line. It's free for up to 2 users, or totally free for open source solutions.
You'll never get anywhere 'rolling your own' solution.
Jerry Dennany
|
|
|
|
|
I have been weeding through everything I had to do to implement IDocHostUIHandler and now I am at the point where I've succeeded in blowing off the Framework.
I have the fat client form displaying the web control as an mdiChild within its' parent container.
In my first implementation I just put in the webBrowser control and set it to navigate to a website. That worked without a problem.
Now:
I have a form with the webcontrol in it and everything I need to do for implementing the IDocHostUIHandler interface. The form is loading and the web control succeeds in browsing to the site then executing the NavigateComplete method.
In this method I am setting my address so that it is accessible via the javascript code as follows:
<br />
private void showWebPage_NavigateComplete2(object sender, AxSHDocVw.DWebBrowserEvents2_NavigateComplete2Event e)<br />
{<br />
AxSHDocVw.AxWebBrowser wb = (AxSHDocVw.AxWebBrowser)sender;<br />
IHTMLDocument2 hDoc = (IHTMLDocument2)wb.Document;<br />
((ICustomDoc)hDoc).SetUIHandler((IDocHostUIHandler)this);<br />
}<br />
When this is done executing (immediatle after setting hDoc) I get
<br />
An unhandled exception of type 'System.ExecutionEngineException' occurred in system.windows.forms.dll<br />
<br />
<br />
Fatal execution engine error.<br />
<br />
The exception points to the Main() method in my parent that begins the thread for the application.
Any suggestions to even BEGIN to look?
Thanks
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
Have you been lurking around this article[^] ?
Try to build your app with this starting point instead.
|
|
|
|
|
Yup, this was one of the many articles I've read. My code, unfortunately, has ended up being merge of the many pieces of articles and posts I've read. Pulled down the sample app this time and did some comparisons. I found I had two definitions of the interfaces. Killed the second def, got the interface implementation changed to reflect the new source of the interface, and added one include. Voila. I now have it implemented. Now if my second test works well then I can dance in the hallways, kiss the girls, and celebrate!!!
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
Hi
I use Microsoft.Data.Odbc
It's OK but if I want to read a database within large memo fields that ExecuteReader failds
same is in VC++ & MFC but there I can increase the memo reader field in RFX_Text
Who knows how could I read these memos?
Thanks
|
|
|
|
|
Hi All,
Is there any easy way to create a deep copy of an ArrayList? If I use the ='s it seems to create a shallow copy and it's the same deal with the Clone method of the ArrayList. Is there some other function that I can use to create a deep copy?
Thanks again
- monrobot13
|
|
|
|
|
The quickest way, if you don't need top performance, is: serialize it and deserialize it.
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
|
|
|
|
|
Kinda new to C# so could you explain how you serialize and deserialize an ArrayList?
Thanks for the reply.
- monrobot13
|
|
|
|
|
I use C# to develop a web embed application, and I find that using WebClient is very easy to raise a web request and get the response. But I don' know how to set the TIMEOUT property(or something like that) to prolong the request time.
|
|
|
|
|
|
You mean I cann't use WebClient anymore(I have to use WebRequest and WebResponse instead)????
Do you know some resolution that can extend the functionality of WebClient and realize the function I need?
Tnanks.
|
|
|
|
|
Sorry, I thought that WebClient had a way to access the WebRequest that it was using internally - but I was wrong, so maybe you will have to use WebRequest/WebResponse
The only other idea I have is that if you know in advance the URLs you will be accessing you could use WebRequest.RegisterPrefix to register a class of your own (for just the URL you want) that implements the IWebRequestCreate interface, and that class could return an instance of one of the standard WebRequest objects (e.g. an HttpWebRequest) with the timeout set to whatever you want. See the web page I referenced in my previous answer for more details. However, I must stress that I haven't tried this, and it's based only on my understanding of the information on the www.dotgnu.org website.
Good luck!
Chris Jobson
|
|
|
|
|
Hello All,
I am trying to do this:
using System.Web.Mail;
and Visual Studio tells me that:
The type or namespace name 'Mail' does not exist in the class or namespace 'System.Web' (are you missing an assembly reference?)
What am I missing here?
Thanks!
Ed
|
|
|
|