|
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with - we get no other context for your project.
Imagine this: you go for a drive in the country, but you have a problem with the car. You call the garage, say "it broke" and turn off your phone. How long will you be waiting before the garage arrives with the right bits and tools to fix the car given they don't know what make or model it is, who you are, what happened when it all went wrong, or even where you are?
That's what you've done here. So stop typing as little as possible and try explaining things to people who have no way to access your project!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I have a keylogger functionality windows application that captures every keystrokes
But I doesn't know how to capture particular html input control type
How can I do
|
|
|
|
|
Keyloggers are almost always used for malicious purposes. Nobody here will help you build malware.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Particularly when they want to access "Input Controls value of any website" ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
It sounds like you're trying to capture user passwords as they type them. You can right off with that.
|
|
|
|
|
I does not want to store password but i want to detect so that I can restrict that.
|
|
|
|
|
"Restrict that"? What on earth does that mean?
|
|
|
|
|
Means does not allow to store password
|
|
|
|
|
Means what again? "WHAT" is not allowed to store the password?
You better start typing a lot more detail into every answer you give. All you're doing is generating more questions and more confusion because nobody can get a straight up description of PRECISELY what you're trying to do.
|
|
|
|
|
Dave your interpretation skills are lacking today...
He is trying to capture passwords so he can store them and restrict the user from storing them (ie stop all those helpful browsers from capturing the passwords) although the second step is optional
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Hello,
I filled up a DataGridView from a csv file using the code as follow:
Everything works and at the start I can see my DataGridView correctly filled up by datas from csv file.
The problem is that I am not able to filter the rows by textbox or sort the column by clicking on header word.
I tried differents ways by reading solution on the web but nothings works...
can anyone suggest me some solution for this pls?
private void LoadDatabaseBtn_Click(object sender, EventArgs e)
{
string filecsv = @"D:\Database.csv";
DGV.DataSource = LoadCSV(filecsv);
DGV.Refresh();
}
public List<Client> LoadCSV(string csvfile)
{
var query = from l in File.ReadAllLines(csvfile)
let data = l.Split(',')
select new Client
{
name= data[0],
id = data[1],
tel = data[2],
addr = data[3],
city = data[4],
};
return query.ToList();
}
}
public class Client
{
public string name { get; set; }
public string id { get; set; }
public string tel { get; set; }
public string addr { get; set; }
public string city { get; set; }
}
I have an identical database .mdf, in this case I added a DataSets to my c# project and I fill up my DataGridView just by setting the ClientsTableBindingSouce as source of data
In this case I am able to sort and filter very easly the rows of the datagridview at runtime just by typing text in a textbox.
private void filternameTxt_TextChanged(object sender, EventArgs e)
{
ClientsTableBindingSource.Filter = string.Format("name LIKE '%{0}%'", filternameTxt_Text);
DGV.Refresh();
}
|
|
|
|
|
|
many thanks that s works!
I have just a last problem to fix
I have a second datagridview who is connected directly with the main database.mdf using a dataset.
I add my records to my database.mdf by using a DataGridView.
I add a row to my DGV so I click enter and so I use a "saveclick button" that I programmed to update the dataset.
The problem is that the dataset is correctly updated only if I click enter on keyboard after that I finish to insert values on the cells of the row.
If for some reasons I click my "save" button without click enter before, I lose all the datas of the rows.
So clicking enter do a sort of "row validation" that I am not able to reproduce programmatically
I tried to use SendKeys.Send("{ENTER}") but it doesent works.
How can I "validate" my row insertion programmatically in order to save correctly it on database mdf
I want do this because sometimes the user forgot to click enter before to click on "save" button and in this case the row is not taken into account and is not saved on .mdf file
|
|
|
|
|
Without seeing the actual code it is impossible to guess what needs to be done.
|
|
|
|
|
Hello Richard, I dont know if my code can be helpfull for this, btw
At runtime the user can use normally a DataGridView by filling cells with some datas.
When user write datas on a row, it is visible on the left a little pensil who inform us that we are in edit mode.
After that the user ends to write datas he should click on enter on keyboard. The enter key event do somethings (as ending edit mode, go to the next row...) that I dont understand but who is needed to "save" the row as new datas in the DataGridView.
I use the following code to export DataGridView into database.mdf file, but at runtime, an added row in DataGridView is taken into account and correctly exported to MyDatabase.mdf only if I click enter key to "validate" the datas of the row that I wrote.
sometimes I forget to click enter (the little pensil image is still shown on the left of the row when I am typing) and the following code doesent export this row on MyDatabase.mdf
I would like to wrote some code here, for "validate" programmatically the new row on the datagridview in order that it is correctly exported on the MyDatabase.mdf file even when the user forget to click enter key
private void SaveToMyDatabaseBtn_Click(object sender, EventArgs e)
{
ClientsTableAdapter.Update(dataSet.ClientsTable);
}
many thanks
|
|
|
|
|
|
Hello,
EndEdit Event Occurs when edit mode stops for the currently selected cell.
for my pourpose maybe I need to invoke manually a Cell End Edit Event? is it correct?
I want that my database is saved even if user forget to click enter who should perform an endedit...
|
|
|
|
|
I am not sure how that would help. You need to look at all the possible events in order to find out which one(s) will help you to capture the data correctly.
|
|
|
|
|
I've wasted a lot of time on that, because management. You doing it wrong.
The correct idea is a button to save. To click it means shifting focus and thus end edit.
It's not an in place edit that is saved. Yes, Google does if you edit, but WinForm is not Google and the behavior is correct. This is how the world expects a grid. Either you end your edit or the content is lost.
That is consistent behavior, across our UI. Teach your customers, instead of wasting time on non-normal behavior imagined by senile managers. Windows isn't wrong, that's default, and any other behavior is confusing.
If you truly feel you need to end the edit, you in the wrong field. Go sell hamburgers, you'll be happier than coding against Windows For the moment, you are asking for non standard mechanics. Feel free to write your own grid; we did at a company we shall not name; if you have more money than knowledge then just do as management asks.
Keep in mind that the UI has been tested on "a few" users. If yours acts different, then you need money to teach your users the difference. That in itself should explain you on the wrong path.
Whoever made that requirement should not be involved in the UI process, until they actually understand the UI guidelines (from MS). Your input on how things look and "should" behave, should be ignored, completely and utterly. It's wasting money while education on the subject is free.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I dont know if I understand what you mean. Actually I had a save button as you says. I'm not tgrying to do a sort of auto saving anytime user change the text.
Actually the user have to do 2 operations in order to save a row: click on enter and then click on my save button. I just was trying to eliminate the first step (the enter click who should be included into my save button)
many many thnaks for suggestion
|
|
|
|
|
someone have an exemple of code for validate automatically a row in a datagridview without force the user to click enter key?
|
|
|
|
|
hi all
i am using directshow lib to capture web cam in my application
all is gud capture image is ok
but the webcam video screen not display properly
i pass icture control handle of form to diaply webcam on my form
Rectangle rc = hControl.ClientRectangle;
ivw.SetWindowPosition(rc.X, rc.Y, rc.Width , rc.Height);
please help me for this.
thank
|
|
|
|
|
We can't tell - we have no access to the rest of your code, or any idea what is actually happening because we just can't see your screen!
But at a guess, it's because you are expecting the coordinates of the ClientRectangle to be directly usable in a different control, and that may not be the case - it'll depend on a huge number of factors including whatever the IVideoWindows interface is doing with the data when you call it's SetWindowPosition method. Chances are that's in absolute terms (so desktop coordinate based) while the ClientRectange returns a position based on the control container.
Use the debugger to see exactly what you are getting, and compare that with the actual position your video is being shown at.
Sorry, but we can't do any of that for you!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hi
I'm trying to create a "FinalDocument" list from another list "OriginDocument"
The problem is that the "FinalDocument" does not have the correct Client Code.
So I want to get this Client Code from a third List "clients", for that I use the "TaxClienteID" field
It would be something like this:
List<FinalDocument> finalDocument = originDocument.Select(p => new FinalDocument()
{
documentcode = p.documentcode,
date = p.date,
...
codcliente = clients.codcliente where (TaxClienteID = clients.TaxClienteID)
})
I'm not getting it, the best I could get was with this:
List<FinalDocument> finalDocument = originDocument.Select(p => new FinalDocument()
{
documentcode = p.documentcode,
date = p.date,
...
clientcod = clients.Select(j => j.clientcod).Where(u => clients.Select(c => c.TaxClienteID.ToString()).Contains(p.TaxClienteID)).ToString()
}
But I get this in the customer clientcod field:
"System.Linq.Enumerable+WhereEnumerableIterator`1[System.String]"
and I don't know how to extract the value.
I'm sure there is a much simpler way, but I can't find it.
someone can help me?
|
|
|
|
|
Try something like
codcliente = clients.FirstOrDefault (c => p.TaxClienteID == c.TaxClienteID).clientcod
Can't guarantee it, I have no idea of your classes or the interactions between them ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|