Click here to Skip to main content
15,505,667 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to update sql server data from excel data using VBA code by all User Pin
Member 1478441627-Mar-20 1:25
Member 1478441627-Mar-20 1:25 
AnswerRe: How to update sql server data from excel data using VBA code by all User Pin
ZurdoDev27-Mar-20 2:19
professionalZurdoDev27-Mar-20 2:19 
GeneralRe: How to update sql server data from excel data using VBA code by all User Pin
Member 1478441627-Mar-20 3:17
Member 1478441627-Mar-20 3:17 
Questionevent handler Pin
Member 1356965022-Mar-20 0:16
Member 1356965022-Mar-20 0:16 
AnswerRe: event handler Pin
Richard MacCutchan22-Mar-20 0:31
mveRichard MacCutchan22-Mar-20 0:31 
GeneralRe: event handler Pin
Member 1356965022-Mar-20 1:24
Member 1356965022-Mar-20 1:24 
GeneralRe: event handler Pin
Richard MacCutchan22-Mar-20 1:33
mveRichard MacCutchan22-Mar-20 1:33 
GeneralRe: event handler Pin
Member 1356965022-Mar-20 2:04
Member 1356965022-Mar-20 2:04 
Hi Richard MacCutchan 

This is what I done

Public Class myForm


   Public Sub New()
     MyBase.New()

     'This call is required by the Windows Form Designer.
     InitializeComponent()

     'Add any initialization after the InitializeComponent() call

     ' InputRTB is a richtextbox in myForm

     AddHandler InputRTB.TextChanged, AddressOf NewInputTextChanged

   End Sub

    ' slTextBox is a textbox in myForm

    Private Sub NewInputTextChanged        ' my event handler
         slTextBox.Text = InputRTB.Text.Length.ToString
    End Sub

    ' DoButton is a Button in myForm
    Private Sub DoButton_Click(sender As Object, e As EventArgs) Handles DoButton.Click

      RemoveHandler InputRTB.TextChanged, AddressOf NewInputTextChanged ' disable eventhandler
      DoProcess()
      AddHandler InputRTB.TextChanged, AddressOf NewInputTextChanged ' enable eventhandler

    End Sub

   . . .

End Class

Thank you very much

GeneralRe: event handler Pin
Richard MacCutchan22-Mar-20 5:03
mveRichard MacCutchan22-Mar-20 5:03 
GeneralRe: event handler Pin
Member 1356965022-Mar-20 5:18
Member 1356965022-Mar-20 5:18 
GeneralRe: event handler Pin
Richard MacCutchan22-Mar-20 5:47
mveRichard MacCutchan22-Mar-20 5:47 
GeneralRe: event handler Pin
Member 1356965022-Mar-20 6:01
Member 1356965022-Mar-20 6:01 
GeneralRe: event handler Pin
Richard MacCutchan22-Mar-20 6:12
mveRichard MacCutchan22-Mar-20 6:12 
GeneralRe: event handler Pin
Richard MacCutchan22-Mar-20 6:11
mveRichard MacCutchan22-Mar-20 6:11 
GeneralRe: event handler Pin
Member 1356965022-Mar-20 6:48
Member 1356965022-Mar-20 6:48 
GeneralRe: event handler Pin
Richard MacCutchan22-Mar-20 6:52
mveRichard MacCutchan22-Mar-20 6:52 
GeneralRe: event handler Pin
Member 1356965022-Mar-20 6:52
Member 1356965022-Mar-20 6:52 
GeneralRe: event handler Pin
Richard MacCutchan22-Mar-20 6:53
mveRichard MacCutchan22-Mar-20 6:53 
GeneralRe: event handler Pin
Member 1356965022-Mar-20 7:13
Member 1356965022-Mar-20 7:13 
GeneralRe: event handler Pin
Victor Nijegorodov22-Mar-20 1:48
Victor Nijegorodov22-Mar-20 1:48 
QuestionIssue Adding a WebService (WSDL) Pin
Member 1185690418-Mar-20 14:06
Member 1185690418-Mar-20 14:06 
Questionvb.net Pin
ago248616-Mar-20 2:23
ago248616-Mar-20 2:23 
SuggestionRe: vb.net Pin
Richard Deeming16-Mar-20 10:41
mveRichard Deeming16-Mar-20 10:41 
QuestionDeveloping a Restaurant Billing System Pin
Meax10-Mar-20 2:36
Meax10-Mar-20 2:36 
AnswerRe: Developing a Restaurant Billing System Pin
Eddy Vluggen10-Mar-20 3:05
professionalEddy Vluggen10-Mar-20 3:05 

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.