Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom button click event problem

Status
Not open for further replies.

dannG

Programmer
Jan 9, 2003
26
0
0
RO
Hy
I tried to develop a simple button control. It inherits "Inherits System.Windows.Forms.Button".
When I try to bind some tasks to its click event, nothing happening.

I don't know where is the problem.
pls help
thanks
some additional things:

Option Strict On

Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.Drawing
Imports System.Data
Imports System.Windows.Forms
Imports System.Drawing.Design
Imports proJ.dannFB' <B>this is the class where I defined the button</B>

....
#Region " Overrides "
Private Sub OnClickBtn1(ByVal sender As Object, ByVal e As System.EventArgs) Handles FdannB1.Click

FdannB1.Selectat() = True
Invalidate()

FdannB1.Refresh()
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top