Tag Archives: user interface

Change a DataGridView entry when the user double-clicks a cell in C#

This post is in response to the following question: Respected Sir, I need help on how can i change the datagridview cell value by double click on that cell. Let say cell contain value ā€˜Nā€™ when i double click it … Continue reading

Posted in controls, database, user interface | Tagged , , , , , , , , | Leave a comment

Let the user drag pictures in a picture list in C#

The post Improve the picture list in C# showed how you can let the user add, remove ,and rearrange images in a picture list. To rearrange the list, the user right-clicks on a picture and selects Move Left or Move … Continue reading

Posted in controls, lists, user interface | Tagged , , , , , , , , | Leave a comment

Improve the picture list in C#

My post Make a picture list in C# explained how you can make a picture list that lets the user add, remove, and rearrange pictures. This post adds a small improvement. The previous example displayed images in PictureBox controls with … Continue reading

Posted in controls, lists, user interface | Tagged , , , , , , , , | 1 Comment

Make a picture list in C#

This example shows how to build a picture list that lets the user add, remove, and rearrange pictures at run time. If you right-click between two pictures or to the left or right of all of the pictures, the program … Continue reading

Posted in controls, lists, user interface | Tagged , , , , , , , , | 1 Comment

Display a progress bar with text in WPF and C#

As is so often the case in WPF, the solution is simple after you spend a few hours figuring out what controls to use. This example uses a normal Grid control that holds a StackPanel. The following code shows the … Continue reading

Posted in controls, user interface, wpf, XAML | Tagged , , , , , , , , , , , , , | 1 Comment

Disable the charms gesture in Windows 8 (and learn a bit about user interface design)

I still really like my new laptop (see my post Quick review of a new laptop), but one thing I really hate about Windows 8 is the way the charms bar kept popping up at seemingly random times. I would … Continue reading

Posted in miscellany, user interface | Tagged , , , , , , , , , , , | 2 Comments

Display database pictures in a ListView control in C#

This example shows how you can display database pictures in a ListView control. My previous post, Create ListView icons at run time in C#, explained how to make images at runtime to display in a ListView control. This example follows … Continue reading

Posted in controls, user interface | Tagged , , , , , , , , , , , , , , , , , , , | 10 Comments

Make a skinned form in C#, Part 2 (the code)

My previous post explained the controls that this example uses to let you give a form a skin. Basically an arrangement of Panel and PictureBox controls with the Dock properties set appropriately draw the form’s edge and corner images. If … Continue reading

Posted in user interface | Tagged , , , , , , , , | Leave a comment

Make a skinned form in C#, Part 1 (the controls)

A skinned form is just plain cool. It adds a bit of interest to the square windows used by every other application. By setting a Windows Form’s TransparencyKey property to a color that should not be rendered, you can make … Continue reading

Posted in user interface | Tagged , , , , , , , | 1 Comment

Make a PictureBox act like a button in C#

This program uses several images to make a PictureBox behave like a button. These images give you complete control over how the “button” looks as it is pressed and released. A button should have these behaviors: When the mouse is … Continue reading

Posted in controls, user interface | Tagged , , , , , , , , , | Leave a comment