Solved

why?

Posted on 2003-10-22
5
174 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

839 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