|
This method of int32 convert to string with format,maybe can not reverse.
When the format string contains "#".
From MSDN:
#
Digit placeholder
If the value being formatted has a digit in the position where the '#' appears in the format string, then that digit is copied to the result string. Otherwise, nothing is stored in that position in the result string.
Note that this specifier never displays the '0' character if it is not a significant digit, even if '0' is the only digit in the string. It will display the '0' character if it is a significant digit in the number being displayed.
The "##" format string causes the value to be rounded to the nearest digit preceding the decimal, where rounding away from zero is always used. For example, formatting 34.5 with "##" would result in the value 35.
|
|
|
|
|
how to Know the language of the writing that had been made
thanks
|
|
|
|
|
Pardon?! Please explain in details
|
|
|
|
|
iam Designing a program in C# and i want to know if the user of the program entered the data in english language or arabic for example, so how can i check for that ?
|
|
|
|
|
English won't contain arabic characters, so you could check which unicode range they fall in..
Won't help to distinguish many west european languages from eachother though, perhaps spellcheck would help (the language in which there would be the lowest number of errors would be most likely)
|
|
|
|
|
harold aptroot wrote: the language in which there would be the lowest number of errors would be most likely
Not necessarily. Look at the number of spelling errors in a lot of the posts here that are supposed to be in English.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
That's why I say "is most likely" instead of "is"
But if you're making so many spelling errors.. well.. I would be surprised if it's even possible to detect the language..
|
|
|
|
|
|
Hi Guys,
In Windows, I have to stop the collapse and expand of treeview,when i double clicks on any node.Collapse and Expand should be fire on clicking the + or - sign in the treeview.
Please give the needful answer.....
Regards,
Lalit Narayan
|
|
|
|
|
|
Hi peoples,
I have to display a string in the label, i will concatenate and pass the same to the label,
but my need here is i want to do some part of the string as bold, i.e
for example the concatenate string is
Website Code project
and i need is that
Website Code project
can any one help me??
thanks in advance
|
|
|
|
|
for web project.
Label2.Text = @"<b>Website</b> Code project";
happy coding...
|
|
|
|
|
it can be done via graphics.DrawString but might not work on labels. try that one.
format string part using some font and display it.
|
|
|
|
|
The label doesn't support different font settings for part of the text.
Use the Paint event of the label and draw the text yourself.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
is it possible for that to do in the text field display only??
|
|
|
|
|
when a PDF file is opened during navigation from one page to other page in browser (IE),
how the PDF file is attached to internet explore?
How can I get the Information about the PDF file opened in internet explorer using c#?
I had googled for this, but I doesn't get enough information such that I can do this in c#.
If anyone knows something regarding this, reply here
|
|
|
|
|
Hello,
I need to write an event (or method) that will be raised once a day at a particular time (5PM) and it will do something.
How can i do it?
|
|
|
|
|
Use TimerCallBack delegate to schedule a method.
जय हिंद
|
|
|
|
|
michaelgr1 wrote: I need to write an event (or method) that will be raised once a day at a particular time (5PM)
Do you want your application to run all the time? If yes, you need a thread which checks the time frequently and do job when it is 5PM. If you don't want to run this application all the time, efficient method would be to schedule this application using windows scheduler.
|
|
|
|
|
No,
The application will work all the time and only at 5pm it will raise the method.
Do i have to check every for example couple of minutes if it's 5PM and it will raise the method or is there other way?
|
|
|
|
|
The application does something else (can do many things) ,
But i want the event will raise only once a day at 5PM .
Is there a way to do it not using a code that will check every some time for the current hour and will raise the event (method) only at the particular time?
|
|
|
|
|
You can create a timer, and set the time interval to be 5 PM - current time. You would have to do that again in the timer callback as well.
|
|
|
|
|
Hello Friends
My application wants to download Folder(folder and sub folders with files) from Web Server using HTTP. Can guide me to do this.
Downloading from FTP is done, for that I have used FtpwebRequest and FtpWebResponse...
But how to download using HttpWebRequest...
I have able to download a file from WebServer but I want to download a folder and files.
Thanks in advance...
|
|
|
|
|
You don't download folders. You have to create them, download files and put into the created folder. Of course, a recursive function is required which can travel through the directories and sub directories.
|
|
|
|
|
Ok..but how to get list of files and folders available on WebServer.
like FTP we can get list of Directories and files using "WebRequestMethods.Ftp.ListDirectory ;"
|
|
|
|