
February 23rd, 2003, 02:52 AM
|
|
Registered User
|
|
Join Date: Feb 2003
Posts: 9
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
KeypressEventArgs
I removed the <> in the code below:<br><br>%@ Import Namespace="System" %<br>%@ Import Namespace = "System.ComponentModel" %<br>%@ Import Namespace = "System.Windows.Forms" %<br><br>script language="VB" runat="server"<br><br>Sub checkkey(sender As Object, e As KeypressEventArgs)<br> If e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then<br> e.Handled = false<br> e.KeyChar = Microsoft.VisualBasic.ChrW(13) <br> SendKeys {TAB} <br> End If<br><br>End Sub<br><br>1. Do I need to import namespace- componentmodel and windows.forms?<br><br>The above generate a compilation error of<br>Type 'KeypressEventArgs' is not defined.<br>Name 'SendKeys' is not declared. Is sendkeys a reserve word?<br><br>Please help.<br>Thanks <br>Ray
|