|
Hi,
Thanks for your reply.
I have gone thru the article you provided (MSDN) and I realized that the User Scope application settings are stored in the User's profile path returned by System.Windows.Forms.Application.LocalUserAppDataPath.
Now, it will be an issue to pack this item into a single installer as I am not using "click Once", how can I instruct my application to load and save user scoped settings.config file in the same Application.StartupPath ?
Regards
emran
|
|
|
|
|
Well, I'm afraid I cannot be much help to you. I can say that LocalFileSettingsProvider is a bit of a tough job after I looked through its source. It can be reproduced of course but there is a hell lot of work to do.
To be honest I use standard application settings only for a small stuff like window positions - even if they are lost it doesn't make much trouble and can be replaced by reasonable defaults. As for serious things, global settings that persist from version to version and all that I use the same strategy as with common data files - I simply choose the convenient location and put my settings there using simple Dictionary object to store them and serialize/deserialize manually with somthing like SoapFormatter. After all ApplicationSettingsBase is a simple dictionary wrapper too.
Regards, Oleg.
|
|
|
|
|
How to download file from FTPsite in asynchronous way?
Please help me.
|
|
|
|
|
You can use the System.NET.FtpWebRequest to request files from an FTP site. You can use the FtpWebRequest.BeginGetResponse to do this asynchronously.
|
|
|
|
|
Hi,
I am generating product key in the form of ; XXXXX-XXXXX-XXXXX-XXXXX
I want to generate unique serial key related to this product key.
I'd be so glad if someone help me.
Thank you in advance.
|
|
|
|
|
Guid.NewGuid().ToByteArray() will give you 16 bytes.
|
|
|
|
|
But,
GUID will generate RANDOM string, that will NOT related to my product key.
Thank you.
|
|
|
|
|
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
|
|
|
|