Sorry no. Wrote this in about 10-15 minutes. Tested it with two numbers and it worked. Good enough for me. I didn't want to spend more time coding this, as I think I already took this joke a bit far (though it would've been nice to write some code without using the increment operators )
BTW, refactoring in VS2005 is still one of my favorite features. Sure did the trick on those pesky, descriptive variable names
Change the output type in the project settings from windows application to class library.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
But when I try to get the information from that file I get exception, saying that there was an error while trying to initialize the configuration system, and an innerexception saying that a section
is repeated (I suppose it's the "publisher" sections).
Isn't there any way to process this file without getting errors? If not, how would you re-write the configuration file so that I don't get any error?
i need to make a call to a webservice and in addition abort this call if the response exeeds some specific time. I want to do this because i have to provide a method to the user which returns a value from a webservice through this method not through some callbackevent. This way i decided that it would be a good way to wrap the call to the service in a method, wait for the response (or a specific time, whatever comes first) and return the value to the user.
What i have done so far is that i make a call to XXXAsync, hooked up to the return event and set a flag that the webservice responded. In the method called by the user a wait for this flag to be set to true or a specific time, but somehow the webservice return event never fires. If i remove the waiting loop everything works fine.
Here is some sample code of the method i want to wrapt the webservice call in:
Can anybody help me out to get the HTML source of webpade in C#? Right now thru below code I am getting the inner code but that is not whole source which I get when I do 'view source' on webpage....
hey that prob got solved actually, thx anyway!
Now I want to change the text on webpage, U can say I want to highlight particular word on webpage n display that page again.
Now I m doing below thing,
String str = internalBrowser.Document.Body.InnerText.Replace("MSN","mSn!");
internalBrowser.Document.Body.InnerText = str;
but when page is displayed just the text gets displayed n not the exact page or Images n all...
I have one more option to parse internalBrowser.Document.Body.InnerHTML n change the word n append tag for highlighting the particular word... is it right or is there any other way????
Just want to hear whether C# can be successfully used to develop games in general and particularly multiplayer games? Or else what would be the preferred language for these higher end games?
Yes, it can. If you download Visual C# 2005 Express Edition[^] and then the XNA Game Studio Express 1.0[^] (both free) you can develop games in C# for Windows and the XBOX360. (NOTE: XNA sits on top of C# Express which is why you need to download and install both items. If you already have Visual Studio it will happily sit side by side - I have that set up at home)
I'm trying to find c# barcode generator control (code128). Does anyone know where can I find one? I found some on codeproject, but they're all either generators for other barcode styles, or they're written in other languages.