|
Spacix
One wrote: I mean why do people do these things
I know that one. Because, clowns to the left of me monkeys to the right, here I am stuck in the middle with you.
led mike
|
|
|
|
|
if(B<sup>2</sup>||~(B<sup>2</sup>))
{
:rose:
}
else
{
X|
}
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
Hello Everyone,
I am attempting to set up WatiN in VS 2008 using NUnit (v. 2.4.7.0) as a driver. My target Framework is .Net 2.0. At this point, my code is very simple:
using System;
using NUnit.Framework;
using WatiN.Core;
namespace WatiNNUnitDemo
{
[TestFixture]
public class WatiNNunit
{
[Test]
[STAThread]
public void WatiNTest()
{
IE ie = new IE("http://www.google.com");
}
}
}
When I attempt to run this I get the following error:
System.IO.FileLoadException: Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, LogonDialogHandler logonDialogHandler, Boolean createInNewProcess)
at WatiN.Core.IE..ctor(String url)
at WatiNNUnitDemo.WatiNNunit.WatiNTest() in WatiNNunit.cs: line 14
I have already added a StrongNameKey to the file in question. In fact, if I go to the properties for the Interop.SHDocVw reference, the 'Strong Name' property is set to true. I'm not sure if this is an NUnit or a VS issue. Just a note, I have created a config file for the threading issue. Has anyone else experienced this and have you came up with any possible solutions? I'm pretty much lost, and any input would be greatly appreciated.
Thanks,
-Drew
|
|
|
|
|
Hi Guys,
I'm using the Exception Handling application block to log exceptions to a file, and when the log is ready to submit, it will post it over the wire and delete the file.
Unfortunately, the Exception Handling block does not release the file until the application is closed, so i can't open to send, or delete it as i get a "File Already Open" IO exception.
Any ideas how to close the file in the logging block?
cheers
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
modified on Tuesday, May 6, 2008 11:50 AM
|
|
|
|
|
I'm guessing that the trace listener that you're using is keeping the file open for performance reasons. You can create your own trace listener that does it the way you want. But, why don't you just use the MsmqTraceListener instead?
|
|
|
|
|
Can i use it to append to a log file? Looks like a lot of unescessary work when all i want is a flat file.
I can't seem to get a handle on the writer to close it without disposing it. Any ideas?
As a note, this is a client application that works in disconnected mode, so i need to store the log for transmittion if it's not connected, and transmit when the application is closed and connected.
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Hi guys,
I need capture IEs stop button in my BHO. I have not found any event that I could use.
Can you help me? Or some link.
Thanks
spacer
|
|
|
|
|
I seem to remember that the stop message is a command sent through the message pump. Open IE, capture, and then look for it in Spy++ window messages (I don't have the time to do it for you right now)
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
you can use progressChanged event (if Progress = -1)
but this event is fired both on stopping navigation and on downloadcompeleted
Houssem.
|
|
|
|
|
Hello
I am wondering if anybody can please help me with the following;
1) How do I attach a signature to a outbound e - mail message using for instance the System.Web.Mail namespace? Should I use another namespace? There does not appear to be a member with which one can accomplish this in the above - mentioned namespace.
Thanking you in advance
ChristiaanS
ChristiaanS
|
|
|
|
|
What do you mean by "add a signature"?? Are you talking about a digital signature that ID's the sender or are you talking about the signature that is at the bottom of an email message, like the signatures at the bottom of most post here on CP??
|
|
|
|
|
|
ChristiaanS wrote: 1) By signature, I meant the signature that you find at the bottom of an e - mail message for instance.
Great. This makes it so much easier...
ChristiaanS wrote: 2) ... I am sure that by the process of elimination I would find an object capable of doing what I need, but as stated previously;
Wrong. There's no such field in an email message. A signature is just a block of text that the email client automatically appends to the body of the message so you don't have to type the signature every time you write an email. You won't find what you're looking for in any email classes.
|
|
|
|
|
If you are talking about signatures that appear at the bottom of every emails (like salutations/advertisements), then that is just more stuff to include in the body of the email message.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
string mySig = "-= Reelix =-";<br />
Mail.Body += "\n\n" + mySig;
-= Reelix =-
|
|
|
|
|
I got a situation an want to solve it if any body have any idea then pleas share it with me. The situation is below
I have two panels panel1 and panel2 in panel1 i have number of buttons and in panel2 i have one list view in which some file are shown.
The thing i want to do when i press any button from panel1 and drag at to panel2 when i drag it any file in pane2 according to the button which i drag some work should have to be done one the file on which i drag the button.
I tried it by many ways but not succeed because when i press my mouse on any button and going drag to list view i can not got Focus of list view and can not get the location on which file the drag is over.
Help me out and thanks in advance.
modified on Tuesday, May 6, 2008 11:27 AM
|
|
|
|
|
It has been awhile since I coded any drag-and-drop events but there are things you must do to have it happen correctly. I believe the issue goes beyond getting focus for your listview.
Panel1 I believe must be set to that you catch the beginning of the drag event.
From the event you can review what object is being chosen and approve or deny it.
If approved you must then put that object (or representative of it) in the clipboard.
Now in Panel2 -or- in your ListView you need to capture the dragover(?) or dragenter(?) event. Basically it is raised any time an item is dragged over it. If you do not catch this event then you will never be allowed to drop anything.
In the event handler you would then interrogate the clipboard to determine if the object type is what you would allow..and if so return the indicator in the event args that you will accept the object.
Finally your drop event either in Panel2 or your ListView (your broken english was readable but not clear as to whether you are dropping in the second panel or your listview). When you get the event, you can then
1) pull the object from the clipboard
2) get out of it the items/files/work you need to get out of it
3) do your population
Hope this helps. I'd suggest you google Coding Drag And Drop to see if you can find more details that can help you solve your problem. You will especially need it when adding the object to the clipboard. I remember havin one object that I could not add and don't remember the attributes that had to be added to make it addable.
|
|
|
|
|
I want to make the mouse move over a button and click without the user touching it. How can I code this?
Thanks in advance.
|
|
|
|
|
You would need to use windows API wrapper
Here is what I did recently
private const UInt32 MOUSEEVENTF_LEFTDOWN = 0x0002;
private const UInt32 MOUSEEVENTF_LEFTUP = 0x0004;
[DllImport("user32.dll")]
private static extern void mouse_event(
UInt32 dwFlags, // motion and click options
UInt32 dx, // horizontal position or change
UInt32 dy, // vertical position or change
UInt32 dwData, // wheel movement
IntPtr dwExtraInfo // application-defined information
);
public static void SendClick(Point location)
{
Point prevPosition = Cursor.Position;
Cursor.Position = location;
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, new System.IntPtr());
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, new System.IntPtr());
Cursor.Position = prevPosition;
}
Roman
|
|
|
|
|
ok thanks ill give it a try.
|
|
|
|
|
Wow!
Just a few changes needed though...
mouse_event(MOUSEEVENTF_LEFTDOWN, Convert.ToUInt32(location.X), Convert.ToUInt32(location.Y), 0, new System.IntPtr());<br />
mouse_event(MOUSEEVENTF_LEFTUP, Convert.ToUInt32(location.X), Convert.ToUInt32(location.Y), 0, new System.IntPtr());
Mightily Impressive though Roman
-= Reelix =-
|
|
|
|
|
hmm interesting, I see that there must be a location of the click?
|
|
|
|
|
That Asian Guy wrote: hmm interesting, I see that there must be a location of the click?
public static void SendClick()
{
Point curPos = Cursor.Position;
mouse_event(MOUSEEVENTF_LEFTDOWN, Convert.ToUInt32(curPos.X), Convert.ToUInt32(curPos.Y), 0, new System.IntPtr());
mouse_event(MOUSEEVENTF_LEFTUP, Convert.ToUInt32(curPos.X), Convert.ToUInt32(curPos.Y), 0, new System.IntPtr());
}
Better?
-= Reelix =-
|
|
|
|
|
Call the mouse Click event in the Mouse hover event
|
|
|
|
|
Hi,
AFAIK you can move the mouse pointer with the Cursor.Position property.
and you can simulate a button click with the Button.PerformClick() method (there is
no need to move the mouse for that to work!)
|
|
|
|