|
I don't understand, then, what you're trying to do. You want a product key, I gave you a piece of code to generate one. Are you saying you want to validate that? If so, validate with a server? Or just some special crafted key that is either valid or invalid?
|
|
|
|
|
Check google for Elliptic Curve Cryptography
|
|
|
|
|
This is definately what I'm looing for...
Thank you so much...
|
|
|
|
|
Hi
Have never done such a thing, but you could just run a for loop with an ID and then hash it.
<br />
for(int i = ID; ID < limit; ID++)<br />
{<br />
string hash = ID.gethash().toString();<br />
<br />
hash = hash.gethash().toString();<br />
<br />
}<br />
Not pretty, but it would work.
|
|
|
|
|
Well your code give me some ideas for doing that.
Thank you so much.
I'll test this now...
|
|
|
|
|
How to call the hhctrl.ocx and execute a file such as .hlp,.htm?
Thanks.
K.Alex
|
|
|
|
|
Why bother, there are some classes built into .NET to do this for you. I think anyway, never bothered much with help.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
|
I want to find out if an excel file (Let us say "c:\ABCD.xls")is currently open.
I am using c# and Excel Interop.
Thanks
Abhishek
|
|
|
|
|
Try to open the file exclusively. If an exception is returned, it's in use.
|
|
|
|
|
i have a listview in my program and whenever the item is checked or unchecked i want certain things to happen. how can i accomplish this without the item checked event handler taking over every time i add an item to the listview?
|
|
|
|
|
numbers1thru9 wrote: i have a listview in my program and whenever the item is checked or unchecked i want certain things to happen. how can i accomplish this without the item checked event handler taking over every time i add an item to the listview?
Those statements contradict each other. Unless you mean that the CheckChanged or what ever it's called event is being fired when you add an item to the list view?
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
ok say i have a list of items in the listview, when i either check or uncheck them i want certain things to happen. but if i add an item to the listview, it fires the event handler as if i checked or unchecked an existing item and i want to block it from doing that.
|
|
|
|
|
How about when you add an item to the list view use the "Tag" property to indicate that it's just been added and thus ignore it later in the code:
private void AddItemToList()
{
ListViewItem lvi = new ListViewItem("New Item");
lvi.Tag = "ItemJustAdded";
this.listView.Items.Add(lvi);
}
private void listView_ItemChecked(object sender, ItemCheckedEventArgs e)
{
if (e.Item.Tag == "ItemJustAdded")
return;
}
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Ed.Poore wrote: How about when you add an item to the list view use the "Tag" property to indicate that it's just been added and thus ignore it later in the code:
You'dthen need to clear the tag either in the handler, or in the add method otherwise checks will be permanantly nonfunctional in new items.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
That was left as an exercise to the reader
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Put your code in the ItemCheck event handler, rather than ItemChecked . ItemCheck does not fire when an item is added.
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
hi,
how to use two different font in a textbox
please help me
thz...
Kamal
|
|
|
|
|
I think you need to use RichTextBox control. Using RichTextBox, you can set different font for the text
|
|
|
|
|
You can create a new font with English &Tamil And use it Or you can use RichTextBox.
Thnaks.
K.Alex
|
|
|
|
|
Hi All,
I seem to be going round and round in circles: could someone kindly set me in the right direction:
How can I get a list of all the database providers installed on my machine using C#?
Thanks,
Martin.
|
|
|
|
|
The following will give you the Datalink properties dialog box.
Add References:
Under COM select:
Microsoft ActiveX Data Objects 2.8 Library
Microsoft OLE DB Service Component 1.0 Type Library
Using MSDASC;
Using ADODB;
namespace Whatever
{
class whatever
{
void Main()
{
DataLinksClass dl = new DataLinksClass();
dl.hWnd = this.Handle.ToInt32(); //use this line if calling from a form
Connection obj = (Connection)dl.PromptNew();
MessageBox.Show(obj.ConnectionString);
/* ^^^^^^^^^^^^^^^^
|
|
|
|
|
hi,
when sending mails using SmtpClient, does it open connection each time I do .Send()
if yes how can i avoid it?
If no what is the mechanism used to send Email.
cheers
------------------------------
Its not the fall that kills you; it's the
sudden stop at the end.
|
|
|
|
|
So, you want to delay the sending of emails until a determine time?
|
|
|
|
|
coolestCoder wrote: mean to say that you need only 1 connection until all the mails you want to send are handed over
this is what i mean !
Is it possible !
------------------------------
Its not the fall that kills you; it's the
sudden stop at the end.
|
|
|
|