|
pyrojoe wrote:
int repeat = history.SubKeyCount
SubKeyCount won't get you the number of URL values, you need ValueCount . A SubKey, as you might guess from other code you've got, is the directory-like path to get to the values you are looking for.
Also, your loop is a little crazy, you need to learn about for loops. I suggest changing your loop to:
int count = history.ValueCount;
for(int i = 1; i<=count; i++)
{
}
Does this help?
Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums
|
|
|
|
|
|
|
hello,
i made a program that contains serveral dll's that are included. But when i distribute my program the client mustn’t see the dll's just a package that contains the dll but is encrypte or something like that. Is this possible??
greetings
Sander
|
|
|
|
|
Gedrain wrote:
when i distribute my program the client mustn’t see the dll's
If the client is paying you money to create these DLLs why shouldn't they be able to see them?
There are tools that will make the .NET assemblies difficult to reverse engineer. Dotfuscator Community Edition is included with Visual Studio, which is a cut down version so you may like to buy the full version if it is not secure enough for you.
Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums
|
|
|
|
|
hello colin,
but the dll's are not mine i just them from another project for example firebird dll drivers. But when i distribute my program i don't find it quit nice that people see that i used firebird dll's so how can i compress them into one file.
greetings
Sander
|
|
|
|
|
So, this "package" you talk about, do you mean you don't want the client to see the DLLs on the hard disk, or just the installer? When you create an installer project it creates an MSI file that you can double click on and it will install the application and all its files and perform any other actions that you need the installer to do. The installer is just one MSI file. Would that be acceptable?
Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums
|
|
|
|
|
i mean on the harddisk not with the installation that is allready in a package
greetings
Sander
|
|
|
|
|
If I had created a DLL (OS or CS) I would probably NOT have you distribute my work in encrypted form.
As a matter of fact, doing so might get you into REALLY deep trouble.
Imagine your customer being sued for illegally using copyrighted CS-DLLs he has not obtained a license for. (CS = Closed Source)
Or you being sued by the FSF because you did not follow the license for an OS product (OS = Open Source).
Being honest works best.
Cheers
Sebs
|
|
|
|
|
well the dll's that i distribute with my program are all open source so that is not the problem. But it just looks better i think.
greetings
Sander
|
|
|
|
|
Hello,
I'm developing a client/server application in C# and Windows Forms. When the user is logged in (in my client application) I want to detect when he hasn't used my application in a certain time (say, one hour) to automatically log him out.
Does anyone have any suggestion on where to begin?
I've tought of a timer? but how do I reset it? o mousemove and click events or in any menu item/toolbar event?
Any pointers will be appreciated!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
|
Umm..that's actually quite a wierd one and may not do what he expects.
I previously thought as you do, but recently I added a tool bar tool in a form that has it's text set to the current date and time in OnAppIdle event on the form. (when the user clicks on it, it inserts the current date and time as text in a text field or selects the current date and time if in a date/time editor etc, also as a side effect I expected it to be useful as a clock when in the full screen form).
If you try that you will notice much weirdness about it, the time display will not update on it's own until you do something in the form (opposite of what you would expect) including the fact that if the form doesn't have the focus it won't process unless you move the mouse around over the form, if you open the form but don't click on a control it won't process, in fact the only thing that is guaranteed to fire OnAppIdle is if you click into an editable control and keep focus there, then it will mysteriously start firing regularly.
Of course this is normally perfect since I use OnAppIdle for updating various things on the form in relation to user caused change of states, but in the case of the timer it might not work very well in practice.
I think what it's doing is interpreting what exactly "idle" means, it's not strictly idle when you're not doing anything on the form.
|
|
|
|
|
John Cardinal wrote:
Umm..that's actually quite a wierd one and may not do what he expects
Well, from what I understood of the situation there is a timer that runs continuously - he only wants to reset a counter when the application enters an idle state - so each time the user stops doing stuff, even for a fraction of a second, the counter resets to zero. The timer fires a few times (say once per minute) and when it reaches its threshold the timer event can do what it needs to do at that point.
Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums
|
|
|
|
|
Right! Yeah, I see what you mean, that actually is the easiest solution now that I think about it.
|
|
|
|
|
Thanks for your suggestion, but Dennis's article I think solves my problem perfectly. Thanks anyway
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Luis Alonso Ramos wrote:
When the user is logged in (in my client application) I want to detect when he hasn't used my application in a certain time (say, one hour) to automatically log him out.
I usually don't promote my own articles on the discussion boards but I think this is what you're looking for: How to check for user inactivity with and without platform invokes in C#[^]. There's also a thread titled Other methods to detect OnIdle?[^] where I describe why in my opinion OnIdle is useless in this case.
Best regards
Dennis
|
|
|
|
|
Dennis C. Dietrich wrote:
I think this is what you're looking for: How to check for user inactivity with and without platform invokes in C#
Yes, exactly that is what I was hoping to know. Such an excellent article, thank you very much!
I have one question (about the Application.AddMessageFilter solution>, but I'll post it in the article's forum, so it may be helpful to someone else.
Thank you very much!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
how can i disable delete selected row when i hit the delete button?
...and how can i assigne delete button to another operation
bye
|
|
|
|
|
Hi
I'm wondering if anybody knows of something like this www.appforge.com[^], but as onpen source ?
I want to run C# app's on Nokia etc. phones. Phones that do not run 1 of the microsoft operating systems.
Hope someone can help me.
|
|
|
|
|
hi,
I'd like to know if it's possible in C# to access an application to make it execute some actions based on some specific events. For example, i'm using the yahoo messenger as a chat, and i'd like to make it save all the received and sent messages automatically in a specific file.doc when exiting. This is already possible with it but it has to be done manually by clicking on the save button.
Thanks,
|
|
|
|
|
yeah, at my school, we've been having accessing private ftp's. is this a setting that can be changed in internet explorer? what's the setting called. or any other way. I can probably find the reg. key if you know what it's called. thank you.
Stephen
|
|
|
|
|
Pyro Joe wrote:
we've been having accessing private ftp's. is this a setting that can be changed in internet explorer?
I would guess that is more a function of the network you are on. If you mean private meaning within your school then it will just be an FTP server within the network somewhere. If you mean you have to log on to the FTP server and you want to know where the authentication information is stored then you are out of luck as only the SYSTEM user (i.e. the operating system) has access to that.
If it is not either of these situations then you will have to be more specific in your request.
Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums
|
|
|
|
|
yeah, how do I add text to a textBox (programmatically, not via the user) on the next line if there is already text in it?
danke schon,
Stephen
|
|
|
|
|
textBox.Text += "\r\n" + newTextToAdd;
|
|
|
|