Forgot your password?
Sign in with
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Python questions
View PHP questions
All Message Boards...
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Design and Architecture
Internet of Things
C / C++ / MFC
ATL / WTL / STL
Objective-C and Swift
Hardware & Devices
Hosting and Servers
.NET (Core and Framework)
Site Bugs / Suggestions
Spam and Abuse Watch
The Insider Newsletter
The Daily Build Newsletter
Most Valuable Professionals
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
What is 'CodeProject'?
Ask a Question
Bugs and Suggestions
Article Help Forum
Comments by xXxRevolutionxXx (Top 21 by date)
This actually finally solved my problem. Thank you!
It seems that you are right, but the "exception" is not an actual exception. It's very weird actually, and for that reason I added the CreateRoles method in my topic as well. So, I added a breakpoint to the first line of the method (the one that I initialize the RoleManager) and the debugger goes there, but if I click next, it does not go to the next line in order for me to see what happened. Instead, it just steps out completely and loads the application.
I have updated the question accordingly. Feel free to tell me if you need any other part of my code.
Hello! I chose to follow the second way, but I have an issue. I am calling two asynchronous methods in the "hook" using the Wait method, but only the first one seems to get executed. Any idea why ? I could edit my answer to put the code in there if it is more convenient.
Accepted your answer.
Ok, i didn't knew that. I didn't even thought that when i 'accept' my solution, i get reputation. Thanks for the warning.
First of all, thank you very much that you gave quite some time to write this text for me. Back to the work.
I am programming for about 2 years now, so i have a pretty good idea what debugging is. The think is that everything here is instantiated. It should work, but it doesn't(yes, this is another common phrase on the programming world). The thing is that here breakpoints and e.t.c cannot help me, since the problem is setting up the lists. I did everything by the book(at least i think i did), but i still get this exception.
Very nice answer. I haven't thought possible to use the web api from the backend.I accept your solution !
I want to persist some variables including a list of strings(as i said in my original post). The only requirement for the job to finish is the computer to be ON :P
Yep i know. I don't wont to mess up with windows services though. I have something else in my mind about that ... as long as i find a way to save the progress of my app.
It's a clipboard logger. All it does, is to copy text from the clipboard... when the text on the cliboard has changed. I used WPF for the UI, and MVVM as an architectural pattern. Do you need another info ??
@Rob Philpott i did something like that. My encrypt function asks for a (string)password. Then it gets the bytes for the password, and then it uses the bytes of the password to encrypt the message. The good about my solution is that there isn't a need to have a key with the same length as the data. The key can be whatever you want, and it doesn't change the size of the file. I'll accept your answer because it's almost what i did, and it's the only solution to this problem.
It's two way encryption. Is it then possible to calculate exact output length based on the amount of the unencrypted data ?
Well... since it's not a big project.. and it's only for me... i want to write as little code as possible... and if there is a way to have the same length... then it will save me from some trouble.
One correction to your code. The "var link" in the foreach loop needs to be type of: GeckoHtmlElement or else... using the var data type, it becomes type of GeckoNode, and doesn't include a "GetAttribute" method. Now the thing with your code, is that it returns me an "Object reference not set to an instance of an object." error... because the 'links' variable is null, and it doesn't contain any "elements". Here is my code:
This is the "crash" error: http://prntscr.com/e8oq15
P.S I use the method invoker thing, because Gecko Browser is in another thread.
I updated the question.
??? This is my old post. I didn't find a solution, so i decided to open a new one to ask for other solutions.
I want to get all files from all directories.... the SearchOption.AllDirectories is the only way to achieve this.. so SearchOption.TopDirectoryOnly is not an option for me :(
Man, are you kidding me ? Put an effort on your own. Anyway, i edited the answer. No one can write you something more clearly than that. I cannot write all the other parts of the code. But i just showed you how to check if an app is open or closed.
On which string you want to change line ?
Read not only the "Disable UAC" code, but all the rest i said. I am not quite sure why this is happening... and the "UAC Disable" doesn't work for all programs... but even if it works, it's bad logic to try to close UAC. Everything about programming is logic... and trying to close UAC just because it popups when someone is opening your program... is just bad logic. Check the other "solution" i gave you.
Last Updated 1 Jan 1900
All Rights Reserved.