how to determine if you control is inside a panel or not?
-
how do you check if your, for example datagridview control or any control is inside a panel or not? using winforms any help is highly appreciated :D
Life - Dreams = Job TheCardinal BenPOS Systems
-
how do you check if your, for example datagridview control or any control is inside a panel or not? using winforms any help is highly appreciated :D
Life - Dreams = Job TheCardinal BenPOS Systems
-
how do you check if your, for example datagridview control or any control is inside a panel or not? using winforms any help is highly appreciated :D
Life - Dreams = Job TheCardinal BenPOS Systems
yourControl.Parent.GetType();
gives you the type of your Parent control, if you are interested in that. Without the .GetType() you'll get the control itself. Check if it's a panel like this:
if(yourControl.Parent is Panel)
{
MessageBox.Show("Hooray");
}var question = (_2b || !(_2b));
-
YourControl.Parent
property will tell that.It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
Honestly, one day in this forum, I'm not gonna get beaten to the punch. It's like tenth time in a row that's happened. ;>
var question = (_2b || !(_2b));
-
how do you check if your, for example datagridview control or any control is inside a panel or not? using winforms any help is highly appreciated :D
Life - Dreams = Job TheCardinal BenPOS Systems
thanks guys :D cheers
Life - Dreams = Job TheCardinal BenPOS Systems
-
Honestly, one day in this forum, I'm not gonna get beaten to the punch. It's like tenth time in a row that's happened. ;>
var question = (_2b || !(_2b));
-
:~:confused: Cannot understand it.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
You answered two minutes before me, therefore "beat me to the punch". And it seems like that has happened like 10 times to me already ;> "Someone beat me to the punch."
var question = (_2b || !(_2b));
-
You answered two minutes before me, therefore "beat me to the punch". And it seems like that has happened like 10 times to me already ;> "Someone beat me to the punch."
var question = (_2b || !(_2b));