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. Managed C++/CLI
  4. common variables

common variables

Scheduled Pinned Locked Moved Managed C++/CLI
questionhelp
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.
  • A Offline
    A Offline
    Adnan Merter
    wrote on last edited by
    #1

    i am trying to create an application whis has one more forms and i have problem, how can i declare a variable, which can be reached and changed by different form controls(not the same time)? i mean one of forms change the value of variale and the other form reach it create a process dependent this variable.

    --always comes daylight after night-----

    L 1 Reply Last reply
    0
    • A Adnan Merter

      i am trying to create an application whis has one more forms and i have problem, how can i declare a variable, which can be reached and changed by different form controls(not the same time)? i mean one of forms change the value of variale and the other form reach it create a process dependent this variable.

      --always comes daylight after night-----

      L Offline
      L Offline
      leonigah
      wrote on last edited by
      #2

      create a public property in a form and by setting its property you can change the value //declaring property in CForm1 private: int abc; public : property int ABC { int get() { return abc; } void set(int value) { abc = value; } } // using property in CForm2 #include "Form1.h" CForm1^ frm = gcnew CForm1(); frm->ABC = 123;

      Nigah M Manzoor

      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