elfy

Stories submitted by elfy

List of freeware goodies for C# developer - tools, libraries, visualiz(code.mareoblo.pl)

submitted by elfyelfy(230) 2 years, 1 month ago

Another list of freeware tools/libraries/visualizers which I use constantly. Maybe you find here something new for you. If you know some other useful freeware tools for .NET developer than please let me know in comments. read more...

add a comment |category: |Views: 38

tags: another

Localize AjaxControlToolkit by yourself(code.mareoblo.pl)

submitted by elfyelfy(230) 2 years, 7 months ago

In my projects I often have to implement user interface in two languages: English and Polish. Although localization in .NET is quite easy, one thing was annoying to me: AjaxControlToolkit doesn’t support Polish language. When my user choose Polish language on the webpage then he still see in Calendar control ‘Today’ word instead Polish version (‘Dzisiaj’). Same thing for several other controls, for example PasswordStrength control. So one day I decide to correct this once and for all. Below I will show you how to localize Ajax Control Toolkit. To localize AjaxControlToolkit to our langauge (Culture) we will have to do few simple steps. In below examples I use library version for .NET 2.0 but the same steps are in case of Ajax Control Toolkit for .NET 3.5 read more...

1 comment |category: |Views: 173

tags: another

Count the occurences of characters set/group in a string(code.mareoblo.pl)

submitted by elfyelfy(230) 2 years, 8 months ago

For example, to count all occurences of UpperCase chars, digits and 2 special symbols in a string read more...

add a comment |category: |Views: 8

tags: another

Visual Studio: Automatically increment assembly build version(code.mareoblo.pl)

submitted by elfyelfy(230) 2 years, 8 months ago

I always wanted to have automatic build version increment for my apps and libraries to avoid setting it manually again and again. Additionally there should be support inside Visual Studio and possibility for custom settings because I like the “date sigining” where 3 last fields are just YYYY-MM-DD. A dream come true ;) in form of Build Version Increment add-in for Visual Studio 2005/2008. read more...

2 comments |category: |Views: 674

tags: another

How to expand dynamically width of ToolStripProgressBar(code.mareoblo.pl)

submitted by elfyelfy(230) 2 years, 8 months ago

How to expand dynamically width of ToolStripProgressBar to fill entire free space in StatusStrip read more...

add a comment |category: |Views: 40

tags: another

Remove all special characters from a string, allowing alphanumeric(code.mareoblo.pl)

submitted by elfyelfy(230) 2 years, 8 months ago

Remove all special characters from a string, allowing only alphanumeric and chars: ‘.’ and ‘-’ read more...

1 comment |category: |Views: 193

tags: another

Time hh:mm validation 24 hours format(code.mareoblo.pl)

submitted by elfyelfy(230) 2 years, 8 months ago

Check if time is in 24h format hh:mm For example these values are valid: 01:00 (leading zero is mandatory), 05:01, 13:00, 23:59. For example these values are not valid: 24:00, 1:30, 05:60, 12|34 etc. read more...

add a comment |category: |Views: 154

tags: another

C#: Insert NULL values into SQL Server database(binaryelves.wordpress.com)

submitted by elfyelfy(230) 3 years, 4 months ago

To insert into database NULL value from C# code we can’t use just simple declaration for empty string like string textToInsert = “”; This will insert into database just empty string instead NULL value. To handle this case you have to use special SQL type: System.Data.SqlTypes.SqlString.Null See example. read more...

add a comment |category: |Views: 352

tags: another

C#: WinForms - How to expand dynamically width of ToolStripProgressBar(binaryelves.wordpress.com)

submitted by elfyelfy(230) 3 years, 4 months ago

I often would like to have ProgressBar (hidden and shown only while some background application work is doing) in my StatusStrip. My expectation is the ProgressBar should always fill entire available free space in StatusStrip, when form is Maximizing, Resizing etc. This kind of behaviour can’t be set in Visual Studio Designer with control properties settings. read more...

add a comment |category: |Views: 42

tags: another

Quick and Easy Splash Screen(developingfor.net)

submitted by elfyelfy(230) 3 years, 4 months ago

Step by step how to make nice splash screen for your application. read more...

add a comment |category: |Views: 97

tags: another

Session Keep-Alive Web Control(adamtibi.net)

submitted by elfyelfy(230) 3 years, 9 months ago

Session expiration in ASP.NET is a nasty problem. Imagine yourself filling a long form, hitting submit then boom you get the login page! That happened to me before and probably happened to you. read more...

add a comment |category: |Views: 71

tags: another

Count number of lines in all stored procedures in current database(binaryelves.wordpress.com)

submitted by elfyelfy(230) 3 years, 9 months ago

Microsoft SQL Server 2005 I almost finished my current C# project where I have created a lot of stored procedures. By a lot I mean almost 200 :) (I know it is a personal feeling :)) Few days ago I was just curious how many lines I wrote in my stored procedures. To satisfy my curiosity I wrote T-SQL code which show me the truth ;) Blank lines with just Enter pressed are not counted. Score for my project database is: 142 stored procedures, 9419 lines (most of all 537 lines in one SP) read more...

add a comment |category: |Views: 34

tags: another