Click here to Skip to main content
15,911,360 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionInheriting Eventhandler in VB.NET from C# class library Pin
Mdnss15-Feb-10 21:32
Mdnss15-Feb-10 21:32 
AnswerRe: Inheriting Eventhandler in VB.NET from C# class library Pin
Steven J Jowett15-Feb-10 22:13
Steven J Jowett15-Feb-10 22:13 
QuestionRe: Inheriting Eventhandler in VB.NET from C# class library Pin
Mdnss15-Feb-10 22:22
Mdnss15-Feb-10 22:22 
AnswerRe: Inheriting Eventhandler in VB.NET from C# class library Pin
Steven J Jowett15-Feb-10 22:31
Steven J Jowett15-Feb-10 22:31 
QuestionRe: Inheriting Eventhandler in VB.NET from C# class library [modified] Pin
Mdnss15-Feb-10 22:38
Mdnss15-Feb-10 22:38 
AnswerRe: Inheriting Eventhandler in VB.NET from C# class library Pin
Steven J Jowett15-Feb-10 23:17
Steven J Jowett15-Feb-10 23:17 
GeneralRe: Inheriting Eventhandler in VB.NET from C# class library Pin
Mdnss15-Feb-10 23:35
Mdnss15-Feb-10 23:35 
AnswerRe: Inheriting Eventhandler in VB.NET from C# class library Pin
rhuiden16-Feb-10 8:49
rhuiden16-Feb-10 8:49 
The last one is easy
SomeControl.ListOpened += new EventHandler(SomeControl_ListOpened);

converts to
AddHandler SomeControl.ListOpened, Addressof SomeControl_ListOpened


The other two are rather tricky. They use lambda functions which VB doesn't really support. Essentially
SomeControl.SiteReached += (s, ea) => miBack.Enabled = false;

Says, "Add a new handler for SiteReached that takes two parameters (s and ea). This function will set miBack.Enabled = False."

Making the Sub in VB is rather easy
Sub SomeControl_SiteReached(s as Sender, ea as System.EventArgs)

The hard part is duplicating the middle. If miBack is global or accessible from SomeControl_SiteReached then you are fine. If miBack is local to ManuItem1_Click, then you have a problem. You will have to find some way to change the Enabled state for miBack.
QuestionHow to fire specfied hot key on Form Keydown? Pin
mdrizwan_115-Feb-10 19:18
mdrizwan_115-Feb-10 19:18 
AnswerRe: How to fire specfied hot key on Form Keydown? Pin
εїзεїзεїз15-Feb-10 23:44
εїзεїзεїз15-Feb-10 23:44 
GeneralRe: How to fire specfied hot key on Form Keydown? Pin
TheComputerMan16-Feb-10 17:25
TheComputerMan16-Feb-10 17:25 
QuestionLINQ Query for Sum [with null values Column from Datatable] ? Pin
Paramu197315-Feb-10 2:46
Paramu197315-Feb-10 2:46 
AnswerRe: LINQ Query for Sum [with null values Column from Datatable] ? Pin
nlarson1115-Feb-10 3:49
nlarson1115-Feb-10 3:49 
Questionneed project Pin
md aazharuddin15-Feb-10 1:23
md aazharuddin15-Feb-10 1:23 
AnswerRe: need project [modified] Pin
TheComputerMan15-Feb-10 2:20
TheComputerMan15-Feb-10 2:20 
GeneralRe: need project Pin
DaveAuld15-Feb-10 4:51
professionalDaveAuld15-Feb-10 4:51 
AnswerRe: need project Pin
Ashfield15-Feb-10 3:19
Ashfield15-Feb-10 3:19 
QuestionSMTP emailing [******CLOSED*******] Pin
εїзεїзεїз15-Feb-10 0:24
εїзεїзεїз15-Feb-10 0:24 
AnswerRe: SMTP emailing Pin
Richard MacCutchan15-Feb-10 2:31
mveRichard MacCutchan15-Feb-10 2:31 
GeneralRe: SMTP emailing Pin
εїзεїзεїз15-Feb-10 4:17
εїзεїзεїз15-Feb-10 4:17 
GeneralRe: SMTP emailing Pin
Eddy Vluggen15-Feb-10 7:02
professionalEddy Vluggen15-Feb-10 7:02 
AnswerRe: SMTP emailing Pin
DaveAuld15-Feb-10 2:38
professionalDaveAuld15-Feb-10 2:38 
GeneralRe: SMTP emailing Pin
εїзεїзεїз15-Feb-10 4:15
εїзεїзεїз15-Feb-10 4:15 
AnswerRe: SMTP emailing Pin
DaveAuld15-Feb-10 4:23
professionalDaveAuld15-Feb-10 4:23 
GeneralRe: SMTP emailing Pin
David Skelly15-Feb-10 5:12
David Skelly15-Feb-10 5:12 

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.