You should've told me about this earlier.
I'm a programmer in this company and nothing much to do.
I won't and not going to do something useless for them if they didn't ask.
This application is what they want, not me.
I'm angry because I can't fullfill what they want.
Sorry for misunderstanding.
Oh ya, I didn't log their key, I only count how many times they typed.
Yes. You'll need to inform the victim that he/she is being monitored, otherwise you're in a heap o' legal trouble.
Second, it's bad advertisement; I would never work for someone who does not trust me. That's non-negotiable, there's no "working together" without trust.
Midnight Ahri wrote:
I'm going to join this keylogging into my chatting application so my friend chat less and work much more.
What you consider "idle chatting" might be valuable research my friend.
Who ask you about difference between working and screwing around?
I only want to know how to hook keyboard press in a windows form even after it's minimized or not focused.
Look, I managed to solve my own problem.
I ask here nicely to get some help so I can finish this faster.
This is what I called (solution) even it's not what I want, I appreciate it.
Abhinav S wrote:
Handling the forms keydown event would give you a count of key strokes within the application.
Dave, I believe you know how to do this.
But I don't know why everytime you respond my question, always something weird like your question above.
I tried to learn, not "gimme code to hook keyboard press please thank you email me bla bla".
Next time if you're not going to give me some help, then please find another question to answer.
It is only an option, but...
You may need to create a third dataset which the relationship itself is defined, and feed it with the information you get from these two webservices.
After that, you still can iterate through this third dataset to fill your gridview.
How do you define "more useful"? There are many reasons why you would choose one over the other but it will depend on the problem you are trying to solve and the skill levels and experience of your developers.
One of these days I'm going to think of a really clever signature.
Windows Form is now "dated" and is not expected to get a lot of support from MS.
WPF was considered to be the replacement.
Metro apps and Xaml based programming may be the future.
So your question is quite tricky.
Building a WPF will help you learn xaml programming which could help you developing Metro apps as well - so I guess WPF might just be better.
I created a new account on the remote server and gave it Admin priviledges.
I am trying to execute an exe using this new account and it comes back with Access is Denied.
Is this something to do with this newly created account?
Thanks so much!
You get Access Denied because the account your code is running under does not have permissions to the remote machine. By default, if you don't specify any account information in the Management connection objects, it'll use the account your code is running under. If that account doesn't have permissions on the remote machine, it'll fail.
On the Oracle DB there's a stored proc defined like:
PROCEDURE pGetHashes ( iFrom IN NUMBER, iTo IN NUMBER, sHash1 OUT CHAR, sHash2 OUT CHAR );
When I call this procedure from within my app, I only get a value for the sHash2 parameter. The value of the sHash1 parameter is always null. (Running the same stored proc from sqldeveloper gives a result for both hash values.)
Underneath I have added the code which I use to call the stored proc. Does anybody see anything I might have done wrong?
int iFrom = 0;
int iTo = 1000;
using (IDbCommand command = dbConnection.CreateCommand())
OracleCommand orclCommand = command as OracleCommand;
orclCommand.CommandText = "pGetHashes";
orclCommand.CommandType = CommandType.StoredProcedure;
orclCommand.Parameters.Add("iFrom", OracleDbType.Int32, iFrom, ParameterDirection.Input);
orclCommand.Parameters.Add("iTo", OracleDbType.Int32, iTo, ParameterDirection.Input);
OracleParameter orclParam = new OracleParameter("sHash1", OracleDbType.Char, 100);
orclParam.Direction = ParameterDirection.Output;
orclParam = new OracleParameter("sHash2", OracleDbType.Char, 100);
orclParam.Direction = ParameterDirection.Output;
orclCommand.BindByName = true;
// after this the orclCommand.Parameters["sHash1"].Value is always null.
// the orclCommand.Parameters["sHash2"].Value has the correct value.
For extra documentation. Running the following PLSQL from within sqldeveloper results in both a value for Hash1 and Hash2:
SET SERVEROUTPUT ON;
nFrom NUMBER := 0;
nTo NUMBER := 1000;
pGetHashes( nFrom, nTo, sHash1, sHash2 );
dbms_output.put_line('Hash1: '|| sHash1);
dbms_output.put_line('Hash2: '|| sHash2);
Thanks for any light you can shed on this problem.
My application works well on Vista, Win 7 32 and 64 bits.
It modifies some registry key in HKEY_LOCAL_MACHINE.
But when run on Win 8 (both 32 and 64), with minimum level UAC (I drag the slider to bottom, then restart), it doesn't work. And there is the error:
"Application attempted to perform an operation not allowed by the security policy. To grant this application the required permission, contact your system administrator, or use the Microsoft .NET Framework Configuration tool. Requested registry access is not allowed."
When I disable completely UAC of win 8 by editing registry, then restart computer, my application works well.
How can I deal with win 8 UAC enable with c#?
Thank you very much.
If I run regedit on Windows 7 then it runs with elevated priviledges which causes a UAC dialog to pop.
I find it unlikely that your application is doing nothing and yet is allowed total access to the registry on Windows 7. Do you have UAC enabled on your Windows 7 test box? Are you only editing some user data and as such the app might have access? Or perhaps are you installing it on Windows 7 (installing does seem to provide certain priviledges)? Also are you sure that the user for windows 7 and that for 8 both have the same priviledges?
My application works well on win 7 (32/64) with UAC enabled, it requires to run as Administrator.
But when run this application as Administrator on win 8 (my user is in Administrators group), it gave me the error above. It just runs well when I disable UAC by registry editing.
You might be trying to modify TrustedInstaller keys. TrustedInstaller is a special user that has power beyond that of Administrator(s). You will need to take ownership of the key in order to work around that (completely ruining the security on your user's machine). If you need to change keys owned by TrustedInstaller you are doing something very very wrong.
If you are not trying to modify TrustedInstaller-owned keys you probably need to indicate which permissions you want when you open the key:
using (var key = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Foo\\Bar", RegistryKeyPermissionCheck.ReadWriteSubTree))
// .. or ..
using (var key = Registry.LocalMachine.CreateSubKey("SOFTWARE\\Foo\\Bar", RegistryKeyPermissionCheck.ReadWriteSubTree))
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Chinese Proverb]
Jonathan C Dickinson (C# Software Engineer)
I am currently a student in TYBSC(IT) so I had a query that in C# windows form If for example a clientname combobox is there and on selecting the client Name in the combobox the 2 text boxes clientAddress and ClientNumber should be retrieved from the database and get filled in the textboxes.
Sir please help me in my project my mailing me a demo program so that I can Find A Solution to It.
Please Sir and as sson as possible as jan end is ma submission date
publicpartialclass Form1 : Form
string Id = "";
string Address = "";
privatevoid Form1_Load(object sender, EventArgs e)
// TODO: This line of code loads data into the 'database1DataSet1.Test' table. You can move, or remove it, as needed.
privatevoid comboBox1_SelectedIndexChanged(object sender, EventArgs e)
string SelectedId = Convert.ToString(comboBox1.SelectedValue);
if (Convert.ToString(comboBox1.SelectedValue) != "")
database1DataSet1.DataSource = Database1DataSet1TableAdapters.GetData(int.Parse(SelectedId));
var Id = from r in testTableAdapter.GetData()
where r["Id"].ToString() == SelectedId
var Address = from r in testTableAdapter.GetData()
where r["ProductId"].ToString() == SelectedId
foreach (var unit in Id)
Id = id.ToString();
foreach (var measure in Name)
ProductMeasure = measure.ToString();
textBox1.Text = Id;
Hello everyone! I would like to know how I can read metadata of exported types using the Managed Extensibility Framework. I am using Visual Studio 2008 with .Net Framework 3.5.
In .Net Framework 4.0, this can be achieved through type 'Lazy' but this is not available in .Net Framework 3.5.
Since 'ExportMetadata' was provided in the version of MEF provided for .Net Framework 3.5, I do believe there is a way of reading the metadata in the framework 3.5 but I don't know how this is done. Any guidance, please?
For each solution I have created, I have been adding the installing NLog for each of the solution. It is adds the NLog.config file.
Since I have different solutions, it is always adding the file as Nlog.config.
can I change this name, and give it a name specific to the solution? change the Nlog.config to SolutionA_Nlog.config?
can I change this name, and give it a name specific to the solution
I believe so but why would you do that?
Presumably by "solution" you mean deliverable executable. If so each should be installed into their own directory and have their own log file. And so the same name is probably better.
Awesome! I like the idea of creating each exe having its own directory.
And yes, by solution I did mean executables.
You see we currently have something set up, where everyone copies their executables at the root of the folder. No structure what so ever!!
seriously!!. it's not a good idea to refer a file from a shared path. your application will fail if you try to deply/run in other PC.
btw what's you real problem? and what is the role of the referring dll??
as per jibesh - it doesnt sound like a good idea .. the most stable ways I can think of are
a) get a copy of the dll for your dev machine - transfer by usb/email/carrier pidgeon
b) map a permanent share to the machine where the dll is and reference the dll on the path
Unless you're back in the good old days of c++ rpc, there's no way to request dll type services over the net (and even then, rpc requires/required a mapping and comms layer to do so)
Last Visit: 31-Dec-99 18:00 Last Update: 4-Aug-15 6:54