There is no reason to cast the result of the bitwise operation even in the C# version.You should be able to do the following:

btn.Anchor <- AnchorStyles.Left ||| AnchorStyles.Top;;

By on 10/15/2008 10:04 PM ()

In fact

1
(MyType)identitifer

is not the syntax for casting. If you need to cast (which you don't in this case) the syntax is

1
identitifer :?> MyType

. This is why your getting the slightly bizarre error message.

Merci,

Robert

By on 10/16/2008 1:05 AM ()

do btn.Anchor <- Enum.combine [AnchorStyles.Left; AnchorStyles.Bottom];

should work.

Best Regards,

julien

By on 8/4/2006 4:51 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper