Click here to Skip to main content
15,891,409 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow can I get the event when user using DELETE key to delete a ROW of a datagid table? Pin
ATC12-May-04 11:05
ATC12-May-04 11:05 
AnswerRe: How can I get the event when user using DELETE key to delete a ROW of a datagid table? Pin
shinay12-May-04 19:57
shinay12-May-04 19:57 
GeneralRe: How can I get the event when user using DELETE key to delete a ROW of a datagid table? Pin
ATC31-May-04 8:28
ATC31-May-04 8:28 
GeneralCould not find installable ISAM Pin
Member 33182312-May-04 8:53
Member 33182312-May-04 8:53 
QuestionWhen are events fired? Pin
PaleyX12-May-04 7:57
PaleyX12-May-04 7:57 
AnswerRe: When are events fired? Pin
Dave Kreskowiak13-May-04 7:24
mveDave Kreskowiak13-May-04 7:24 
GeneralRe: When are events fired? Pin
PaleyX18-May-04 16:49
PaleyX18-May-04 16:49 
GeneralRe: When are events fired? Pin
Dave Kreskowiak19-May-04 2:44
mveDave Kreskowiak19-May-04 2:44 
OK. After going back and re-reading the original post, I misunderstood you.

Calling the Select methods in the ListView and TreeViews will NOT fire the AfterSelect events). They will only fire on mouse clicks. But, you can call those functions from another form's code if those functions are marked public. A better method would be to have your event handlers call these functions seperatly so you can make the functions public and not the eventhandlers:

The following is not useable code. It is a pseudo-code example for illustration purposes only!

Form1:
Dim dlg As New Dialog1
dlg.PopulateTreeView()
dlg.AfterSelectHandlerFunction()
dlg.ShowDialog()

Dialog1:
Private Sub TreeView_AfterSelect([eventargs stuff]) Handles TreeView.AfterSelect
    AfterSelectHandlerFunction()
End Sub
 
Public Sub AfterSelectHandlerFunction()
    [code to do whatever here]
End Sub



RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome

Generalbackground image taking over toolbar Pin
Phaldo12-May-04 5:07
Phaldo12-May-04 5:07 
GeneralSystem Properties VB6 Pin
DragonByte12-May-04 4:41
DragonByte12-May-04 4:41 
GeneralRe: System Properties VB6 Pin
DragonByte12-May-04 4:44
DragonByte12-May-04 4:44 
GeneralHelp for mschart problem Pin
allen_homer12-May-04 4:32
allen_homer12-May-04 4:32 
Generaladd commandbarbutton in outlook 2k3 Pin
sebmafate12-May-04 2:45
sebmafate12-May-04 2:45 
GeneralDB accessability problems Pin
Greg Eales12-May-04 0:19
Greg Eales12-May-04 0:19 
GeneralRe: DB accessability problems Pin
Dave Kreskowiak12-May-04 2:50
mveDave Kreskowiak12-May-04 2:50 
GeneralRe: DB accessability problems Pin
Greg Eales12-May-04 2:57
Greg Eales12-May-04 2:57 
GeneralRe: DB accessability problems Pin
Dave Kreskowiak13-May-04 7:21
mveDave Kreskowiak13-May-04 7:21 
GeneralInternet Monitor Pin
Rohan Kaul11-May-04 23:06
sussRohan Kaul11-May-04 23:06 
GeneralRe: Internet Monitor Pin
Dave Kreskowiak12-May-04 2:52
mveDave Kreskowiak12-May-04 2:52 
GeneralMonitoring Internet Pin
Anonymous11-May-04 23:00
Anonymous11-May-04 23:00 
GeneralRe: Monitoring Internet Pin
Dave Kreskowiak12-May-04 2:43
mveDave Kreskowiak12-May-04 2:43 
GeneralSystem.Web.Mail - Good/Bad or just plain ugly Pin
Greg Eales11-May-04 20:54
Greg Eales11-May-04 20:54 
GeneralRe: System.Web.Mail - Good/Bad or just plain ugly Pin
Dave Kreskowiak13-May-04 7:01
mveDave Kreskowiak13-May-04 7:01 
GeneralNon-inherited Textbox Pin
Aaron Eldreth11-May-04 15:26
Aaron Eldreth11-May-04 15:26 
GeneralRe: Non-inherited Textbox Pin
Dave Kreskowiak12-May-04 2:39
mveDave Kreskowiak12-May-04 2:39 

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.