¡@

Home 

c# Programming Glossary: us

How can a Word document be created in C#? [closed]

http://stackoverflow.com/questions/10412/how-can-a-word-document-be-created-in-c

you are running on a server then you are going to want to use one of the XML based office generation formats as there are.. office generation formats as there are know issues when using Office Automation on a server . However if you are working.. on the client machine then you have a choice of either using Office Automation or using the Office Open XML format see..

.NET String.Format() to add commas in thousands place for a number

http://stackoverflow.com/questions/105770/net-string-format-to-add-commas-in-thousands-place-for-a-number

String.Format to add commas in thousands place for a number I want to add a comma in the thousands.. place for a number I want to add a comma in the thousands place for a number. String.Format c# .net share improve.. share improve this question http msdn.microsoft.com en us library fht0f5be.aspx ' Format a negative integer or floating..

How to check for file lock?

http://stackoverflow.com/questions/1304/how-to-check-for-file-lock

Is there any way to check whether a file is locked without using a try catch block Right now the only way I know of is to.. a try catch block Right now the only way I know of is to just open the file and catch any System.IO.IOException. c# .net.. know if the file is locked anyway Knowing that might give us some other way of giving you good advice. If your code would..

System.Timers.Timer vs System.Threading.Timer

http://stackoverflow.com/questions/1416803/system-timers-timer-vs-system-threading-timer

support thread pooling . I am making a game and I plan on using all types of events with different intervals etc. Which would.. comprehensive explanation http msdn.microsoft.com en us magazine cc164015.aspx The specific difference appears to be..

TransactionScope automatically escalating to MSDTC on some machines?

http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines

escalating to MSDTC on some machines In our project we're using TransactionScope's to ensure our data access layer performs.. to not require the MSDTC service to be enabled on our end user's machines. Trouble is on half of our developers machines.. machines we can run with MSDTC disabled. The other half must have it enabled or they get the MSDTC on SERVER is unavailable..

Encrypt/Decrypt string in .NET

http://stackoverflow.com/questions/202011/encrypt-decrypt-string-in-net

shortcomings please see jbtule's answer for a more robust informed solution. http stackoverflow.com a 10366194 188474.. to pre pend the IV per jbtule's suggestion and as illustrated here http msdn.microsoft.com en us library system.security.cryptography.aesmanaged.. and as illustrated here http msdn.microsoft.com en us library system.security.cryptography.aesmanaged 28v vs.95 29.aspx..

When to Use Static Classes in C#

http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp

class can make your implementation simpler and faster because you do not have to create an object in order to call its methods... to create an object in order to call its methods. It is useful to organize the methods inside the class in a meaningful.. me that example doesn't seem to cover very many possible usage scenarios for static classes. In the past I've used static..

Using AES encryption in C#

http://stackoverflow.com/questions/273452/using-aes-encryption-in-c-sharp

in C# I can't seem to find a nice clean example of using AES 128 bit encryption. Does anyone have some sample code.. share improve this question This article seems to discuss both the algorithm and a C# implementation that specifically.. includes 128 bit keysizes http msdn.microsoft.com en us magazine cc164055.aspx There is a code sample available for..

How to use __doPostBack()

http://stackoverflow.com/questions/3591634/how-to-use-dopostback

to use __doPostBack I'm trying to create an asyncrhonous postback.. to use __doPostBack I'm trying to create an asyncrhonous postback in asp.net using __doPostBack but I have no idea how.. I'm trying to create an asyncrhonous postback in asp.net using __doPostBack but I have no idea how to do it. I want to use..

ASP.NET MVC $.post call returning string…need help with format for jqGrid

http://stackoverflow.com/questions/4101116/asp-net-mvc-post-call-returning-string-need-help-with-format-for-jqgrid

to dynamically populate a dropdown for the jqGrid when the user is editing data. I have it pretty much working however there.. there is one value in the dropdown call undefined . I suspect this is because of the way I'm sending the data to the grid... in the dropdown call undefined . I suspect this is because of the way I'm sending the data to the grid. I'm using ASP.NET..

Regarding IE9 WebBrowser control

http://stackoverflow.com/questions/4612255/regarding-ie9-webbrowser-control

IE9 beta. Now In my .net 3.5 WinForm application I want to use WebBrowser control. So my question is whether the webbrowser.. Standards mode. The full docs http msdn.microsoft.com en us library ee330730 28VS.85 29.aspx#browser_emulation share improve..

Developing Internet Explorer Extensions?

http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions

really want to do this but I'm hitting a giant wall with lousy documentation lousy code example code lack thereof. Any help.. but I'm hitting a giant wall with lousy documentation lousy code example code lack thereof. Any help resources you could.. an IE extension In Firefox Chrome Most modern browsers you use window.localStorage but obviously with IE8 IE7 that's not an..

How to check if a number is a power of 2

http://stackoverflow.com/questions/600293/how-to-check-if-a-number-is-a-power-of-2

