datagrids

  • Thread starter Thread starter jhsu8999
  • Start date Start date
J

jhsu8999

Hi, all:
In VB6, I can do this:
private sub someGRD_keypress(ascii as integer)
'if user press 'enter' then do....
if (ascii = 13) then
.......
end if
end sub

How can I do this in VB.NET?
Thanks.
 
Just create the Sub in Visual Studio to get the right arguments and stuff...
then use parameter e to compare things with.

I think e.KeyChar will give you what you need on KeyPress. KeyDown will give
you other arguments.

/Lars
 
Hi did you know that there is for questions "How to do in dotNet what was
in VB6" is a special newsgroup.

microsoft.public.dotnet.languages.vb.upgrade

Cor
 
Back
Top