Error with FormatTypeEnum

Posted by: ahmdsalh on 11 December 2017, 10:26 am EST

    • Post Options:
    • Link

    Posted 11 December 2017, 10:26 am EST

    Hi,

    I’m using VB.Net and the C1DateEdit get an error of ambiguous c1.win.c1datedit.FormatTypeEnum in the namespace.

    1- What is the reason for this?

    2- Can i get the integer value of FormatTypeEnum so that i can just pass the integer value to solve this issue?

    Thanks for the support.

  • Posted 12 December 2017, 2:39 am EST

    Hi,

    1. Are you sure the error message is c1.win.c1datedit.FormatTypeEnum or is it C1.Win.C1Input.FormatTypeEnum ?

      If it is the latter one, then we understand the error is because you are having dll(s) of multiple frameworks in same project i.e., C1.Win.C1Input.4 and C1.Win.C1Input.2 both referenced.

      So, in order to resolve the issue, please either remove *.2 dll or *.4 framework dll from your project references section.

      This would probably resolve the issue. If it does not, then please share a screen-shot of the error you are getting.
    2. You can get the integer value of the Enum instance by using GetHashCode() method as follows:
    Dim intValue =C1.Win.C1Input.FormatTypeEnum.LongDate.[b]GetHashCode()[/b]
    

    Thanks,

    Ruchir Agarwal

  • Posted 21 December 2017, 9:11 pm EST

    Thanks, I removed the 2.0 dll’s and that solved sooooo many similar problems.

    Thanks again

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels