Click here to Skip to main content
15,915,093 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow Can i detect return key in datagridTextBoxColumn Pin
intibnin24-Dec-02 22:49
intibnin24-Dec-02 22:49 
AnswerRe: How Can i detect return key in datagridTextBoxColumn Pin
Tatham26-Dec-02 6:44
Tatham26-Dec-02 6:44 
GeneralRe: How Can i detect return key in datagridTextBoxColumn Pin
intibnin30-Dec-02 4:55
intibnin30-Dec-02 4:55 
GeneralRe: How Can i detect return key in datagridTextBoxColumn Pin
Tatham30-Dec-02 5:03
Tatham30-Dec-02 5:03 
Generaltoolbar_button click Pin
Anonymous24-Dec-02 10:30
Anonymous24-Dec-02 10:30 
GeneralRe: toolbar_button click Pin
Nick Seng25-Dec-02 15:48
Nick Seng25-Dec-02 15:48 
GeneralLabelArray and MenuItemArray Pin
Ilan Ehrenfeld23-Dec-02 23:34
Ilan Ehrenfeld23-Dec-02 23:34 
GeneralRe: LabelArray and MenuItemArray Pin
Nick Seng25-Dec-02 15:40
Nick Seng25-Dec-02 15:40 
Both these object are from the vb6.compatibility namespace and are used to represent control array when upgrading a project from vb6 to .net. Microsoft does not recommend the use of these objects for new .net projects sinse they will not support it in later versions. However, if you still want to use them...

First add the controls to the form, say lblArray,lbl_0,lbl_1,lbl_2

then

<br />
Public Sub Form_Load()<br />
    lblArray.SetIndex(lbl_0,Ctype(0,Short)<br />
    lblArray.SetIndex(lbl_1,Ctype(1,Short)<br />
    lblArray.SetIndex(lbl_2,Ctype(2,Short)<br />
End Sub<br />

You can then reference these controls as lblArray(i), where i = 0,1,2

though IMHO, it's better than you not use them. Instead just declare an array of labels and assign each control to it

Notorious SMC



The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain

Get your facts first, and then you can distort them as much as you please
Mark Twain
GeneralLaunching executable file Pin
Desmond23-Dec-02 7:42
Desmond23-Dec-02 7:42 
GeneralRe: Launching executable file Pin
Ray Cassick23-Dec-02 9:29
Ray Cassick23-Dec-02 9:29 
QuestionHow to pass a ADO object as a parameter to a function? Pin
Anonymous22-Dec-02 17:25
Anonymous22-Dec-02 17:25 
AnswerRe: How to pass a ADO object as a parameter to a function? Pin
Nick Seng22-Dec-02 17:57
Nick Seng22-Dec-02 17:57 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Anonymous22-Dec-02 18:40
Anonymous22-Dec-02 18:40 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Nick Seng22-Dec-02 20:01
Nick Seng22-Dec-02 20:01 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Anonymous22-Dec-02 20:41
Anonymous22-Dec-02 20:41 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Ray Cassick23-Dec-02 7:02
Ray Cassick23-Dec-02 7:02 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Nick Seng25-Dec-02 14:48
Nick Seng25-Dec-02 14:48 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Jason McBurney10-Jan-03 13:30
Jason McBurney10-Jan-03 13:30 
GeneralVB and pointer to function Pin
Asad raza20-Dec-02 21:37
Asad raza20-Dec-02 21:37 
GeneralRe: VB and pointer to function Pin
Ray Cassick23-Dec-02 7:07
Ray Cassick23-Dec-02 7:07 
GeneralCapture output Pin
Teir20-Dec-02 19:15
Teir20-Dec-02 19:15 
GeneralRe: Capture output Pin
Ray Cassick23-Dec-02 7:08
Ray Cassick23-Dec-02 7:08 
GeneralRe: Capture output Pin
Tatham26-Dec-02 6:22
Tatham26-Dec-02 6:22 
GeneralRe: Capture output Pin
Ray Cassick26-Dec-02 6:27
Ray Cassick26-Dec-02 6:27 
GeneralRe: Capture output Pin
Tatham26-Dec-02 6:34
Tatham26-Dec-02 6:34 

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.