Click here to Skip to main content
15,924,036 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Connect to Remote Server Database from Local Machine Pin
tiggerc1-Jul-10 5:08
tiggerc1-Jul-10 5:08 
Questiondebug assertion failed Pin
Member 477502023-Jun-10 19:29
Member 477502023-Jun-10 19:29 
AnswerRe: debug assertion failed Pin
Eddy Vluggen23-Jun-10 21:16
professionalEddy Vluggen23-Jun-10 21:16 
QuestionVB6: System Error &H80004015 Pin
willempipi23-Jun-10 5:07
willempipi23-Jun-10 5:07 
AnswerRe: VB6: System Error &H80004015 Pin
Eddy Vluggen23-Jun-10 21:14
professionalEddy Vluggen23-Jun-10 21:14 
GeneralRe: VB6: System Error &H80004015 Pin
willempipi23-Jun-10 21:20
willempipi23-Jun-10 21:20 
QuestionContextMenuStrip not highlighting Items according to mouse movement Pin
Trevortni22-Jun-10 10:04
Trevortni22-Jun-10 10:04 
AnswerRe: ContextMenuStrip not highlighting Items according to mouse movement Pin
DaveAuld22-Jun-10 20:00
professionalDaveAuld22-Jun-10 20:00 
What are you trying to do that you have all this code in the mousedown events?

Whenever i have used context menu's in the past i haven't gone to all that trouble.

For example, the code below is handles on a button.click, It creates a new context menu, adds to click handlers for the menus events and shows the menu next to the button.

VB
Private Sub ButtonSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonSave.Click

    Dim theMenu As New ContextMenuStrip

    theMenu.Items.Add("Export to XML", MenuExportXML.Image, AddressOf MenuExportXML_Click)
    theMenu.Items.Add("Export to CSV", MenuExportCSV.Image, AddressOf MenuExportCSV_Click)

    Dim p As New Point
    p.X = ButtonSave.Width
    p.Y = ButtonSave.Top

    theMenu.Show(ButtonSave, p)

End Sub

Dave

Don't forget to rate messages!
Find Me On: Web|Facebook|Twitter|LinkedIn
Waving? dave.m.auld[at]googlewave.com


Questioncould I write text in two or three lines to a cell with VB.NET? Pin
sanyexian22-Jun-10 6:17
sanyexian22-Jun-10 6:17 
AnswerRe: could I write text in two or three lines to a cell with VB.NET? Pin
Luc Pattyn22-Jun-10 6:33
sitebuilderLuc Pattyn22-Jun-10 6:33 
GeneralRe: could I write text in two or three lines to a cell with VB.NET? Pin
sanyexian22-Jun-10 14:49
sanyexian22-Jun-10 14:49 
GeneralRe: could I write text in two or three lines to a cell with VB.NET? Pin
Luc Pattyn22-Jun-10 15:01
sitebuilderLuc Pattyn22-Jun-10 15:01 
AnswerRe: could I write text in two or three lines to a cell with VB.NET? Pin
Sonhospa22-Jun-10 12:04
Sonhospa22-Jun-10 12:04 
GeneralRe: could I write text in two or three lines to a cell with VB.NET? Pin
sanyexian22-Jun-10 14:42
sanyexian22-Jun-10 14:42 
AnswerRe: could I write text in two or three lines to a cell with VB.NET? Pin
Sonhospa23-Jun-10 8:38
Sonhospa23-Jun-10 8:38 
AnswerRe: could I write text in two or three lines to a cell with VB.NET? Pin
DaveAuld23-Jun-10 2:10
professionalDaveAuld23-Jun-10 2:10 
QuestionNeed help with type Pin
User 584223722-Jun-10 6:07
User 584223722-Jun-10 6:07 
AnswerRe: Need help with type Pin
Dr.Walt Fair, PE22-Jun-10 7:07
professionalDr.Walt Fair, PE22-Jun-10 7:07 
AnswerRe: Need help with type Pin
Luc Pattyn22-Jun-10 7:26
sitebuilderLuc Pattyn22-Jun-10 7:26 
GeneralRe: Need help with type Pin
User 584223727-Jun-10 1:00
User 584223727-Jun-10 1:00 
QuestionWhen Is The Backgroundworker Really Completed? Pin
Sonhospa21-Jun-10 8:05
Sonhospa21-Jun-10 8:05 
AnswerRe: When Is The Backgroundworker Really Completed? Pin
Luc Pattyn21-Jun-10 8:30
sitebuilderLuc Pattyn21-Jun-10 8:30 
AnswerRe: When Is The Backgroundworker Really Completed? Pin
Аslam Iqbal12-Jul-10 12:45
professionalАslam Iqbal12-Jul-10 12:45 
GeneralRe: When Is The Backgroundworker Really Completed? Pin
Sonhospa13-Jul-10 11:06
Sonhospa13-Jul-10 11:06 
GeneralRe: When Is The Backgroundworker Really Completed? Pin
Аslam Iqbal14-Jul-10 8:08
professionalАslam Iqbal14-Jul-10 8:08 

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.