Hi How to set my widow position to be inside my frame or panel or rectangle?
frmTrnSummary objTrnSummary = new frmTrnSummary();
objTrnSummary.Owner = this;
objTrnSummary.Height = 410;
objTrnSummary.Width = 992;
var location = frame1.PointToScreen(new Point(100, 100));
objTrnSummary.Left = 0;
objTrnSummary.Top = 0;
I tried this but not working.
Note that —SA
location is declared, initialized, but never used. If this is not so, you show wrong code fragment. Never ignore compilation warning.
That's all, based on you insufficient information. You don't explain what it "
frmTrnSummary and other relevant detail.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)