• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Valued Contributor
    Posts: 68
    Registered: ‎01-09-2009

    Get/Set settings Netloaded Dll

    141 Views, 2 Replies
    12-12-2012 05:11 AM

    I've created a DLL that can store and use some usersettings.

     

    Now I want to call the settings from another dll.

    I've added a property class to get and set the settings in the source dll.

    But when I try to catch or set them trough module B it doesn't have an effect on the values in module A

     

    Lets say I've got 1 user setting as Boolean called AL_HATCH in Module A

    Public Class Settings
        Public Shared Property Hatch As Boolean
            Get
                Return My.Settings.AL_HATCH
            End Get
            Set(ByVal value As Boolean)
                My.Settings.AL_HATCH = value
                My.Settings.Save()
            End Set
        End Property
    End Class

     In module B I referenced the DLL with the module above.

    msgbox(ModuleA.Settings.Hatch)

    Lets say its at the moment True

     

    When I change the value with module A and call it back with module B it is still True when it needs to be False.??

     

    Regards

     

    Peter

    Please use plain text.
    ADN Support Specialist
    Posts: 195
    Registered: ‎07-24-2007

    Re: Get/Set settings Netloaded Dll

    12-17-2012 02:10 PM in reply to: RPeter

    Can you post as working sample project so we can understand a little more about how things are setup please?

     

    Thanks in advance.





    Fenton Webb

    Developer Technical Services

    Autodesk Developer Network


    Please use plain text.
    Valued Contributor
    Posts: 68
    Registered: ‎01-09-2009

    Re: Get/Set settings Netloaded Dll

    12-18-2012 04:40 AM in reply to: RPeter

    I'll try to explain... (I'm on vacation right now, I'll be back at the office after the hollidays).

     

    I've got a module that has some user settings (My.settings.BIBpath, My.settings.AWNpfx,...)

    At the moment these are configured trough windows included in the dll.

     

    At the moment I'm trying to make a user control that merges in the Autocad Options dialogue.

    So far no problem to create that one.

     

    But here I want to collect my settings from Multiple dll files so the users can access all their options trough the options dialogue from the CAD application.

     

    So I need to get/set the settings from the user control in the required dll. (I'll post a project when I'm back in the office in January)

     

    Regards

    Peter

    Please use plain text.