Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the clicked object on a context menu
Message
De
25/08/2005 05:48:50
 
 
À
25/08/2005 01:23:12
Information générale
Forum:
ASP.NET
Catégorie:
Menus
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP
Divers
Thread ID:
01043684
Message ID:
01043734
Vues:
18
Thanks bonnie for the debug suggestion.

I modified my code like this:

-----------------------------------------------------------------------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

selected = "INIT"
Debug.WriteLine(selected + " before")

cm.Show(TextBox1, New Point(0, 0))

Debug.WriteLine(selected + " after")
End Sub

Private Sub mnuHandler(ByVal sender As Object, ByVal e As System.EventArgs)
selected = CType(sender, MenuItem).Text
Debug.WriteLine(selected + " inside")
End Sub
-----------------------------------------------------------------------------

This is the Debug output if I select "Text2"
INIT before
INIT after
Text2 inside


Is there a way to make the Debug output like this?
INIT before
Text2 inside
Text2 after
OMAR C. IBRAHIM
----------
Programmer
STUDENT RECORDS & INFORMATION SYSTEM (SRIS)
Western Mindanao State University, Philippines
----------
Programmer
SSI Engineering & Architectural Designs and IT Center (SENARD ITC)
Zamboanga City, Philippines
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform