|
i am retriving d values in dataset from text file and i want to copy dataset values in d table,.n there was no any error in above code.
|
|
|
|
|
Are you certain about the connection string and there is data in the source datatable ?!
Sincerely Samer Abu Rabie
Imagination is more important than knowledge !
|
|
|
|
|
ya.my connection is ok.passing accurate connection string.and dataset gives data also.i checked using datareader.
tell me how to bind datasource to table.i have same schema table in my database.
|
|
|
|
|
Hi all
How do i delete a temporary html file if i store a html file in
C:\temp
or my html file is: testing.html
How do i delete it ?
Thank You
|
|
|
|
|
You can use File.Delete method: [^]
Nuri
|
|
|
|
|
string path = @"c:\temp\testing.html";
File.Delete(path);
Thanks,
A.m.a.L
|
|
|
|
|
Hi,
I need to write a program that sendes some keystrokes, strings and other values to another application.
I look for an article/tutorial for that goal.
|
|
|
|
|
Here is an article for sending keystokes: [^]
Nuri
|
|
|
|
|
10x..
I have 2 more questions:
1. I think I will have to use the spy++ tool. Where can I find the ttol and a tutorial of for it?
2. Is it possible to send keystorkes to websites?
|
|
|
|
|
Use a webbrowser control and load the webpage inside it.
Thanks,
A.m.a.L
|
|
|
|
|
Hi Guys
Here's the description of the licensing component I've created: -
1. I created a pair of asymmetric keys using RSA algorithm. I embeded the "public key" into the code and kept the "private key" securely with me.
2. Now, when a user tries to run the program, the program looks into registry for a valid license string. If not found, it does the following: -
a. It pulls out a string comprising of the MAC-ID and CPU-ID and hashes it using MD5 algorithms.
b. The above hash is sent back to me by the user.
c. I sign this hash using my private key, and add the start-date and end-date for the license period, and create a license string for the user. This I send back to the user and he enters this into the program.
d. The program, now verifies the signature of this license using the public key. If successful, it matches the MAC-ID and CPU-ID to make sure that the license is intended for this very computer hardware. it then saves this license key into registry to perform the license validation everytime the program is run.
It all works fine, except the following - Let's say I've provided the license for the period between 01 Jan 2009 to 31 Dec 2009. The license is valid as long as the local date on computer of the user is within this range. This means the user can change the date and keep running the program even if the license period expires. I know this is a standard problem, and I also hope this must have been solved. All I'm looking forward is to fix this.
Pls suggest.
Sunny
|
|
|
|
|
Hi!
Either you contact an internet time server to find out the correct time or you save the last time your application was used somewhere on the user's computer (using a symmetric encryption) and compare the current (local) time to this value to find out whether tha local time has been modified.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
mav.northwind wrote: contact an internet time server to find out the correct time
As a legitimate user, that annoys the hell out of me. My internet connection gets very flaky when it rains (should be fixed in next few months tho) and being unable to use software I have paid for because of events outside my control is REALlY irritating, and I tend to go elsewaher at the first oportunity. If you are going to do something like this, let your users know (in large letters) before they pay for it.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
The current date is so integral to most systems that I could not imagine anyone changing the clock back just to run some SW, maybe for for trial periods but not for any length of time.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Or on a dedicated system. Maybe even wipe it and reinstall periodically.
What about a virtual machine?
|
|
|
|
|
hello ! do any 1 know to how create even_click for dynamic button with C# ? if any1 know , please give me some guide line....
|
|
|
|
|
By "even_click", do you mean an event that fires on every other click of the button?
Click 1: Do something
Click 2: Ignore
Click 3: Do something
Click 4: Ignore
etc...
If this is Windows Forms, then I'd say keep a boolean flag in your form, and toggle it at the beginning of each button click. If your flag is true after the toggle, then continue with your event handler, otherwise return. While this may not be a true "even_click" click, it gives you the same effect. You would of course need a separate flag for each button that has such an event.
void button_Click(object sender, EventArgs e)
{
flag = !flag
if(!flag)
{
return;
}
}
Dybs
|
|
|
|
|
The actual method itself you will have to create beforehand, you cannot do this dynamically (it can be done by dynamcaly generating IL I believe but it's probably not neccesary).
You should create a general method that all your dynamic buttons call, you can retrieve the button from the sender parameter. To identify which button it is, you can use the Tag property (or use your own button class derived from Button and add some unique property to save some boxing/unboxing) if needed.
Button dynamicButton0 = new Button();
dynamicButton0.Click += new EventHandler(Button_Click);
dynamicButton0.Location = new Point(12, 12);
dynamicButton0.Tag = 0;
Controls.Add(dynamicButton0);
Button dynamicButton1 = new Button();
dynamicButton1.Click += new EventHandler(Button_Click);
dynamicButton1.Location = new Point(12, 34);
dynamicButton1.Tag = 1;
Controls.Add(dynamicButton1)
void Button_Click(object sender, EventArgs e)
{
Button clickedButton = sender as Button;
if (clickedButton.Tag is int)
{
int ID = (int)clickedButton.Tag;
MessageBox.Show(ID.ToString());
}
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hi.
I've created this program[^] some days ago. (I've had WinXP then)
It works on XP well , but when I wanna run it on Vista SP1 Ultimate this error[^] occurred.
and there is a link in the error window http://oca.microsoft.com/en/dcp20.asp[^]
What's wrong ?
Could you guide me ?
Thanks
PS : I've installed SQLExpress 2008 on Vista
|
|
|
|
|
It's most likely something that is wrong with your installation.
Normally, a program using a database will not make the database crash for any reason.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: It's most likely something that is wrong with your installation.
You mean SQL Server Installation ?
|
|
|
|
|
Yes.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Can I get any advice, please? I need to develop sentence scanning program to match the sentences with defined set of words and do calculations on it. Can anyone please suggest me any reference sites or some functions related to this program? Thanks so much.
|
|
|
|
|
I wonder why all the 1 votes - unless this the the nth time you have asked.
Seems your problem is to identify the sentence terminators within a string . or ? This should define your sentence and doing calcs on the word is easy.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thanks for your reply. Yeah, this is the first time I asked.
My problem is: in my database, I have defined words table selected from english dictionary and a number of product reviews which contains more than one sentence to check how many words can match with each product reviews. It is something like information extraction, but cannot use data mining.
Is that suitable if I use RegularExpression Libraries? I am not asking codes detail, but some references or some tips on the C# String functions. Thanks.
|
|
|
|