Click here to Skip to main content
16,006,442 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to use FolderBrowserDialog? Pin
Zenly21-Jan-06 18:53
Zenly21-Jan-06 18:53 
QuestionMagic Library Menu Control-Help Pin
bgc-waterman14-Jan-06 8:38
bgc-waterman14-Jan-06 8:38 
AnswerRe: Magic Library Menu Control-Help Pin
Robert Rohde14-Jan-06 22:06
Robert Rohde14-Jan-06 22:06 
QuestionRe: Magic Library Menu Control-Help Pin
bgc-waterman16-Jan-06 1:33
bgc-waterman16-Jan-06 1:33 
AnswerRe: Magic Library Menu Control-Help Pin
Robert Rohde16-Jan-06 6:46
Robert Rohde16-Jan-06 6:46 
GeneralRe: Magic Library Menu Control-Help Pin
bgc-waterman16-Jan-06 10:08
bgc-waterman16-Jan-06 10:08 
GeneralRe: Magic Library Menu Control-Help Pin
bgc-waterman16-Jan-06 16:04
bgc-waterman16-Jan-06 16:04 
GeneralRe: Magic Library Menu Control-Help Pin
Robert Rohde16-Jan-06 20:32
Robert Rohde16-Jan-06 20:32 
You are very close Smile | :)
The problem comes from you variable definition:
Dim subLevelCommand1 = New MenuCommand

is implicitely translated by the compiler to this:
Dim subLevelCommand1 as Object
subLevelCommand1 = New MenuCommand

Thus you have an Object variable with just a MenuCommand as it contents, but the compiler isn't aware of that. Correct it should be:
Dim subLevelCommand1 as MenuCommand = New MenuCommand

Also the signature of the function OnExitSelected has to be changed:
C#
Public Sub OnExitSelected(ByVal sender As Object, ByVal e As EventArgs)
   Me.Close()
End Sub

Now everything should work fine Big Grin | :-D
GeneralRe: Magic Library Menu Control-Help Pin
bgc-waterman17-Jan-06 16:28
bgc-waterman17-Jan-06 16:28 
GeneralRe: Magic Library Menu Control-Help Pin
Robert Rohde17-Jan-06 19:53
Robert Rohde17-Jan-06 19:53 
QuestionRemove the back slash in a TextBox Pin
Bob Zagars14-Jan-06 8:18
Bob Zagars14-Jan-06 8:18 
AnswerRe: Remove the back slash in a TextBox Pin
Joshua Quick14-Jan-06 8:40
Joshua Quick14-Jan-06 8:40 
GeneralRe: Remove the (Forward) slash in a TextBox Pin
Bob Zagars14-Jan-06 8:46
Bob Zagars14-Jan-06 8:46 
GeneralRe: Remove the (Forward) slash in a TextBox Pin
Joshua Quick14-Jan-06 9:00
Joshua Quick14-Jan-06 9:00 
GeneralRe: Remove the (back) slash in a TextBox Pin
Bob Zagars14-Jan-06 10:38
Bob Zagars14-Jan-06 10:38 
AnswerRe: Remove the back slash in a TextBox Pin
Joshua Quick14-Jan-06 11:07
Joshua Quick14-Jan-06 11:07 
GeneralRe: Remove the back slash in a TextBox Pin
Bob Zagars14-Jan-06 11:28
Bob Zagars14-Jan-06 11:28 
GeneralRe: Remove the back slash in a TextBox Pin
Joshua Quick14-Jan-06 12:22
Joshua Quick14-Jan-06 12:22 
GeneralRe: Remove the back slash in a TextBox Pin
Bob Zagars14-Jan-06 12:38
Bob Zagars14-Jan-06 12:38 
GeneralRe: Remove the back slash in a TextBox Pin
Joshua Quick14-Jan-06 12:58
Joshua Quick14-Jan-06 12:58 
GeneralRe: Remove the back slash in a TextBox Pin
Bob Zagars14-Jan-06 13:14
Bob Zagars14-Jan-06 13:14 
GeneralRe: Remove the back slash in a TextBox Pin
Bob Zagars14-Jan-06 11:40
Bob Zagars14-Jan-06 11:40 
GeneralRe: Remove the back slash in a TextBox Pin
Joshua Quick14-Jan-06 12:04
Joshua Quick14-Jan-06 12:04 
GeneralRe: Remove the back slash in a TextBox Pin
Bob Zagars14-Jan-06 12:10
Bob Zagars14-Jan-06 12:10 
AnswerRe: Remove the back slash in a TextBox Pin
CodyGen15-Jan-06 4:37
CodyGen15-Jan-06 4:37 

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.