How to Transferring objects between windows forms in c#

后端 未结 4 2007
暖寄归人
暖寄归人 2021-01-29 06:37

i got a ListView in the windows form.When form loads ListView loading with personel objects. I want to do when some user double clicks on ListView , gets the personel object fro

4条回答
  •  执念已碎
    2021-01-29 07:11

    • One way is to have a public propery as Factor Mystic has suggested.
    • Or you could have a parametrized ctor and pass Personnel object. Although, this might create some problem with the design view of the form in Visual Studio.

提交回复
热议问题