Skip to content Skip to sidebar Skip to footer
Showing posts with the label Winforms

AutoEllipsis=true Affects The Vertical Positioning Of The Text

Answer : I see it. This looks like a limitation in the underlying winapi, DrawTextEx(). Which … Read more AutoEllipsis=true Affects The Vertical Positioning Of The Text

Alternative To ComponentOne 3D Surface Map Chart

Answer : Here are some commercial providers that have the type of chart you're looking for: … Read more Alternative To ComponentOne 3D Surface Map Chart

Click Event For WPF Image

Answer : Just add a MouseDown (or MouseLeftButtonDown as suggested) event to your image like so … Read more Click Event For WPF Image

Change Border Color In TextBox C#

Answer : To change border color of TextBox you can override WndProc method and handle WM_NCPAI… Read more Change Border Color In TextBox C#

Add Controls Dynamically In Flowlayoutpanel

Answer : For a FlowLayoutPanel, you don't need to specify a .Location since the controls ar… Read more Add Controls Dynamically In Flowlayoutpanel

Automating The InvokeRequired Code Pattern

Answer : Lee's approach can be simplified further public static void InvokeIfRequired(this… Read more Automating The InvokeRequired Code Pattern

C# DataGridView Not Updated When Datasource Is Changed

Answer : Quick and dirty solution : dataGridView.DataSource = null; dataGridView.DataSource = … Read more C# DataGridView Not Updated When Datasource Is Changed