Click here to Skip to main content
15,921,028 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Arraylist.Index(Object) help please. Pin
The Man from U.N.C.L.E.27-Nov-09 0:38
The Man from U.N.C.L.E.27-Nov-09 0:38 
GeneralRe: Arraylist.Index(Object) help please. Pin
Geoff_300127-Nov-09 1:21
Geoff_300127-Nov-09 1:21 
Questionget and compare ascii code in vb.Net Pin
negar karimi26-Nov-09 22:46
negar karimi26-Nov-09 22:46 
AnswerRe: get and compare ascii code in vb.Net Pin
dan!sh 26-Nov-09 23:14
professional dan!sh 26-Nov-09 23:14 
GeneralRe: get and compare ascii code in vb.Net Pin
negar karimi27-Nov-09 21:09
negar karimi27-Nov-09 21:09 
GeneralRe: get and compare ascii code in vb.Net Pin
dan!sh 28-Nov-09 6:09
professional dan!sh 28-Nov-09 6:09 
AnswerRe: get and compare ascii code in vb.Net Pin
Shameel26-Nov-09 23:14
professionalShameel26-Nov-09 23:14 
AnswerRe: get and compare ascii code in vb.Net Pin
Luc Pattyn27-Nov-09 0:24
sitebuilderLuc Pattyn27-Nov-09 0:24 
Hi,

some basic info for you:
1. In .NET all characters and strings are Unicode, not ASCII.
2. Hitting a key causes several events, starting with a KeyDown; have a look at KeyEventArgs
3. Keys are identified primarily by their KeyCode, not their KeyChar
4. there is a Keys enumeration to help you identify keys, including all the special keys.
5. only some keys (the ones typically generating text) also fire the KeyPress event
6. you can influence some of the key handling by using ProcessCommandKey, IsInputKey, and maybe some more; however you would seldom need these.

So start using KeyDown event and KeyCode value.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


QuestionArrange database Column entries by ascending order. Pin
jeshra27926-Nov-09 19:19
jeshra27926-Nov-09 19:19 
AnswerRe: Arrange database Column entries by ascending order. Pin
dan!sh 26-Nov-09 19:30
professional dan!sh 26-Nov-09 19:30 
AnswerRe: Arrange database Column entries by ascending order. Pin
Shameel26-Nov-09 19:46
professionalShameel26-Nov-09 19:46 
AnswerRe: Arrange database Column entries by ascending order. Pin
Vimalsoft(Pty) Ltd26-Nov-09 22:20
professionalVimalsoft(Pty) Ltd26-Nov-09 22:20 
Question[VB6] On Change Event issues Pin
Blake Dickson26-Nov-09 18:52
Blake Dickson26-Nov-09 18:52 
AnswerRe: [VB6] On Change Event issues Pin
Shameel26-Nov-09 19:50
professionalShameel26-Nov-09 19:50 
AnswerRe: [VB6] On Change Event issues Pin
Vimalsoft(Pty) Ltd26-Nov-09 22:09
professionalVimalsoft(Pty) Ltd26-Nov-09 22:09 
QuestionSelecting MAX value from a Database column. Pin
jeshra27926-Nov-09 18:35
jeshra27926-Nov-09 18:35 
AnswerRe: Selecting MAX value from a Database column. Pin
dan!sh 26-Nov-09 19:15
professional dan!sh 26-Nov-09 19:15 
AnswerRe: Selecting MAX value from a Database column. Pin
Shameel26-Nov-09 19:53
professionalShameel26-Nov-09 19:53 
AnswerRe: Selecting MAX value from a Database column. Pin
Niladri_Biswas29-Nov-09 0:49
Niladri_Biswas29-Nov-09 0:49 
QuestionAutomation Error : Library Not Registered [modified]:It's Urgent Pin
Ashish Kumar Vyas26-Nov-09 17:11
Ashish Kumar Vyas26-Nov-09 17:11 
AnswerRe: Automation Error : Library Not Registered [modified]:It's Urgent Pin
Shameel26-Nov-09 19:56
professionalShameel26-Nov-09 19:56 
GeneralRe: Automation Error : Library Not Registered [modified]:It's Urgent Pin
Ashish Kumar Vyas26-Nov-09 23:44
Ashish Kumar Vyas26-Nov-09 23:44 
GeneralRe: Automation Error : Library Not Registered [modified]:It's Urgent Pin
Shameel27-Nov-09 2:04
professionalShameel27-Nov-09 2:04 
QuestionOpen automatically excel preview using vb Pin
C#Coudou26-Nov-09 15:26
C#Coudou26-Nov-09 15:26 
AnswerRe: Open automatically excel preview using vb Pin
dan!sh 26-Nov-09 19:03
professional dan!sh 26-Nov-09 19:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.