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. Windows Forms
  4. Problem with tabpages

Problem with tabpages

Scheduled Pinned Locked Moved Windows Forms
questiondatabasehelp
2 Posts 2 Posters 10 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
    Dnmnt
    wrote on last edited by
    #1

    I have a win application that uses tabcontrol with two tabPages(tp1 & tp2). On the first tab page the user enters the product category name and that it's added to the tblCategory in the database. On the second page the user must select the category from the drop down then add products to the tblProducts. My problem is that when a user enters a category at tp1 that is added to the database correctly, however when they move to tp2 to add the product, the category that was just added on tp1 is not available immediately on the dropdown, i.e i must first close and re-start the application before it appears. How can i make the category available immediately on tp2 dropdown list? Dot

    T 1 Reply Last reply
    0
    • D Dnmnt

      I have a win application that uses tabcontrol with two tabPages(tp1 & tp2). On the first tab page the user enters the product category name and that it's added to the tblCategory in the database. On the second page the user must select the category from the drop down then add products to the tblProducts. My problem is that when a user enters a category at tp1 that is added to the database correctly, however when they move to tp2 to add the product, the category that was just added on tp1 is not available immediately on the dropdown, i.e i must first close and re-start the application before it appears. How can i make the category available immediately on tp2 dropdown list? Dot

      T Offline
      T Offline
      Tamimi Code
      wrote on last edited by
      #2

      suppose that your dropdown named dropList. just you need to refresh the data source of dropList.

      When you get mad...THINK twice that the only advice Tamimi - Code

      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