|
|
Hi,
can someone tell me why setting Console.TreatControlCAsInput = true needs two times hitting the enter button to make the Console.ReadLine work. Is this really a bug and if yes, how can i simulate a useful ReadLine function that does work?
Regards
Kerem
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
|
|
|
|
|
hi,
how can i write a function to check if the value is in float format?
it should return true is the value is in float format.
thanks
|
|
|
|
|
Hi,
see here:
http://www.thescripts.com/forum/thread230544.html[^]
Maybe there is something that you can use. If the build-in functions given in the .NET do not saticfy you applications need then you can try the examples given in the link above,...
Regards
Kerem
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
|
|
|
|
|
return (value as float?) != null;
|
|
|
|
|
float.TryParse
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hai all,
I am new to the windows service.i have one doubt in the windows service deployment .
Is it possible to create one setup project for two different service that are in one windows service project?
Thanks in advance
Regards
|
|
|
|
|
you can !!!
if you open the program.cs file you will get that info !!!
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[] { new Service1() };
ServiceBase.Run(ServicesToRun);
}
|
|
|
|
|
Thanks for reply.
Is it possible to switch the service during the insatllation so that the user can take which service he want? i tried this and found error during uninstallation .
|
|
|
|
|
Hi friends,
I am facing this problem when i try to access Outlook contacts using C# code. It gives a warning popup. All i want is that this warning popup should not be shown. And for that i don't want any extra installation.
I tried it using ExpressClickYes utility but for that i need to install that utility and i don't want that.
Thanks in advance.
|
|
|
|
|
you can't, it's there to warn the user that an app is accessing outlook ( for example, to build spam lists ). As your code is benign, the idea is that the user knows it's happening and just clicks OK
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
There is a way - I think you can set some policys for the exchange-server to tell the outlook-clients to supress this message (and I think this was not documentet by microsoft) - but I just can't remember where this bugger is at the moment ... maybe someone can help?
|
|
|
|
|
i have an application with a database witch i have to install . by using VS2005 i want to create a setup for the application,when installing the application i want the user to specify the database server,
when using vs2005 setup wizard how can we create a steup which asks the user to specify the database server ...
|
|
|
|
|
|
thank you for your kind reply
|
|
|
|
|
i used gzipstream to compress a file of dat format . it was saved with the extension of gz and was successed then decompressed it .the file was decompressed successfully, but it was unable to run , the media player said that the file is corrupted , can any one say why this happen and ,is it only the text files the gzipstream and deflatestream supports?
|
|
|
|
|
No, you can compress any file type you like. your code is broken, or the library is broken.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello experts,
I develop and desktop application using C#.NET 2005.
I want to improve the functionality of the application and want to do some code optimization.
Is their any idea...? Like how to make classes, variables declaration etc types of things...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
I'm sure you already know how to create classes and variables. Really, the question is, what makes you think it needs improving, what are you trying to improve and where are the bottlenecks ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ya you are right I know how to make class and variables...
But I read some where use sealed classes instead of public class <class name=""> if you don't want to inherit it again so that make your code faster.
use generics instead of hash table and array list etc.
So I need the guidelines what to do and what not to make efficient C#.net code.
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
Pankaj - Joshi wrote: But I read some where use sealed classes instead of public class if you don't want to inherit it again so that make your code faster.
Possible. I doubt it has a huge effect tho.
Pankaj - Joshi wrote: use generics instead of hash table and array list etc.
Always use the generic containers, that's a no brainer. It will only speed things up for containers of value types, but. No boxing, you see.
Pankaj - Joshi wrote: So I need the guidelines what to do and what not to make efficient C#.net code.
Again, it's very unlikely that you've written code that will get a whole lot faster if you change what sort of containers you use. What sort of app is it, and what makes you think it could be faster ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I know I know I know Yes I already know what I written and how I do that...
I also want to know what are the best ways to make your code efficient..?
In simple language I'm talking about code optimization ...
Why are you talking about the other things...
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
With that attitude, this[^] is about all you're going to get now. Now, seriously, how hard is it to type that into Google??
|
|
|
|
|
This is something on which u r the best one to decide as u see the code more than anybody on codeproject so i think you have to decide what to you and what not to.
|
|
|
|
|
Ya I already know that....
But I want to know what are the best ways to make your code efficient..?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|