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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Serializable control.

Serializable control.

Scheduled Pinned Locked Moved Visual Basic
jsonhelp
2 Posts 2 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.
  • D Offline
    D Offline
    divyesh1432
    wrote on last edited by
    #1

    Hi, I want to serialize a control. I could not Serialize control datatype but I have created a Serializable() class that has a property that holds my control and I tried to Serialize object of that class but still not working. Here is source. <Serializable()> Private Class Slide_Master Dim _Main_Panel As Object Public Property Main_Panel() As Object Get Return _Main_Panel End Get Set(ByVal value As Object) _Main_Panel = value End Set End Property End Class 'Serializable class 'Code for writing in file Dim sm As New Slide_Master sm.Main_Panel = CType(pnlMain, Object) Dim str As IO.Stream = IO.File.OpenWrite(Application.StartupPath + "\chl.dat") Dim formatter As New System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter.Serialize(str, sm) str.Close() Help me out

    M 1 Reply Last reply
    0
    • D divyesh1432

      Hi, I want to serialize a control. I could not Serialize control datatype but I have created a Serializable() class that has a property that holds my control and I tried to Serialize object of that class but still not working. Here is source. <Serializable()> Private Class Slide_Master Dim _Main_Panel As Object Public Property Main_Panel() As Object Get Return _Main_Panel End Get Set(ByVal value As Object) _Main_Panel = value End Set End Property End Class 'Serializable class 'Code for writing in file Dim sm As New Slide_Master sm.Main_Panel = CType(pnlMain, Object) Dim str As IO.Stream = IO.File.OpenWrite(Application.StartupPath + "\chl.dat") Dim formatter As New System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter.Serialize(str, sm) str.Close() Help me out

      M Offline
      M Offline
      Manikandan net
      wrote on last edited by
      #2

      control class is doesnt have Serializable attribute. so you cant serialiaze i guess. is anyone know other method?

      Manikandan.net [Coding is life]

      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