Click here to Skip to main content
15,888,250 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Waiting for a process to end uses too much CPU. Pin
Luc Pattyn18-Jun-09 14:52
sitebuilderLuc Pattyn18-Jun-09 14:52 
QuestionAny way to use constructor parameters within "dim as new"? Pin
supercat918-Jun-09 11:38
supercat918-Jun-09 11:38 
Questionwhat is the installation steps for windows application project ? Pin
ahlamissa18-Jun-09 10:23
ahlamissa18-Jun-09 10:23 
AnswerRe: what is the installation steps for windows application project ? Pin
EliottA18-Jun-09 10:53
EliottA18-Jun-09 10:53 
AnswerRe: what is the installation steps for windows application project ? Pin
Dave Kreskowiak18-Jun-09 11:28
mveDave Kreskowiak18-Jun-09 11:28 
QuestionScope (?) Problem in Excel VBA Pin
TheConfusedGuy18-Jun-09 9:29
TheConfusedGuy18-Jun-09 9:29 
AnswerRe: Scope (?) Problem in Excel VBA Pin
Dave Kreskowiak18-Jun-09 9:56
mveDave Kreskowiak18-Jun-09 9:56 
QuestionContext Menu Pin
No-e18-Jun-09 6:23
No-e18-Jun-09 6:23 
I created a control array (for slots)

Private Sub createlblSlotArray()
     Dim i As Short
     ReDim lblSlot(3)
     For i = 1 To 3
         lblSlot(i) = New System.Windows.Forms.Label
         With lblSlot(i)
             .Tag = i
             .BackColor = System.Drawing.Color.Blue
             .BorderStyle = BorderStyle.Fixed3D
             AddHandler .MouseUp, AddressOf Me.Label1_MouseUp
         End With
     Next
     Me.Controls.AddRange(lblSlot)
     lblSlot(1).Location = New System.Drawing.Point(50, 50)
     lblSlot(2).Location = New System.Drawing.Point(100, 70)
     lblSlot(3).Location = New System.Drawing.Point(100, 90)
 End Sub


I have an event to handle it

Private Sub Label1_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs)
      If e.Button = MouseButtons.Right Then
          ContextMenu1.Show(sender, New Point(e.X, e.Y))
      End If
  End Sub


All is perfect with the world, except one little thing. When I click on the form itself, I get the popup. Why do I get it on the form, how can I prevent this?

No-e
AnswerRe: Context Menu Pin
Jon_Boy18-Jun-09 6:37
Jon_Boy18-Jun-09 6:37 
GeneralRe: Context Menu Pin
No-e18-Jun-09 12:08
No-e18-Jun-09 12:08 
GeneralRe: Context Menu Pin
Jon_Boy19-Jun-09 6:09
Jon_Boy19-Jun-09 6:09 
AnswerRe: Context Menu Pin
Bahram.Zarrin27-Jun-09 5:14
Bahram.Zarrin27-Jun-09 5:14 
Questionmultipage problem in printpreview? Pin
JC.KaNNaN18-Jun-09 4:03
JC.KaNNaN18-Jun-09 4:03 
AnswerRe: multipage problem in printpreview? Pin
Luc Pattyn18-Jun-09 4:47
sitebuilderLuc Pattyn18-Jun-09 4:47 
GeneralRe: multipage problem in printpreview? Pin
JC.KaNNaN18-Jun-09 22:19
JC.KaNNaN18-Jun-09 22:19 
QuestionEtracting certain text from PDF document into a database Pin
kshincsk18-Jun-09 3:31
kshincsk18-Jun-09 3:31 
AnswerRe: Etracting certain text from PDF document into a database Pin
Dave Kreskowiak18-Jun-09 9:58
mveDave Kreskowiak18-Jun-09 9:58 
GeneralRe: Etracting certain text from PDF document into a database Pin
kshincsk19-Jun-09 0:58
kshincsk19-Jun-09 0:58 
GeneralRe: Etracting certain text from PDF document into a database Pin
Dave Kreskowiak19-Jun-09 4:27
mveDave Kreskowiak19-Jun-09 4:27 
QuestionCopyMemory in VB.Net Pin
Knight_Rider18-Jun-09 2:57
Knight_Rider18-Jun-09 2:57 
AnswerRe: CopyMemory in VB.Net Pin
Luc Pattyn18-Jun-09 3:34
sitebuilderLuc Pattyn18-Jun-09 3:34 
GeneralRe: CopyMemory in VB.Net Pin
Knight_Rider18-Jun-09 3:39
Knight_Rider18-Jun-09 3:39 
GeneralRe: CopyMemory in VB.Net Pin
Luc Pattyn18-Jun-09 3:43
sitebuilderLuc Pattyn18-Jun-09 3:43 
GeneralRe: CopyMemory in VB.Net Pin
Knight_Rider18-Jun-09 3:47
Knight_Rider18-Jun-09 3:47 
GeneralRe: CopyMemory in VB.Net Pin
Luc Pattyn18-Jun-09 3:51
sitebuilderLuc Pattyn18-Jun-09 3:51 

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.