Click here to Skip to main content
15,891,431 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to open word or notepad from the vb.net link? Pin
Anonymous12-Sep-05 19:35
Anonymous12-Sep-05 19:35 
GeneralRe: How to open word or notepad from the vb.net link? Pin
Anonymous12-Sep-05 20:29
Anonymous12-Sep-05 20:29 
GeneralRe: How to open word or notepad from the vb.net link? Pin
PranjalSharma12-Sep-05 21:15
PranjalSharma12-Sep-05 21:15 
GeneralRe: How to open word or notepad from the vb.net link? Pin
Anonymous12-Sep-05 23:05
Anonymous12-Sep-05 23:05 
QuestionHow to name an user-defined range into a excel file using .net language?? Pin
hustsay2312-Sep-05 17:13
hustsay2312-Sep-05 17:13 
QuestionContext Menus and Indexes Pin
No-e12-Sep-05 10:00
No-e12-Sep-05 10:00 
AnswerRe: Context Menus and Indexes Pin
Luis Alonso Ramos12-Sep-05 10:54
Luis Alonso Ramos12-Sep-05 10:54 
AnswerRe: Context Menus and Indexes Pin
Briga12-Sep-05 22:12
Briga12-Sep-05 22:12 
Sorry for you but controls (like menuitems) do not support array indexing anymore. But that doesn't mean that there are newer (and better) ways of doing it. Here's a quick one.

Let's suppose the actions are stored in an array called act. Now assign to every menu item the "equivalent" index in the TAG property. Then hook all the click event to a single procedure:

private sub myclick(sender as object,e as...) handles menu1.click,menu2.click,...ecc
myaction=act(cint(ctype(sender,menuitem).tag))
end sub

Every menuitem click will go back to a single procedure (like in the array in VB6). By extracting the TAG field you can get the index (has to be converted from a string).

Hope it helps.
GeneralRe: Context Menus and Indexes Pin
No-e13-Sep-05 4:38
No-e13-Sep-05 4:38 
GeneralRe: Context Menus and Indexes Pin
Briga15-Sep-05 23:32
Briga15-Sep-05 23:32 
QuestionINSERT INTO database Pin
daviiie12-Sep-05 9:08
daviiie12-Sep-05 9:08 
AnswerRe: INSERT INTO database Pin
Dave Kreskowiak12-Sep-05 10:04
mveDave Kreskowiak12-Sep-05 10:04 
GeneralRe: INSERT INTO database Pin
daviiie12-Sep-05 12:33
daviiie12-Sep-05 12:33 
GeneralRe: INSERT INTO database Pin
Christian Graus12-Sep-05 12:51
protectorChristian Graus12-Sep-05 12:51 
AnswerRe: INSERT INTO database Pin
KaptinKrunch12-Sep-05 14:32
KaptinKrunch12-Sep-05 14:32 
QuestionForm Loading Pin
No-e12-Sep-05 8:06
No-e12-Sep-05 8:06 
AnswerRe: Form Loading Pin
Dave Kreskowiak12-Sep-05 9:43
mveDave Kreskowiak12-Sep-05 9:43 
AnswerRe: Form Loading Pin
namazikhah12-Sep-05 9:51
namazikhah12-Sep-05 9:51 
QuestionDataBinding in VB 2005 Pin
watagal12-Sep-05 7:46
watagal12-Sep-05 7:46 
Questionprint a webpage in vb.net Pin
jelsner12-Sep-05 7:45
jelsner12-Sep-05 7:45 
AnswerRe: print a webpage in vb.net Pin
Dave Kreskowiak12-Sep-05 9:52
mveDave Kreskowiak12-Sep-05 9:52 
QuestionErl in VB.NET Pin
maroche12-Sep-05 6:49
maroche12-Sep-05 6:49 
AnswerRe: Erl in VB.NET Pin
Dave Kreskowiak12-Sep-05 8:02
mveDave Kreskowiak12-Sep-05 8:02 
QuestionFile Sharing Violation Problem - Remoting Pin
PranjalSharma12-Sep-05 2:36
PranjalSharma12-Sep-05 2:36 
AnswerRe: File Sharing Violation Problem - Remoting Pin
Steve Pullan12-Sep-05 14:00
Steve Pullan12-Sep-05 14:00 

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.