Solved

why?

Posted on 2003-10-22
5
162 Views
Last Modified: 2010-05-03
AddHandler btnDivide.Click, AddressOf Me.btnDivide_Click

but vb.net says     "btnDivide_Click" is not a member of this form

why?   I'm sure ,I put this button in that form.
0
Comment
Question by:gegou
5 Comments
 

Expert Comment

by:eliaslopezgtz
ID: 9601304
you dont have to specify addhandler just do...
public sub btndivid.click handles me.btndivide_click
that's the way to do this in vb .net
with the keyword handles
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 9601683
you may have a BUTTON named btnDivide, but do you in fact have a SUB declared as Private Sub btnDivied_Click(byVal sender as Object, byVal e as System.EventArgs) ?  That is necessary for the

AddressOf Me.btnDivide_Click

part of the AddHandler line to work properly.

but eliaslopezgtz is correct, it is USUALLY not necessay to manually add Event Handlers.

AW
0
 
LVL 19

Accepted Solution

by:
Desp earned 125 total points
ID: 9602154
try to replace the line:

AddHandler btnDivide.Click, AddressOf Me.btnDivide_Click
with
AddHandler btnDivide.Click, New EventHandler(AddressOf btnDivide_Click)

i think you have put that button correctly on your form..
but accidently you have deleted the subroutine that handles  its "Click" Event
in short have "btnDivide" on your form. But you dont have "btnDivide_Click" in your code
0
 
LVL 27

Expert Comment

by:planocz
ID: 10154704
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from gegou from 10/22/2003 comment
Award points to Desp is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now