Hi,
I have some converted VB 6 to C# code that used the property bag to store user control settings. How can I convert the following the read statement to correctly work:
Thanks,Code:
private void userControl_ReadProperties( UpgradeStubs.VBRUN_PropertyBag propbag)
{
//UPGRADE_ISSUE: (2064) PropertyBag method PropBag.ReadProperty was not upgraded. More Information: http://www.vbtonet.com/ewis/ewi2064.aspx
this.Color = ColorTranslator.FromOle(DefaultPropHelper.GetDefaultProperty<int>(propbag.ReadProperty("Color", ColorTranslator.ToOle(K_DEFAULT_COLOR))));
//UPGRADE_ISSUE: (2064) PropertyBag method PropBag.ReadProperty was not upgraded. More Information: http://www.vbtonet.com/ewis/ewi2064.aspx
Enabled = DefaultPropHelper.GetDefaultProperty<bool>(propbag.ReadProperty("Enabled", true));
//UPGRADE_WARNING: (6021) Casting 'Variant' to Enum may cause different behaviour. More Information: http://www.vbtonet.com/ewis/ewi6021.aspx
//UPGRADE_ISSUE: (2064) PropertyBag method PropBag.ReadProperty was not upgraded. More Information: http://www.vbtonet.com/ewis/ewi2064.aspx
Direction = (enDirection) DefaultPropHelper.GetDefaultProperty<int>(propbag.ReadProperty("Direction", true));
}
LB

