1 Attachment(s)
[RESOLVED] Custom control
Hi All,
i need some suggestions on how to achieve this please, my program records team and team member names as they come in. i need to display these teams (in this order: Last in shows first ) in blocks, with name, members and a close button, see attached image, i was thinking a custom control with a label header, gridview and a button. and create these objects on the fly, as more teams come in, and maybe use a table layout control.:confused:
Any better suggestions are appreciated'
Thanks in advance :wave::wave:
Attachment 100603
Re: [RESOLVED] Custom control
I ended up going with dumfiddlin suggestion, just encountring a tiny issue but i'v been pulling my hair to resolve it. after adding the custom controls into the form, see structure below,
-- Main Form
-- > Screen Form : called from Main Form on a button click (ShowDialog(me))
-- > User controls: dynamically added to Screen Form
It is all fine except, on each added User control, first cell on first row of the dataGrid seems to inherit the background of MainForm e.g. cell(0,0) backround would be the object with similar location property on MainForm, which in my case is a button, so my cell bakgnd is the button colour and a part of the button text property.
I tried me.refresh on the userControl constructer, but was no joy , any ideas ???? Thanks