|
Hi there,
I'm not writing spyware, promise! I actually want to write a program that will notice whenever the user's query is filtered (by the firewall content filtering), and send an email to the IT department asking them to unblock it politely. Everyone hates the filter, and this seems like an effective protest . Anyway, that's not what matters.
My program requires the ability to monitor the user's browser---preferably Firefox and IE, but most school computers use IE, so that would be fine. I would imagine there's a way to hook into the window object, and find the sub-"window" that represents the location bar and get its text. Yes? I think I've seen this kind of thing done in C++, but I much prefer C# if possible... I just have no idea where to start. Googling was unhelpful; I can't seem to come up with good keywords.
Thanks!
-Domenic Denicola- [CPUA 0x1337]
|
|
|
|
|
Do you really think that spamming the IT department will change the filtering policy? Don't you think that it rather will affect the ability to send mail from programs, or the ability to install programs on the computers?
---
b { font-weight: normal; }
|
|
|
|
|
Hello.
I need to reomve all events from an event:
let's say i have a Button event:
this.button1.Click += new System.EventHandler(this.button1_Click);
Than the Button moved to another class and i need to remove all events From the "Click" event.
I tried
button1.Click = null; // Remove All events (Microsoft MSDN...)
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp04192001.asp[^])
error :
The event 'System.Windows.Forms.Control.Click' can only appear on the left hand side of += or -=
I can't use: button1.Click -= this.button1_Click;
The new class does not have the "button1_Click" reference.
Im using VS 2005.
|
|
|
|
|
foreach (Delegate del in button1.Click.GetInvocationList()) {
button1.Click-=new EventHandler(del);
}
This should work; just haven't tested it yet!
Graham
|
|
|
|
|
It does not work.
i still get the same error.
|
|
|
|
|
why do u need to do like this
button1.Click = null; // Remove All events (Microsoft MSDN...)
Instead simply delete all the lines which add the click events to the button
|
|
|
|
|
Hi
I need some help in how to add an application that do encryption of AES or DES or RSA doesn't matter becuase I have the code , but I don't know how to link this code to outlook so when the sender whant to send the email and he click on encrypt check box the email will be encrypted when it is send to the receiever .... so when the email travle from network A to network B it will be encrypted.
Thanks
|
|
|
|
|
Hello. Is it possible in C# to retrieve the Device Instance Id of all connected USB devices? I've tried USBSharpLib but it doesn't do what I need.
My ultimate goal is to detect a specific USB Camera and save files on the SD card inside. I've tried listing the logical drives, WIA, TWAIN and some (not all) of the WMI code snippets found on MSDN. The reason is, I need to make sure that data is being sent to the SD card. The camera does not show up as a logical drive. When I plug it in and go to "My Computer" it shows up at bottom with just the name of the camera. It also shows up under the Device Manager --> Imaging devices and I can get the Device Instance Id from there.
I need a way to do the above programmatically. I must also mention that I can't drag and drop files onto the camera when I double-click it under "My Computer". Any help or further resources or source code would be greatly appreciated. I have been trying for weeks to accomplish this.
Mike
|
|
|
|
|
How can we use a project developed in VC++ in our C# program plzzz reply in detail ...
looking forward for help
Regards,
|
|
|
|
|
|
Rizwan Rathore wrote: plzzz reply in detail
please post in detail...
Rizwan Rathore wrote: a project developed in VC++
What sort of project in VC++?
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
well i m developing a text mining engine in C# and i ve found a utility developed in VC++ that creates the inverted index from the given dataset so i want to use this code in my prgram the project is not developed in VC dot net its developed in VS
Regards,
|
|
|
|
|
Rizwan Rathore wrote: i ve found a utility developed in VC++
Rizwan Rathore wrote: so i want to use this code in my prgram
So you have the source code? a library? an application? You are still not being specific.
Rizwan Rathore wrote: is not developed in VC dot net its developed in VS
Visual C++ .NET is in Visual Studio. If "VS" does not mean "Visual Studio" I don't know what it means. You really need to be more specific.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
Hi Sir, I have sent u the project via email at ur email address
Regards,
|
|
|
|
|
Can we run C# DotNet Exe file on a system where Dot Net is not installed?? if yes then how wat files we need to embed...
and if No then is there anyother solution for that
Looking forward for help
Regards,
|
|
|
|
|
You can't.
THere's at least one, for pay program that will staticly link your executable and the framework, but there's nothing free to do so.
|
|
|
|
|
|
|
Wow! All I saw was a high value scrabble score.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Hi,
i created a class "Rect" that contains information about a Recatngle (Point X, Point Y, Pen pen, Brush brush....).
and when i tried to serialize an object of this class to binary file i got an Exception that this object couldn't be serialized!
-------
An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll
Additional information: The type System.Drawing.Pen in Assembly System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a is not marked as serializable.
--------
how could this object be serialzed?
also i got the same problem with System.Drawing.Brush!
thanx in advance!!
Khaleek Coool
|
|
|
|
|
Why do you want to serialize these classes? Why not just save the pertinent information such as color, pen with, etc. in your class data. When you deserialize the class, re-create the Pen, Brush, etc. from this information.
Deus caritas est
|
|
|
|
|
thanx but i have many other objects to be saved in binary file, one of these objects is rectangle for example which contains Pen and Brush objects, so when i tried to save the rectangle the exception above came up.
but how to do this? to save only the properties i need in binary without serialize the object?
any sample code please?
|
|
|
|
|
Normally you could just apply the Serializable attribute to your class:
[Serializable]
public class MyClass { ... }
Brush and its deriving classes aren't marked serializable so you have to save their properties manually (as Andy already suggested).
|
|
|
|
|
How do I connect to a remote Access database?
I typically connect to an NT server using TerminalServices and entering an IP address.
Once connected I login in using a user ID and password, then navigate to the Access DB.
I want to view the database instead, using a C# program.
(we don't have MS Access installed at the remote location, therefore I can't open it to view)
Given the connection string provided for Access databases:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;User Id=admin;Password=;"
Where would you place the IP address? Do you also need a port#?
jwittwe
|
|
|
|
|
I tryed to do it with a local program to server-database, doesn't work... not now and I guess not ever...
the only way to do this is to put a webservice on the server...
check your books or some articles about that.
|
|
|
|