Calling one event procedure from another - HOW-TO?
Calling one event procedure from another - HOW-TO?
(OP)
Colleagues,
In other IV-level languages (at least B4 .NET), I could do something like this (quasi-code, of course)
As it happens, such a need arose in my project (VS 2019, VB .NET). I tried to figure out how to do this call - and failed.
And this article in Help, https://learn.microsoft.com/en-us/dotnet/visual-ba..., doesn't help me.
Could anyone here "translate" this above code into this modern VB .NET, please?
TIA!
In other IV-level languages (at least B4 .NET), I could do something like this (quasi-code, of course)
CODE
PROC cboNumOfItems.SelectedIndexChanged() IF cboNumOfItems.Selected Index > 0 chkAllInOne.Enabled = True ELSE chkAllInOne.Enabled = False ENDIF ENDPROC PROC cboNumOfItems.KeyPress(KeyCode) IF KeyCode = 13 cboNumOfItems.SelectedIndexChanged() ' Calling another event procedure ENDIF ENDPROC
As it happens, such a need arose in my project (VS 2019, VB .NET). I tried to figure out how to do this call - and failed.
And this article in Help, https://learn.microsoft.com/en-us/dotnet/visual-ba..., doesn't help me.
Could anyone here "translate" this above code into this modern VB .NET, please?
TIA!
Regards,
Ilya
RE: Calling one event procedure from another - HOW-TO?
May get you on the right path...
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson
RE: Calling one event procedure from another - HOW-TO?
And even that latter can't be found in the MS documentation: https://learn.microsoft.com/en-us/dotnet/api/syste...:
Any other suggestions, colleagues, would be greatly appreciated!
Regards,
Ilya
RE: Calling one event procedure from another - HOW-TO?
CODE
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson
RE: Calling one event procedure from another - HOW-TO?
Thank you!
(I wonder why I didn't think it up myself... gettin' older, I guess!
Regards,
Ilya