for ulong power 1 power 0 power power 1 this for loop used shifting for powers of 2 meaning that the value will become.. when I checked for 2^63 1 Math.Log returned exactly 63 because of rounding. So I checked if 2 to the power 63 is equal to.. the power 63 is equal to the original number and it is because the calculation is done in double s and not in exact numbers..

How check if given string is legal (allowed) file name under Windows?

http://stackoverflow.com/questions/62771/how-check-if-given-string-is-legal-allowed-file-name-under-windows

it's going to be legal filename under Windows. I tried to use regular expression like a zA Z0 9_ but it doesn't include many.. include many national specific characters from various languages umlauts and so on . What is the best way to do such.. from Path.GetInvalidPathChars http msdn.microsoft.com en us library system.io.path.getinvalidpathchars.aspx And GetInvalidFileNameChars..

Sending email through Gmail SMTP server with C#

http://stackoverflow.com/questions/704636/sending-email-through-gmail-smtp-server-with-c-sharp

otherwise in the other question but neither work. I would just like to know if it works for anyone else otherwise Google have.. has happened before . When I try the piece of code that uses SmtpDeliveryMethod.Network I quickly receive a SmtpException.. was 5.5.1 Authentication Required. Learn more at seriously it ends there. UPDATE This is a question I asked a long time..

How to use localization in C#

http://stackoverflow.com/questions/1142802/how-to-use-localization-in-c-sharp

CultureInfo.GetCultureInfo en US Console.WriteLine strings.Hello That is because it does not.. strings.Hello That is because it does not find any en US resource and also no en resource so it will fall back to the..

Best practice to make a multi language application in C#/WinForms? [closed]

http://stackoverflow.com/questions/119568/best-practice-to-make-a-multi-language-application-in-c-winforms

programs in English and French I use en and fr and not en US and fr FR . Do not complicate things the different dilelects..

How to convert a Unicode character to its ASCII equivalent

http://stackoverflow.com/questions/138449/how-to-convert-a-unicode-character-to-its-ascii-equivalent

pages the lower 128 characters maintained their standard US ASCII values and different pages or sets of characters could..

TransactionScope automatically escalating to MSDTC on some machines?

http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines

Update. Update 1 http social.msdn.microsoft.com forums en US windowstransactionsprogramming thread a5462509 8d6d 4828 aefa..

C# - Exception messages in English?

http://stackoverflow.com/questions/209133/c-sharp-exception-messages-in-english

is accessed. For those exceptions you can obtain the full US English version of the message by briefly switching the thread.. the message by briefly switching the thread locale to en US while logging it saving the original user locale beforehand.. t.CurrentUICulture new System.Globalization.CultureInfo en US t.Start Where the ExceptionLogger class looks something like..

C#: Class for decoding Quoted-Printable encoding?

http://stackoverflow.com/questions/2226554/c-class-for-decoding-quoted-printable-encoding

A “F representing the byte's numeric value. For example a US ASCII form feed character decimal value 12 can be represented.. character decimal value 12 can be represented by 0C and a US ASCII equal sign decimal value 61 is represented by 3D . All..

Display custom error page when file upload exceeds allowed size in ASP.NET MVC

http://stackoverflow.com/questions/2759193/display-custom-error-page-when-file-upload-exceeds-allowed-size-in-asp-net-mvc

13. The error page can be found in C inetpub custerr en US 404 13.htm For redirects on this error on IIS7 I recommend redirecting..

How to detect the character encoding of a text file?

http://stackoverflow.com/questions/4520184/how-to-detect-the-character-encoding-of-a-text-file

due to the rarity of 00 bytes in byte oriented encodings. US ASCII No BOM but you don't need one. ASCII can be easily identified..

Remove trailing zeros?

http://stackoverflow.com/questions/4525854/remove-trailing-zeros

format date in c#

http://stackoverflow.com/questions/501460/format-date-in-c-sharp

DateTime.Now.ToString g returns 02 01 2009 9 07 PM for en US or 01.02.2009 21 07 for de CH These ensure that the format will.. DateTime dt GetDate dt.ToString g new CultureInfo en US returns 5 26 2009 10 39 PM dt.ToString g new CultureInfo de.. Thread.CurrentThread.CurrentCulture new CultureInfo en US dt.ToString g returns 5 26 2009 10 39 PM Thread.CurrentThread.CurrentCulture..

Using MediaElement to play video from Stream

http://stackoverflow.com/questions/7117589/using-mediaelement-to-play-video-from-stream

based example see http social.msdn.microsoft.com forums en US wpf thread 6191ef1a 0010 4294 a5b4 451bbadca33a and http jmorrill.hjtcentral.com..

How do you do AppBar docking (to screen edge, like WinAmp) in WPF?

http://stackoverflow.com/questions/75785/how-do-you-do-appbar-docking-to-screen-edge-like-winamp-in-wpf

AppBar.aspx http social.msdn.microsoft.com Forums en US wpf thread 05c73c9c e85d 4ecd b9b6 4c714a65e72b c# wpf dock..