My code:
private void inicializaComponentes()
{
// Inicializa
this.OnMouseMove += new
System.Windows.Forms.MouseEventHandler(this.mouseM ove);
}
private void mouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
bool faixa = false;
int posX = 0;
if(e.Y >= 1 && e.Y <= 14)
faixa = true;
for(int i = 0; i <= colunas.GetUpperBound(0); i++)
{
if(e.X >= posX && e.X <= posX + colunas[i].Largura)
colunas[i].MouseOver = faixa;
colunas[i].MouseOver = false;
posX = colunas[i].Largura + 1;
}
}
"Cole Breidenbach" <cy*********@yahoo.com> wrote in message
news:02****************************@phx.gbl...
Does the event wire up code designate a method within the
control container? Sounds like the method assigned to the
event is not available because of a scope issue.-----Original Message-----
Hi all,
Can anyone tell me what is this?
C:\Documents and Settings\Administrator\My
Documents\Visual StudioProjects\EditableTest\EditableTest\GridPanel.cs(4 0):
'System.Windows.Forms.Control.OnMouseMove
(System.Windows.Forms.MouseEventArgs)' denotes a 'method' which is not valid in the given
context
Thanks
Durand
.