Hi

I have actually solved it, what I did that I declared a public static
variable in the form which I want to open on every click on Data Grid.
On Formload event of the form(which need to be opened on click),I set static
variable to this ,something like mystaticvar=this


On DataGrid`s MouseUpevent ,I checked the static variable to null,if it is
,m creating new form,if not,I am calling static Form variable`s
show(),focus() and refresh method,which brings desired form infront,and
Yes,I declared few properties which are being set ,so that I can pass my
values to form,e:g

mystaticVariable.myProperyVarible=varAssignedValue;;
mystaticVariable.show();
mystaticVariable.refresh();
mystaticVariable.focus();

the focus() called the form`s Activate Event,where I am setting my listBox
items to form`s property Value.

Thank you all for replies

Regards,

-adnan




 This Email and any files transmitted with it are confidential and
, intended solely for the use of the individual or entity to which they are
,  addressed. Please note that any views or opinions presented in this
,  Email is solely those of the author and does not necessarily represent
,  those of Bank Alfalah Limited. Finally, the recipient should check this
,  Email and any attachments for the presence of any viruses. Bank Alfalah
,  accepts no liability for any damage caused by any virus/error
, transmitted by this email
,

===================================
This list is hosted by DevelopMentor�  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to