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. problem creating a function

problem creating a function

Scheduled Pinned Locked Moved C#
questionhelptutorial
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.
  • J Offline
    J Offline
    JuanAlbertoMD
    wrote on last edited by
    #1

    Hello!! I want to create a function in which i need for example click some button and obtain a value, then click somewhere in the win form and obtain a x, y value and finally click other button and make some math operations, so the function that i want must wait until i click the appropriate button or area in the win form, if i don't follow the right order the function must do nothing until i click the elements in the right order. Somebody knows how can i do this?:confused: Thanks, Alberto Martinez

    C 1 Reply Last reply
    0
    • J JuanAlbertoMD

      Hello!! I want to create a function in which i need for example click some button and obtain a value, then click somewhere in the win form and obtain a x, y value and finally click other button and make some math operations, so the function that i want must wait until i click the appropriate button or area in the win form, if i don't follow the right order the function must do nothing until i click the elements in the right order. Somebody knows how can i do this?:confused: Thanks, Alberto Martinez

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Have you considered using something like the State Pattern[^]? ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

      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