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

C#

 
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 
AnswerRe: Update comboBox Control Pin
Richard Parsons4-Apr-06 11:08
Richard Parsons4-Apr-06 11:08 
There are several ways to do this. You can monitor the combobox events on form2 from form 1 as Judah Himango posted or you can create your own custom events on form2 and montior those from form1.
Those are close to the same so the code example is for this last one: if you are showing form2 using ShowDialog you could always check the properties of form2 after it has closed on your form1.

<br />
class Form1<br />
{<br />
  public void Button1_Click(sender object, System.EventArgs e)<br />
  {<br />
    Form2 frm2 = new Form2();<br />
    <br />
    //form2 is displayed and code execution is halted in form1<br />
    //until form2 is closed.<br />
    frm2.ShowDialog();<br />
    <br />
    //form2 is closed when this code executes<br />
    this.DropDownList1.SelectedIndex = frm2.DropDownList1.SelectedIndex;<br />
    <br />
    //clean up form2<br />
    frm2.Dispose();<br />
  }<br />
}<br />
<br />
Like we said there are many ways to do this and which you choose depends on what you are trying to accomplish.<br />






-Richard
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 
Questionevent for app window Pin
Kim06184-Apr-06 6:59
Kim06184-Apr-06 6:59 

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.