Click here to Skip to main content
12,449,253 members (59,216 online)

Visual Basic

 
AnswerRe: Events Pin
ProgramFOX26-Jan-13 3:52
member ProgramFOX26-Jan-13 3:52 
QuestionText Box Pin
Member 962135423-Jan-13 17:56
memberMember 962135423-Jan-13 17:56 
AnswerRe: Text Box Pin
Eddy Vluggen24-Jan-13 0:48
mvpEddy Vluggen24-Jan-13 0:48 
AnswerRe: Text Box Pin
Richard Deeming24-Jan-13 1:42
memberRichard Deeming24-Jan-13 1:42 
QuestionMasked Textbox Pin
Member 962135423-Jan-13 17:50
memberMember 962135423-Jan-13 17:50 
AnswerRe: Masked Textbox Pin
Richard MacCutchan23-Jan-13 23:09
mvpRichard MacCutchan23-Jan-13 23:09 
QuestionVb 6.0 youtube video downloader Pin
Nassimch23-Jan-13 8:24
memberNassimch23-Jan-13 8:24 
AnswerRe: Vb 6.0 youtube video downloader Pin
Dave Kreskowiak23-Jan-13 11:17
mvpDave Kreskowiak23-Jan-13 11:17 
QuestionHow to convert vb.net application to work online Pin
napolewn22-Jan-13 0:54
membernapolewn22-Jan-13 0:54 
AnswerRe: How to convert vb.net application to work online Pin
David Mujica22-Jan-13 3:03
memberDavid Mujica22-Jan-13 3:03 
QuestionHow to Extend the InitializeComponents to my code in VB2008/2010 Pin
QuickBooksDev20-Jan-13 3:06
memberQuickBooksDev20-Jan-13 3:06 
AnswerRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
Eddy Vluggen21-Jan-13 3:31
mvpEddy Vluggen21-Jan-13 3:31 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
QuickBooksDev21-Jan-13 5:28
memberQuickBooksDev21-Jan-13 5:28 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
Eddy Vluggen21-Jan-13 5:43
mvpEddy Vluggen21-Jan-13 5:43 
QuickBooksDev wrote:
Modify what call.
"InitializeComponents". Don't modify it's contents.

QuickBooksDev wrote:
What is a Virtual or abstract method.
Aw, sorry for using C#-terminology; it's called "Overridable" in VB.NET.

QuickBooksDev wrote:
We have several programs with multiple forms that we need to do this on.

Can you please give concrete examples?
Take an empty form, and modify it like below;
Public Class BaseForm
    Sub New()
        ' This call is required by the designer.
        InitializeComponent()
 
        ' Add any initialization after the InitializeComponent() call.
        InitializeVB6Handlers()
    End Sub
 
    Public Overridable Sub InitializeVB6Handlers()
        System.Windows.Forms.MessageBox.Show("Boo!")
    End Sub
End Class
Next, change your existing form to Inherit from the BaseForm like below;
Public Class Form1 : Inherits BaseForm
End Class
This would give you a method that's called when the form is constructed (just like InitializeComponents), and give you the option to override it's implementation for a specific form;
Public Class Form1 : Inherits BaseForm
    Public Overrides Sub InitializeVB6Handlers()
        'MyBase.InitializeVB6Handlers()
        System.Windows.Forms.MessageBox.Show("No Boo today")
    End Sub
End Class
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
They hate us for our freedom![^]

GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
QuickBooksDev21-Jan-13 6:49
memberQuickBooksDev21-Jan-13 6:49 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
QuickBooksDev22-Jan-13 0:21
memberQuickBooksDev22-Jan-13 0:21 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
Eddy Vluggen22-Jan-13 2:21
mvpEddy Vluggen22-Jan-13 2:21 
AnswerRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
Mike Meinz21-Jan-13 8:16
memberMike Meinz21-Jan-13 8:16 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
QuickBooksDev21-Jan-13 9:38
memberQuickBooksDev21-Jan-13 9:38 
QuestionMS Graph in Access 2007 VBA Application Pin
satcomengineer19-Jan-13 7:48
membersatcomengineer19-Jan-13 7:48 
AnswerRe: MS Graph in Access 2007 VBA Application Pin
Eddy Vluggen20-Jan-13 2:38
mvpEddy Vluggen20-Jan-13 2:38 
Questionvb6.0 Pin
Barun sengupta18-Jan-13 21:39
memberBarun sengupta18-Jan-13 21:39 
AnswerRe: vb6.0 Pin
Eddy Vluggen20-Jan-13 2:36
mvpEddy Vluggen20-Jan-13 2:36 
QuestionDecoding USBSTOR Registry Entry in VB Pin
SantLou4017-Jan-13 16:06
memberSantLou4017-Jan-13 16:06 
AnswerRe: Decoding USBSTOR Registry Entry in VB Pin
ChandraRam17-Jan-13 20:03
memberChandraRam17-Jan-13 20:03 
AnswerRe: Decoding USBSTOR Registry Entry in VB Pin
Alan N18-Jan-13 1:21
memberAlan N18-Jan-13 1:21 
GeneralRe: Decoding USBSTOR Registry Entry in VB Pin
SantLou4018-Jan-13 1:47
memberSantLou4018-Jan-13 1:47 
GeneralRe: Decoding USBSTOR Registry Entry in VB Pin
Alan N18-Jan-13 4:05
memberAlan N18-Jan-13 4:05 
JokeRe: Decoding USBSTOR Registry Entry in VB Pin
Jeffnogueira22-Jan-13 4:31
memberJeffnogueira22-Jan-13 4:31 
QuestionVB.NET ReportViewer too many Page Breaks rendered Pin
SantLou4017-Jan-13 3:39
memberSantLou4017-Jan-13 3:39 
AnswerRe: VB.NET ReportViewer too many Page Breaks rendered Pin
ChandraRam17-Jan-13 20:04
memberChandraRam17-Jan-13 20:04 
GeneralRe: VB.NET ReportViewer too many Page Breaks rendered Pin
SantLou4018-Jan-13 1:39
memberSantLou4018-Jan-13 1:39 
Questioncontrol 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian15-Jan-13 20:10
memberLord Christian15-Jan-13 20:10 
AnswerRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Bernhard Hiller15-Jan-13 20:42
memberBernhard Hiller15-Jan-13 20:42 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian17-Jan-13 7:15
memberLord Christian17-Jan-13 7:15 
AnswerRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Richard MacCutchan15-Jan-13 22:59
mvpRichard MacCutchan15-Jan-13 22:59 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian17-Jan-13 6:56
memberLord Christian17-Jan-13 6:56 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Richard MacCutchan17-Jan-13 7:10
mvpRichard MacCutchan17-Jan-13 7:10 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian17-Jan-13 7:33
memberLord Christian17-Jan-13 7:33 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Richard MacCutchan17-Jan-13 22:51
mvpRichard MacCutchan17-Jan-13 22:51 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian18-Jan-13 4:58
memberLord Christian18-Jan-13 4:58 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Richard MacCutchan18-Jan-13 5:10
mvpRichard MacCutchan18-Jan-13 5:10 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian20-Jan-13 18:55
memberLord Christian20-Jan-13 18:55 
QuestionBuilding COM Components Using MATLAB - Part I Pin
SergentX13-Jan-13 6:35
memberSergentX13-Jan-13 6:35 
AnswerRe: Building COM Components Using MATLAB - Part I Pin
Eddy Vluggen14-Jan-13 3:13
mvpEddy Vluggen14-Jan-13 3:13 
GeneralMessage Removed Pin
SergentX14-Jan-13 8:20
memberSergentX14-Jan-13 8:20 
AnswerRe: Building COM Components Using MATLAB - Part I Pin
Eddy Vluggen14-Jan-13 9:59
mvpEddy Vluggen14-Jan-13 9:59 
QuestionDebug user control in VB6.0 ? Pin
Member 24584678-Jan-13 22:38
memberMember 24584678-Jan-13 22:38 
AnswerRe: Debug user control in VB6.0 ? Pin
ChandraRam17-Jan-13 20:08
memberChandraRam17-Jan-13 20:08 
QuestionHow make DOWNLOADER in VB 2010 ? Pin
radoslaw1238-Jan-13 7:21
memberradoslaw1238-Jan-13 7:21 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 26 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid