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. Visual Basic
  4. Best place to load a control

Best place to load a control

Scheduled Pinned Locked Moved Visual Basic
question
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.
  • P Offline
    P Offline
    peepys
    wrote on last edited by
    #1

    Hi, Thx a lot for the previous answer. For loading a pack of records into comboBox ,which event is best ? form_load or InitializeComponent. Could you pls explain it? regards, aB

    T 1 Reply Last reply
    0
    • P peepys

      Hi, Thx a lot for the previous answer. For loading a pack of records into comboBox ,which event is best ? form_load or InitializeComponent. Could you pls explain it? regards, aB

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      Definitely on the Load() InitializeComponent() is called from the constructor, and as the name says, it does construct the form, that means the form is not completely created. Load() is called after New(). I use to compare it to the OnInitDialog() handler in C++ Dialog based applications. so, create whatever you want in the New(), and initialize them on the Load()


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      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