Click here to Skip to main content
16,008,750 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Question[VB.NET/2.0] Clicking ok or cancel on MessageBox with other application using TCPListener Pin
SiXke5-Mar-10 1:20
SiXke5-Mar-10 1:20 
AnswerRe: [VB.NET/2.0] Clicking ok or cancel on MessageBox with other application using TCPListener Pin
Dave Kreskowiak5-Mar-10 2:18
mveDave Kreskowiak5-Mar-10 2:18 
QuestionWill an Excel 2007 application work in Excel 2003 Pin
KLangkilde4-Mar-10 23:36
KLangkilde4-Mar-10 23:36 
AnswerRe: Will an Excel 2007 application work in Excel 2003 Pin
Thomas Krojer5-Mar-10 2:53
Thomas Krojer5-Mar-10 2:53 
AnswerIncompatible file formats Pin
David Mujica5-Mar-10 3:13
David Mujica5-Mar-10 3:13 
AnswerRe: Will an Excel 2007 application work in Excel 2003 Pin
Dave Kreskowiak5-Mar-10 3:15
mveDave Kreskowiak5-Mar-10 3:15 
QuestionDynamicaly make a pop up menu item visible. Pin
karthickmani634-Mar-10 18:33
karthickmani634-Mar-10 18:33 
AnswerRe: Dynamicaly make a pop up menu item visible. Pin
Wayne Gaylard4-Mar-10 19:35
professionalWayne Gaylard4-Mar-10 19:35 
I take it that you are using a ContextMenuStrip to build the Popup Menu. I am also unsure where you are right clicking, whether it is a list box, listview, textbox or what, but the ContextMenuStrip has an Opening event which fires when opening (really ). You can use this event to check whether the filename ends with ".html" and then use the ContextMenu Items Visible property to display or hide the Item. I did a test with a label like so :

   Private Sub ContextMenuStrip1_Opening(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)Handles ContextMenuStrip1.Opening

    If Label1.Text Like "*.html" Then
        ContextMenuStrip1.Items(2).Visible = True
    Else
        ContextMenuStrip1.Items(2).Visible = False
    End If

End Sub


and it works fine.
GeneralRe: Dynamicaly make a pop up menu item visible. Pin
karthickmani634-Mar-10 22:50
karthickmani634-Mar-10 22:50 
GeneralRe: Dynamicaly make a pop up menu item visible. Pin
Wayne Gaylard4-Mar-10 23:35
professionalWayne Gaylard4-Mar-10 23:35 
GeneralRe: Dynamicaly make a pop up menu item visible. Pin
Gregory Gadow5-Mar-10 4:11
Gregory Gadow5-Mar-10 4:11 
QuestionChange workbook for read/ write Pin
stephan06074-Mar-10 8:32
stephan06074-Mar-10 8:32 
AnswerRe: Change workbook for read/ write Pin
Dave Kreskowiak4-Mar-10 9:03
mveDave Kreskowiak4-Mar-10 9:03 
GeneralRe: Change workbook for read/ write Pin
stephan06074-Mar-10 9:29
stephan06074-Mar-10 9:29 
GeneralRe: Change workbook for read/ write Pin
Dave Kreskowiak4-Mar-10 11:06
mveDave Kreskowiak4-Mar-10 11:06 
QuestionBackground color of message box Pin
Tufail Ahmad4-Mar-10 2:47
Tufail Ahmad4-Mar-10 2:47 
AnswerRe: Background color of message box Pin
Dave Kreskowiak4-Mar-10 3:44
mveDave Kreskowiak4-Mar-10 3:44 
GeneralRe: Background color of message box Pin
Tufail Ahmad4-Mar-10 18:05
Tufail Ahmad4-Mar-10 18:05 
GeneralRe: Background color of message box Pin
Anubhava Dimri4-Mar-10 18:19
Anubhava Dimri4-Mar-10 18:19 
GeneralRe: Background color of message box Pin
Dave Kreskowiak5-Mar-10 2:02
mveDave Kreskowiak5-Mar-10 2:02 
QuestionOffice Interop Exception in VB.NET1.1, Please help Pin
Puneet Bhatnagar4-Mar-10 1:53
Puneet Bhatnagar4-Mar-10 1:53 
QuestionGDI+ help Pin
nyt19723-Mar-10 23:43
professionalnyt19723-Mar-10 23:43 
AnswerRe: GDI+ help Pin
Wayne Gaylard4-Mar-10 0:50
professionalWayne Gaylard4-Mar-10 0:50 
AnswerRe: GDI+ help Pin
Dave Kreskowiak4-Mar-10 1:53
mveDave Kreskowiak4-Mar-10 1:53 
GeneralRe: GDI+ help Pin
nyt19724-Mar-10 19:24
professionalnyt19724-Mar-10 19:24 

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.