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. Controls related question

Controls related question

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

    This is a newbie question, but I would be grateful if someone could clear this concept for me. Suppose I have: 1. A class cMainForm that has a DirectSound object, SecBuffer 2. A control for this class, cControl, that has a trackbar which controls the volume of the DirectSound buffer. How do I get the code in the cControl class to verify and recognize that the object has been created, and how do I use it? My app requires that the code be written in separate classes, because different controls will all access the same SecBuffer object. Thanks for your help.

    C 1 Reply Last reply
    0
    • N NietzscheDisciple

      This is a newbie question, but I would be grateful if someone could clear this concept for me. Suppose I have: 1. A class cMainForm that has a DirectSound object, SecBuffer 2. A control for this class, cControl, that has a trackbar which controls the volume of the DirectSound buffer. How do I get the code in the cControl class to verify and recognize that the object has been created, and how do I use it? My app requires that the code be written in separate classes, because different controls will all access the same SecBuffer object. Thanks for your help.

      C Offline
      C Offline
      Christian Wikander
      wrote on last edited by
      #2

      Are cControl also on cMainForm. If so you only have to write the code to bind them together. If not, you will have to make public properties, methods and events on cMainForm that expose the features that you would like. If the cControl class only wants to detect if the object SecBuffer is created you can use a read-only property.

      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