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. C#
  4. Define Winform Control in XML file

Define Winform Control in XML file

Scheduled Pinned Locked Moved C#
helpxml
4 Posts 3 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.
  • Z Offline
    Z Offline
    z_ahamad
    wrote on last edited by
    #1

    Hi, My requirement is like I have to create control at run time by reading Control definition from XML file. I have achived to read control from XML file create it dynamically. Problem is I have to define hundreds of controls, is there any tool avalable to convert Controls(like textbox, button, ComboBox,..etc) in to xml file. I mean to say properties of Control should be the attributes of a Control element in XML file. Please help me in this regard ASAP. Thanks Zaheer Zaheer

    S M 2 Replies Last reply
    0
    • Z z_ahamad

      Hi, My requirement is like I have to create control at run time by reading Control definition from XML file. I have achived to read control from XML file create it dynamically. Problem is I have to define hundreds of controls, is there any tool avalable to convert Controls(like textbox, button, ComboBox,..etc) in to xml file. I mean to say properties of Control should be the attributes of a Control element in XML file. Please help me in this regard ASAP. Thanks Zaheer Zaheer

      S Offline
      S Offline
      Sebastian Schneider
      wrote on last edited by
      #2

      Why dont you create serializable versions of the controls you need and simply push them through an XMLSerializer? Cheers Sid

      Z 1 Reply Last reply
      0
      • S Sebastian Schneider

        Why dont you create serializable versions of the controls you need and simply push them through an XMLSerializer? Cheers Sid

        Z Offline
        Z Offline
        z_ahamad
        wrote on last edited by
        #3

        Thanks for your reply. But its not Possible to XMLSerialize a Control(TextBox). How to Do that. Do you have code to do that. Thanks

        1 Reply Last reply
        0
        • Z z_ahamad

          Hi, My requirement is like I have to create control at run time by reading Control definition from XML file. I have achived to read control from XML file create it dynamically. Problem is I have to define hundreds of controls, is there any tool avalable to convert Controls(like textbox, button, ComboBox,..etc) in to xml file. I mean to say properties of Control should be the attributes of a Control element in XML file. Please help me in this regard ASAP. Thanks Zaheer Zaheer

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #4

          The only tool I know of is the MyXaml serializer[^] but that generates MyXaml xml mark-up. Michael CP Blog [^] Development Blog [^]

          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