Click here to Skip to main content
15,894,313 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to convert from decimal to binary Pin
Sebastian Schneider5-Apr-06 0:00
Sebastian Schneider5-Apr-06 0:00 
QuestionFilter DataGrid Pin
cppdotnet4-Apr-06 13:15
cppdotnet4-Apr-06 13:15 
QuestionSorting Datagrid Pin
cppdotnet4-Apr-06 13:06
cppdotnet4-Apr-06 13:06 
QuestionHow to get total no of records from a typed Dataset Pin
Herhighness4-Apr-06 11:02
Herhighness4-Apr-06 11:02 
AnswerRe: How to get total no of records from a typed Dataset Pin
Alvaro Mendez4-Apr-06 12:08
Alvaro Mendez4-Apr-06 12:08 
Questioncreate SPSS file (.sav) Pin
ap_sa4-Apr-06 9:54
ap_sa4-Apr-06 9:54 
QuestionUpdate comboBox Control Pin
Cubzfan4-Apr-06 9:44
Cubzfan4-Apr-06 9:44 
AnswerRe: Update comboBox Control Pin
Judah Gabriel Himango4-Apr-06 10:51
sponsorJudah Gabriel Himango4-Apr-06 10:51 
You can do this using databinding, or use events to monitor changes. For example:

class Form1
{
    public Form1(ComboBox theComboBoxFromForm2)
    {
        theComboBoxFromForm2.SelectedValueChanged += MySelectionChangedFunction;
    }

    void MySelectionChangedFunction(object sender, EventArgs e)
    {
        this.comboBoxOnThisForm.SelectedItem = ((ComboBox)sender).SelectedValue;
    }
}


As I mentioned, you could also do this with databinding. You also do not have to pass the combobox into the constructor; you could setup a public get/set property and do it there. Or you could have some governing code that sets it all up for you. There are many different ways to do this with object oriented programming; you just need an instance of each combo box accessible to some piece of code, and you're good to go.

Tech, life, family, faith: Give me a visit.
I'm currently blogging about: How 'bout a little guitar now?
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


AnswerRe: Update comboBox Control Pin
Richard Parsons4-Apr-06 11:08
Richard Parsons4-Apr-06 11:08 
QuestionInitializeComponent() Pin
AJ1234-Apr-06 9:13
AJ1234-Apr-06 9:13 
QuestionSecure data transfer Pin
Robert19744-Apr-06 8:00
Robert19744-Apr-06 8:00 
AnswerRe: Secure data transfer Pin
Judah Gabriel Himango4-Apr-06 8:35
sponsorJudah Gabriel Himango4-Apr-06 8:35 
AnswerRe: Secure data transfer Pin
Vasudevan Deepak Kumar4-Apr-06 21:32
Vasudevan Deepak Kumar4-Apr-06 21:32 
QuestionConverting documents to .tiff file Pin
fegaman4-Apr-06 7:57
fegaman4-Apr-06 7:57 
AnswerRe: Converting documents to .tiff file Pin
Judah Gabriel Himango4-Apr-06 8:31
sponsorJudah Gabriel Himango4-Apr-06 8:31 
AnswerRe: Converting documents to .tiff file Pin
Ravi Bhavnani4-Apr-06 9:25
professionalRavi Bhavnani4-Apr-06 9:25 
Questionhow to call Win32 API in c# Pin
t4ure4n4-Apr-06 7:30
t4ure4n4-Apr-06 7:30 
AnswerRe: how to call Win32 API in c# Pin
Judah Gabriel Himango4-Apr-06 8:25
sponsorJudah Gabriel Himango4-Apr-06 8:25 
AnswerRe: how to call Win32 API in c# Pin
Antony M Kancidrowski4-Apr-06 14:03
Antony M Kancidrowski4-Apr-06 14:03 
Questionsetup project Pin
Manu_814-Apr-06 7:21
Manu_814-Apr-06 7:21 
AnswerRe: setup project Pin
Judah Gabriel Himango4-Apr-06 8:28
sponsorJudah Gabriel Himango4-Apr-06 8:28 
QuestionFileBrowser Pin
deepscyberpulse4-Apr-06 7:15
deepscyberpulse4-Apr-06 7:15 
AnswerRe: FileBrowser Pin
Judah Gabriel Himango4-Apr-06 8:33
sponsorJudah Gabriel Himango4-Apr-06 8:33 
QuestionTabControl Pin
deepscyberpulse4-Apr-06 7:12
deepscyberpulse4-Apr-06 7:12 
AnswerRe: TabControl Pin
Judah Gabriel Himango4-Apr-06 8:33
sponsorJudah Gabriel Himango4-Apr-06 8:33 

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.