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. C#
  4. performing button click automatically without performing it

performing button click automatically without performing it

Scheduled Pinned Locked Moved C#
csharp
3 Posts 3 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.
  • S Offline
    S Offline
    sashidhar
    wrote on last edited by
    #1

    hi friends i have a doubt in c# i have two forms one is windows form and the other user control form i have a button on each control .i added a user control on windows form at run time by this.controls.add(usrctrl1).Is it possible to run the user control button automatically on clicking windows form button .if it is possible how can it be plz reply it sir waiting for Your reply Sir

    R D 2 Replies Last reply
    0
    • S sashidhar

      hi friends i have a doubt in c# i have two forms one is windows form and the other user control form i have a button on each control .i added a user control on windows form at run time by this.controls.add(usrctrl1).Is it possible to run the user control button automatically on clicking windows form button .if it is possible how can it be plz reply it sir waiting for Your reply Sir

      R Offline
      R Offline
      Ravi Mori
      wrote on last edited by
      #2

      Hi Sashidhar.. Please Checkout following link: http://www.akadia.com/services/dotnet_user_controls.html[^] I think this will help you... Thanks..

      1 Reply Last reply
      0
      • S sashidhar

        hi friends i have a doubt in c# i have two forms one is windows form and the other user control form i have a button on each control .i added a user control on windows form at run time by this.controls.add(usrctrl1).Is it possible to run the user control button automatically on clicking windows form button .if it is possible how can it be plz reply it sir waiting for Your reply Sir

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

        Create a public method in the user control that you call from the form's button_Click handler. In that method (in the user control) call the PerformClick method of the user control's button.

        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)

        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