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. Other Discussions
  3. IT & Infrastructure
  4. Collections in forms

Collections in forms

Scheduled Pinned Locked Moved IT & Infrastructure
questioncsharpc++databasewinforms
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.
  • M Offline
    M Offline
    mgodsey
    wrote on last edited by
    #1

    Hello, I am a student playing with windows forms. I am using .net 2003 windows forms with C++. This is new to me, I bought a book on .net 2003 but my problem was not covered. The problem is this. I want to make a collection that my windows form has access to. Kind of like a database front end. Except I want to make several collections available. I haven't found where to set these up at yet. I can create collections in the form click events but I'd much rather have the collections load the files that hold their information on starting the application. Can anyone stear me in the right direction with maybe a book or wich forum to ask my question in? I've been browsing the forums and haven't seen anything related yet. Thanks, Matt

    S 1 Reply Last reply
    0
    • M mgodsey

      Hello, I am a student playing with windows forms. I am using .net 2003 windows forms with C++. This is new to me, I bought a book on .net 2003 but my problem was not covered. The problem is this. I want to make a collection that my windows form has access to. Kind of like a database front end. Except I want to make several collections available. I haven't found where to set these up at yet. I can create collections in the form click events but I'd much rather have the collections load the files that hold their information on starting the application. Can anyone stear me in the right direction with maybe a book or wich forum to ask my question in? I've been browsing the forums and haven't seen anything related yet. Thanks, Matt

      S Offline
      S Offline
      Stephan Samuel
      wrote on last edited by
      #2

      Matt, Basically, you need a collection class in your project that deals with the collections. You can then instantiate as many of them as you like as member variables in your form class. To initialize them, put the instantiation (constructor) in the Form_Load method of your form instead of the Form_Click events.

      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