Click here to Skip to main content
15,908,172 members
Home / Discussions / C#
   

C#

 
GeneralRe: Master Deatil relationship in one grid Pin
Not Active8-Feb-07 2:17
mentorNot Active8-Feb-07 2:17 
QuestionHow to access file attribute Pin
sjs4u7-Feb-07 2:03
sjs4u7-Feb-07 2:03 
AnswerRe: How to access file attribute Pin
andre_swnpl7-Feb-07 2:10
andre_swnpl7-Feb-07 2:10 
QuestionDeploying a Crystal Report Application (C#.net 2005) Pin
Banjo Ayorinde7-Feb-07 1:56
Banjo Ayorinde7-Feb-07 1:56 
AnswerRe: Deploying a Crystal Report Application (C#.net 2005) Pin
Ware@Work7-Feb-07 3:48
Ware@Work7-Feb-07 3:48 
Questionreding .doc,.xls and .ppt file with out using other 3rd party utility Pin
Member 33042437-Feb-07 1:39
Member 33042437-Feb-07 1:39 
AnswerRe: reding .doc,.xls and .ppt file with out using other 3rd party utility Pin
andre_swnpl7-Feb-07 1:54
andre_swnpl7-Feb-07 1:54 
QuestionData Binding Question [modified] Pin
AmorphisOne7-Feb-07 1:21
AmorphisOne7-Feb-07 1:21 
Hello everyone,
i apologize if this a dumb question, but it bothers me since days and as i am a c-sharp newbie i have to ask here Big Grin | :-D
Problem : i want to bind a variable in a class to a form control element.

Example:
namespace testApp
{
    class ContainerValues
    {
        public static ContainerValues gContainerValues = new ContainerValues();

        // These variables should be bound to the form-controls
        private bool _test1 = false;
        private int  _test2 = 0;

        public bool Test1
        {
            get { return _test1;  }
            set { _test1 = value; }
        }
        public int Test2
        {
            get { return _test1;  }
            set { _test1 = value; }
        }
    }
    
    public partial class ContainerForm : UserControl
    {
       public ContainerForm()
        {
            InitializeComponent();
        }
    }
    // ... Form-Designer generated code  ...//
    public partial class ContainerForm
    {
        // ....
        private System.Windows.Forms.CheckBox FormTest1;
        private System.Windows.Forms.ComboBox FormTest2;
}


What i need now is that the displayed checkbox of the Container Form is bound to the test1 Property of the ContainerValues-Class Instance gContainerValues as well as the selected entry in the combobox FormTest2 is bound to the gContainerValues-Test2 Property. So changing the form value changes the gContainerValues-Value.

Thanks in Advance, and best regards,
AmorphisOne


-- modified at 8:07 Wednesday 7th February, 2007
AnswerRe: Data Binding Question Pin
Marc Clifton7-Feb-07 3:27
mvaMarc Clifton7-Feb-07 3:27 
QuestionSame Process in different Dekstop Pin
Rahul.RK7-Feb-07 1:00
Rahul.RK7-Feb-07 1:00 
Questionregistry.classesroot Pin
GunaChinna7-Feb-07 0:52
GunaChinna7-Feb-07 0:52 
AnswerRe: registry.classesroot Pin
Stefan Troschuetz7-Feb-07 1:02
Stefan Troschuetz7-Feb-07 1:02 
GeneralRe: registry.classesroot Pin
GunaChinna7-Feb-07 1:11
GunaChinna7-Feb-07 1:11 
GeneralRe: registry.classesroot Pin
Stefan Troschuetz7-Feb-07 1:18
Stefan Troschuetz7-Feb-07 1:18 
GeneralRe: registry.classesroot Pin
GunaChinna7-Feb-07 1:28
GunaChinna7-Feb-07 1:28 
QuestionDataGrid - XML Pin
The Brazilian One7-Feb-07 0:43
The Brazilian One7-Feb-07 0:43 
AnswerRe: DataGrid - XML Pin
blue_arc7-Feb-07 0:45
blue_arc7-Feb-07 0:45 
GeneralRe: DataGrid - XML Pin
The Brazilian One7-Feb-07 0:53
The Brazilian One7-Feb-07 0:53 
GeneralRe: DataGrid - XML Pin
Ryno Burger7-Feb-07 1:01
Ryno Burger7-Feb-07 1:01 
GeneralRe: DataGrid - XML Pin
The Brazilian One7-Feb-07 1:03
The Brazilian One7-Feb-07 1:03 
QuestionFill a DataSet from a data source and update another data source Pin
Kamran Zafar7-Feb-07 0:31
Kamran Zafar7-Feb-07 0:31 
Questionget value from database into a variable Pin
Nekshan7-Feb-07 0:22
Nekshan7-Feb-07 0:22 
AnswerRe: get value from database into a variable Pin
blue_arc7-Feb-07 0:43
blue_arc7-Feb-07 0:43 
AnswerRe: get value from database into a variable Pin
Corinna John7-Feb-07 0:48
Corinna John7-Feb-07 0:48 
AnswerRe: get value from database into a variable Pin
aSarafian7-Feb-07 0:52
aSarafian7-Feb-07 0:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.