User Profile
Collapse
-
No problem. I actually wrote that article, so let me know if you have any questions. -
-
Both of those are terrible suggestions. Making it static will have major consequences if you use more than one instance of the form. And India777's answer simply will not work. That's creating a new instance of Form1, not the one that already exists.
Read this:
http://www.dreamincode.net/forums/to...y-other-forms/
Edit: Forgot that I posted that article here...Last edited by Curtis Rutland; May 21 '12, 07:42 PM.Leave a comment:
-
You have a few options here. How do you want this to work? Are you going to host the web application from the same computer that the desktop application lives on? If so, you can install both, and use what's known as Inter-Process Communication (IPC), possibly using Named Pipes or something similar.
It's also possible for your application itself to become a web server. Not easy, but doable. Then the application can serve the web application...Leave a comment:
-
The Ctrl+Enter shortcut is happening at the broswer level, not at your application level. It's caught by the browser and processed, and never sent to your application. You can't catch it.Leave a comment:
-
You do realize this question was from almost three years ago?Leave a comment:
-
Spend enough time with C# and you'll realize how weak a release this is. This is the result of all those years between 6 and 7? C# gains LINQ, Lambdas, and powerful type inference from 2 to 3. Java gets string switches and halfassed type inference on generics only?
I understand that the stability of Java is something its followers trumpet, but I like my language to move forward with the times, not fall behind them. Just think. C# 4 gave...Leave a comment:
-
What do you think about the availability of Java 7?
http://www.oracle.com/us/corporate/press/444374
So what do you guys think? The good, bad, and ugly?...Last edited by Niheel; Jul 29 '11, 05:05 AM. Reason: added info from the link you provide and made the link clickable -
Curtis Rutland replied to In which zone of a flash memory could a write that will not get erase by formattingin C SharpIt's far, far, far more likely that your own custom code will have "backdoors" (or more likely bugs) than TrueCrypt will. TrueCrypt is a well-know, well-trusted name in whole and partial disk encryption that's been under active development for seven years now. It's crazy to think you'll be able to put together something similar by yourself in a short time.
Don't re-invent the wheel. If this isn't just some programming exercise,...Leave a comment:
-
Curtis Rutland replied to In which zone of a flash memory could a write that will not get erase by formattingin C SharpYou're not going to be able to protect it from low level formatting. Basically, if your USB is seen as a disk, disk-editing programs can do whatever they want to it. They can erase your allocation table and anything else on the disk. Without your own custom firmware to prevent disk access, there's simply no way to do this. Just because you come up with your own format doesn't mean that someone else can't just wipe it out.Leave a comment:
-
Nope. We don't do that here. Try it yourself, then post what problems you're having.Leave a comment:
-
Curtis Rutland replied to In which zone of a flash memory could a write that will not get erase by formattingin C SharpAnd there's no way that you can do this with C#, or .NET period. If it is even possible, you're looking at Assembler or C.Leave a comment:
-
Just set it to false. What's the problem?
If you still want the postback to happen without triggering a full page refresh, use the Ajax tools, like an UpdatePanel.Leave a comment:
-
Curtis Rutland replied to In which zone of a flash memory could a write that will not get erase by formattingin C SharpThere's nothing that will prevent the formatting of a disk, one way or another. Especially not in C#.Leave a comment:
-
Interesting. It does for me, assuming there actually is one. Well, another way is to use the .Uri.Query property of the NavigationEvent Args parameter of the Navigated event.
Code:if (!string.IsNullOrWhiteSpace(e.Uri.Query)) { MessageBox.Show(e.Uri.Query); }
Leave a comment:
-
-
-
Hmm, I assumed your error was in your select query.
Anyway, there is an operator that is called the "null coalescing operator". It works like this:
Code:string x = null; string y = x ?? string.Empty;
Code:string x = null; string y; if(x == null) y = string.Empty; else y = x;
Leave a comment:
-
Code:where field.Property != null && field.Property == desiredValue
Leave a comment:
-
You need to show more of your code. That by itself is not an error.Leave a comment:
No activity results to display
Show More
Leave a comment: