Listbox object transfer in C# -
having frustrating problem listboxes c#.
i have class "worker", wich has parameters "id number", "name" , "pay". objective have 2 listboxes, lets phone call them 1 , 2. 1 has worker-objects in it, displays name of worker. have button that's supposed re-create selected worker box2, box2 displays id number , pay, name. far, have managed create copies name , nil else. lot tips!! :) (sorry english, i'm not native speaker)
all need set displaymember
of receiving listbox
name of property in class want displayed instead of tostring()
result.
this assumes have public properties in class.. if show class worker
we'll see if work.
it assumes don't re-create name whole listbox.item
! if show code we'll see if do..
c# listbox
No comments:
Post a Comment