1
I’m trying to make a popup by right-clicking a mouse inside a GridView
.
I’m using the event MouseDown
and the event MouseUp
to do the popupControlContainer
appear and disappear.
but how to make it appear where the mouse is?
In research, I found here at Stackoverflow these two questions, but they are for WPF and I am working with Winforms:
Right-click options menu in datagrid
Right-click options menu selected in datagrid
I also found this question, however it is for component . NET, need for Devexpress:
Event code MouseDown
and MouseUp
private void click_right(object sender, MouseEventArgs e) // click com o botao do mouse direto em cima do grid view
{
if (e.Button == MouseButtons.Right) // botao direito
{
popupControlContainer1.Show();
}
}
private void upclick_right(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right) // botao direito
{
popupControlContainer1.Hide();
}
}
What is
popupControlContainer1
?– Jéf Bueno
@jbueno follows documentation: https://documentation.devexpress.com/#Windowsforms/clsDevExpressXtraBarsPopupControlContainertopic
– Thomas Erich Pimentel
@stderr thanks I’ll read.
– Thomas Erich Pimentel