G
Guest
Hi,
I am using DataGridview in my application. In that i am able to display
images. when i click the any cell of the datagrid i wanted to open a new
Frameless window(which contains some checkboxes and lables) on top of that
cell. but i am not able to display that form on top of that cell. i am using
the code like this
Point aPoint = dataGridview1.GetCellDisplayRectangle(e.ColumnIndex,
e.RowIndex, true).Location;
aForm = new Form();
// aForm.Location = new Point(600,200);
aForm.StartPosition = FormStartPosition.CenterParent;
aForm.Location = new Point(dataGridview1.Location.X + aPoint.X ,
aPoint.Y);
aForm.Size = new Size(115, 54);
aForm.ControlBox = false;
aForm.FormBorderStyle = FormBorderStyle.None;
aForm.BackColor = Color.Blue;
aForm.TopMost = true;
aForm.Deactivate += new EventHandler(aForm_Deactivate);
aForm.AutoSizeMode = AutoSizeMode.GrowAndShrink;
Can u please tell me how to display that frameless dialog on top of that
cell, i am not able to display the form on top.. it is displaying some where..
Thanks in advance
I am using DataGridview in my application. In that i am able to display
images. when i click the any cell of the datagrid i wanted to open a new
Frameless window(which contains some checkboxes and lables) on top of that
cell. but i am not able to display that form on top of that cell. i am using
the code like this
Point aPoint = dataGridview1.GetCellDisplayRectangle(e.ColumnIndex,
e.RowIndex, true).Location;
aForm = new Form();
// aForm.Location = new Point(600,200);
aForm.StartPosition = FormStartPosition.CenterParent;
aForm.Location = new Point(dataGridview1.Location.X + aPoint.X ,
aPoint.Y);
aForm.Size = new Size(115, 54);
aForm.ControlBox = false;
aForm.FormBorderStyle = FormBorderStyle.None;
aForm.BackColor = Color.Blue;
aForm.TopMost = true;
aForm.Deactivate += new EventHandler(aForm_Deactivate);
aForm.AutoSizeMode = AutoSizeMode.GrowAndShrink;
Can u please tell me how to display that frameless dialog on top of that
cell, i am not able to display the form on top.. it is displaying some where..
Thanks in advance