Recently I have observed that listbox scrollbar has virtualization problem when we re-bind listbox. Let me explain this with an example. I have added 50 items into listbox control programmatically. Here is the screenshot for the same. As you can see I have added two buttons to Reset and to Re-bind listbox again. If I [...]
Archive for June, 2011
Dealing with DateTime in C#
Posted in .net, ASP.net, C#, General, tagged C# Datetime, DateTime, Format DateTime, ParseExact on June 8, 2011 | Leave a Comment »
Recently I come across very ugly error which makes my application crashed. Actually it was problem converting DateTime for specific format. You should make your DateTime conversion independent of client computer’s culture setting. This thought in mind I am going to present this post. 1. Convert String to DateTime Let’s take an example: Suppose you [...]