Jūs esateŽurnalai / Ernestas Kardzys's blog / C#. Set culture info

C#. Set culture info


ParašėErnestas Kardzys - 2009 Balandžio 13

I had one problem. My computer's Global Settings are set to the Lithuanians, but now I live in Austria. I need to change the currency of my program from litas (LTL) to euro (EUR). How could I do that? It's very simple: using System.Globalization; // Code... CultureInfo ci = new CultureInfo("de-AT"); // Code... Console.WriteLine(stringWithCurrency.ToString("C", ci)); Happy coding!

Probably you could try getting desktop and then writing on the image your text and after that setting the new desktop Wallpaper?
Small example: http://www.codeproject.com/KB/dotnet/SettingWallpaperDotNet.aspx

So maybe do you know how to write text on desktop? :)

Skelbti naują komentarą

Šio laukelio turinys bus laikomas privatus ir nerodomas viešai.
  • Web puslapiu adresai ir el. pašto adresai automatiškai tampa nuorodomis.
  • Leidžiamos HTML žymės: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Linijos ir paragrafai atskiriami automatiškai
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].

Daugiau informacijos apie teksto formatavimą

CAPTCHA
Šis klausimas yra skirtas įsitikinti, jog jūs esate žmogus, ir sustabdyti automatinį šlamšto siuntimą.