PanelControl in NoBorder Mode doesn’t use BackColor of Skin

When using Devexpress Controls the PanelControl in „NoBorder“ Style sometimes doesn’t get the apropriet BackColor. This occurs most likly when working with the DeveExpress WizzardControl.

To get around this issue set the BackColor to „Transparent“.

Link to Devexpress topic

 

Default parameter in C# 4

Simple overload:

overload1

 

Now let’s do this with a default property:


public partial class SettingsForm : XtraForm
{
public bool ShowRestartRequiredMessage { get; set; }

public SettingsForm(bool showRestartRequiredMessage = false)
{
InitializeComponent();
ShowRestartRequiredMessage = showRestartRequiredMessage;
}

We don’t need an overload anymore but nothing changed on the usage of the class

overload3

 

Cheers!

Visual Studio is waiting for an internal operation to complete

With the new VS 2013 I encountered problems with the designer in my WinForms projects. Sometimes I got the message and had to wait about 5 minutes to continue working. With Update 1 for VS 2013 the problem seems to be gone, give it a shot.

VS 2013 Update 1

Cheers!

Using EnumColumn in XtraGridView with images

To do this you need an RepositoryItemImageComboBox

RepositoryItemImageComboBox imageCombo = GridControl.RepositoryItems.Add("ImageComboBoxEdit") as RepositoryItemImageComboBox;
imageCombo.SmallImages = imageCollectionTyp;

imageCombo.Items.Add(new ImageComboBoxItem("Zeitraum", MyEnum.Val1, 0));
imageCombo.Items.Add(new ImageComboBoxItem("Gruppe",MyEnum.Val2, 1));

imageCombo.GlyphAlignment = DevExpress.Utils.HorzAlignment.Center;
SellTimeGridView.Columns["Type"].ColumnEdit = imageCombo;