How do you set the DefaultAttribute on the Anchor property?
I want the default to be AnchorStyles to be AnchorStyles.Top Or AnchorStyles.Left but the default
attribute is not detecting the numeric equilivalent or it which is 5.
VB Code:
DefaultValue(GetType(AnchorStyles), "Top") 'But needs to include "Left" also. 'Cant do - DefaultValue(5) ' the right click popup menu still shows the Reset menut item as enabled. 'Cant do - DefaultValue(GetType(AnchorStyles), "Top" Or GetType(AnchorStyles), "Left") 'gives build error.![]()





Reply With Quote