Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. UserControl properties persistency

UserControl properties persistency

Scheduled Pinned Locked Moved Managed C++/CLI
c++csharpdotnetcomgraphics
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Severino
    wrote on last edited by
    #1

    Hello, I'm porting an ActiveX control into a .net UserControl using MC++. In order to support persistency with MFC based ActiveX controls there was the DoPropExchange function: is there some similar function in MC++ UserControls? I noticed that the persistency of UserControls properties seems to be embedded inside the .NET framework: if I declare a property of class Bitmap, its contents will be automatically saved inside the .resx file: if I should store a binary based property (for example the contents of a WAV file), what should I do? Any example? Regards Severino

    N 1 Reply Last reply
    0
    • S Severino

      Hello, I'm porting an ActiveX control into a .net UserControl using MC++. In order to support persistency with MFC based ActiveX controls there was the DoPropExchange function: is there some similar function in MC++ UserControls? I noticed that the persistency of UserControls properties seems to be embedded inside the .NET framework: if I declare a property of class Bitmap, its contents will be automatically saved inside the .resx file: if I should store a binary based property (for example the contents of a WAV file), what should I do? Any example? Regards Severino

      N Offline
      N Offline
      Nick Hodapp
      wrote on last edited by
      #2

      Check out the following example; it's in VB but the concepts are identical for C++: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughpersistingobject.asp This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.

      H 1 Reply Last reply
      0
      • N Nick Hodapp

        Check out the following example; it's in VB but the concepts are identical for C++: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughpersistingobject.asp This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.

        H Offline
        H Offline
        Hamzeh
        wrote on last edited by
        #3

        Hello: This article tells how to persist data to a file but is there another way to persist the data using the .NET environment itself like what the MFC DoPropExchange function do (internally and not to a dedicated created file) ???

        L 1 Reply Last reply
        0
        • H Hamzeh

          Hello: This article tells how to persist data to a file but is there another way to persist the data using the .NET environment itself like what the MFC DoPropExchange function do (internally and not to a dedicated created file) ???

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          Apply the DesignerSerializationVisibility attribute to the Properties you need to "persist" the settings from design time to runtime. leppie::AllocCPArticle("Zee blog");
          Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups