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. Calling Form from UserControl Layer

Calling Form from UserControl Layer

Scheduled Pinned Locked Moved Windows Forms
designquestion
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.
  • N Offline
    N Offline
    Nath
    wrote on last edited by
    #1

    Hi Folks, My project Structure like below (Solution)Solution Name + ProjectName (Test) + Form1.cs + Form2.cs + Library Project(UI Layer) + Usercontrol1.cs + UserControl2.cs how can i call Form1.cs from UserControl1.cs Thanks & Regards Nath

    D 1 Reply Last reply
    0
    • N Nath

      Hi Folks, My project Structure like below (Solution)Solution Name + ProjectName (Test) + Form1.cs + Form2.cs + Library Project(UI Layer) + Usercontrol1.cs + UserControl2.cs how can i call Form1.cs from UserControl1.cs Thanks & Regards Nath

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      The user control should raise events that the Form (or some form manager class) can subscribe to - much the same as when you put, say, a button on a form. The button doesn't know about the form, but the form responds to the buttons' events but only the ones that it has requested to be informed about.

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
      Why are you using VB6? Do you hate yourself? (Christian Graus)

      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