Encrypt the password in the settings file - as Harold said you can't stop a REALLY determined hacker, but then you aren't interested in a really determined hacker, your customers are only mildly curious about the data in THEIR database and an encrypted password will do 2 things. Supply a reasonable level of security against the power user and assure your customer that you take security seriously.
Remember the customer is, well your customer and it is his perceptions you need to cater for.
Never underestimate the power of human stupidity
As per my requirement, while displaying date (i.e audit column) in datagrid is coming fine but same column while displaying in excel formate it is displaying as "2008-07-08" unable to get this (2008-07-08 20:24:14) formate i am using the following code
Hell c# gurus , I am new to C# and im have a general question about c#
I have a datagrid , a text file full of urls and a string . Now the string is actuly the live data output of a program .
Ive already have written the code to import the entire text file into my data grid , What i would like to do is while importing the urls in the foreach loop check the value of s and see if it occurs anywhere in the live output string the value of the string t changes to pending .
Is there anyway to do this ?
conststring fName = @"1.txt";
string lines = File.ReadAllLines(fName);
List<string> fields = new List<string>();
foreach (string s in lines)
int n = dataGridView1.Rows.Add();
dataGridView1.Rows[n].Cells.Value = s;
dataGridView1.Rows[n].Cells.Value = t;
Where does t come from ? If you create a class to contain s and t, then populate a list of them, you can make that the data source of your grid.
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
I want to get rid of the System.Threading.Thread.Sleep(); functions because they are a major source of exceptions in the program . Is there anyway to solve this problem without System.Threading.Thread.Sleep() and withut sucking up all the CPU time ?