Advertisement
Mi4_Slayer

GetCurrentMethod().Name

Sep 20th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.53 KB | None | 0 0
  1. Imports System.Data.SqlClient
  2. Imports System.Reflection.MethodBase
  3. Public Class Form1
  4.     ' Variables Globale pour la feuille
  5.     Dim DR As SqlDataReader ' Un Seul
  6.     Dim cn As SqlConnection ' Une seule
  7.     Dim comRech As SqlCommand ' Plusieurs
  8.     Public methodName
  9.  
  10.  
  11.  
  12.  
  13.  
  14.     Private Sub cmdNouveau_Click(sender As Object, e As EventArgs) Handles cmdNouveau.Click
  15.         'methodName = System.Reflection.MethodBase.GetCurrentMethod().Name
  16.         methodName = GetCurrentMethod().Name
  17.         MsgBox(methodName)
  18.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement