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. Design and Architecture
  4. Father class in how to use the special sub-category of type

Father class in how to use the special sub-category of type

Scheduled Pinned Locked Moved Design and Architecture
tutorialannouncement
1 Posts 1 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.
  • H Offline
    H Offline
    huangrongchuan
    wrote on last edited by
    #1

    Father class in how to use the special sub-category of type (such as sub-class form on a table on the TableAdapter), the father of the current thinking is kind of like adding traversal of all the things (such as traversing the form of succession All controls), the need to find, it will need to transform the type to use it. But now they can not find this object into the type of need. Thanks a lot. Code is as follows: / / Father traverse sub-class category on the form for the control and use it private void findcontrol (Control.ControlCollection controls) ( foreach (Control ctrl in controls) / / This traversal of a similar type of controls or components ( if (ctrl.GetType (). Name == "customers TableAdapter") / / form on a table, the TableAdapter ( / / Ctrl-type into the TableAdapter customers to use / / Cases, TableAdapter.Update (customers DataTable); / / Ctrl like to, as with customers TableAdapter ) findcontrol (ctrl.Controls); ) )

    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