-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Mrinal
Message 3 in Discussion

Hi Shekar ,   A simple way to do it as follows , i have done similar kind of thing 
before in which i had to pop up another form to fill in certain values and pass them 
back to original form ,   1. According to checks in your datagrid , form a dataset or 
dataview or datatable of relevant entries , which ever way u like it    2. in the 
button click event for popping up another form , put a condition based on some bool 
value , where initially it enters a loop , to assign same button click event to 
form1.Activated event , and pop up that form with it's constructor , taking whayever 
parameters u want .   3. Now Do Whatever in Form2 and set that initial bool value to 
different value say false , now on closingbthis form Form1 will be re activated and it 
will go else part of if loop and there u dis associate the event    i hope it solves 
ur problem : a small code snippet :   public void button1_Click(Object sender , 
System.EventArgs e)   {     if( boolvalue == false)    {      Form1.Activated += new 
System.EventHandler(button1_click);      Form2 f = new Form2( param1 , param2 , ...)   
   f.ShowDialog();    } else { Form1.Activated -= new 
System.EventHandler(button1_click); // disassociating event // set bool value in 
second form to process this logic , make bool value public for accessibility // Do ur 
requisite Processing } }   Regards ,   Mrinal

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to