Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27208

cell backGround

$
0
0
just encountering a tiny issue but i'v been pulling my hair to resolve it. after adding the custom controls (4 labels, a dataGridView and a button) 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

Viewing all articles
Browse latest Browse all 27208

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>