Click here to Skip to main content
       

Visual Basic

 
AnswerRe: VB.NET Parameters error PinmemberSimon_Whale11-Oct-12 4:45 
GeneralRe: VB.NET Parameters error PinmemberDiego Carrion11-Oct-12 4:47 
GeneralRe: VB.NET Parameters error PinmemberChandraRam11-Oct-12 11:06 
QuestionSlow Ping and not guaranteed success PinmemberHerboren10-Oct-12 5:44 
AnswerRe: Slow Ping and not guaranteed success PinmvpDave Kreskowiak10-Oct-12 8:13 
GeneralRe: Slow Ping and not guaranteed success PinmemberHerboren10-Oct-12 11:33 
GeneralRe: Slow Ping and not guaranteed success PinmvpDave Kreskowiak10-Oct-12 13:01 
GeneralRe: Slow Ping and not guaranteed success PinmemberHerboren10-Oct-12 16:20 
GeneralRe: Slow Ping and not guaranteed success PinmvpDave Kreskowiak10-Oct-12 23:50 
GeneralRe: Slow Ping and not guaranteed success PinmemberEddy Vluggen15-Oct-12 1:19 
QuestionFunction Not Found From Dll Component PinmemberAmbiguousName10-Oct-12 1:57 
AnswerRe: Function Not Found From Dll Component PinmemberEddy Vluggen11-Oct-12 0:08 
GeneralRe: Function Not Found From Dll Component PinmemberAmbiguousName12-Oct-12 1:07 
GeneralRe: Function Not Found From Dll Component PinmemberEddy Vluggen12-Oct-12 1:25 
AmbiguousName wrote:
What is the difference between the method shown previously and the method I am trying below

Most major difference is that objName is now a class member, no longer a variable within the constructor. Also changed, you now have the correct constructor.
 
The Component is an EXISTING control, one that gets not instantiated because it's one of the base-controls; also, note it does not have a member called "OnFunctionCall".
 
I'm going to guess that you'd want to instantiate your own class. For that, you'd have to define it first, something like this;
Public Class MyThingy
End Class
Public Class ABC
 
  Private Thingy as New MyThingy() ' Initialized Thingy

  Public Sub New() ' constructor
    AddHandler objName.OnFunctionCall, AddressOf OnFunctionCall ' assigned function
  End Sub
 
  Public Overridable Sub OnFunctionCall() ' here is the function
    MessageBox.Show("asd")
  End Sub
End Class
"OnFunctionCall" does not exist in the Thingy-class here, but it looks like that's what you'd want. Or is there a special reason for using "Component"?
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

GeneralRe: Function Not Found From Dll Component PinmemberAmbiguousName12-Oct-12 1:54 
GeneralRe: Function Not Found From Dll Component PinmemberEddy Vluggen12-Oct-12 2:10 
QuestionBlank Asp webpage. PinmemberMember 94936398-Oct-12 0:08 
AnswerRe: Blank Asp webpage. PinmemberCloud Cray8-Oct-12 7:49 
GeneralRe: Blank Asp webpage. Pinmembermiss7869-Oct-12 1:14 
GeneralRe: Blank Asp webpage. PinmvpDave Kreskowiak9-Oct-12 1:51 
GeneralRe: Blank Asp webpage. PinmvpDave Kreskowiak9-Oct-12 1:55 
GeneralRe: Blank Asp webpage. Pinmembermiss7869-Oct-12 3:54 
QuestionQuestion about variables in Classic ASP VBScript PinmemberDiego Carrion7-Oct-12 5:32 
AnswerRe: Question about variables in Classic ASP VBScript PinmemberZac Greve7-Oct-12 6:10 
GeneralRe: Question about variables in Classic ASP VBScript PinmemberDiego Carrion7-Oct-12 6:19 
GeneralRe: Question about variables in Classic ASP VBScript PinmemberWes Aday7-Oct-12 6:38 
GeneralRe: Question about variables in Classic ASP VBScript PinmemberDiego Carrion7-Oct-12 7:02 
GeneralRe: Question about variables in Classic ASP VBScript PinmemberChandraRam7-Oct-12 20:55 
GeneralRe: Question about variables in Classic ASP VBScript PinmemberDiego Carrion8-Oct-12 2:20 
GeneralRe: Question about variables in Classic ASP VBScript PinmemberChandraRam8-Oct-12 2:23 
GeneralRe: Question about variables in Classic ASP VBScript PinmemberDiego Carrion8-Oct-12 2:26 
GeneralRe: Question about variables in Classic ASP VBScript PinmemberZac Greve7-Oct-12 6:39 
GeneralRe: Question about variables in Classic ASP VBScript PinmvpDave Kreskowiak7-Oct-12 8:15 
GeneralRe: Question about variables in Classic ASP VBScript PinmemberDiego Carrion7-Oct-12 9:25 
GeneralRe: Question about variables in Classic ASP VBScript PinmvpDave Kreskowiak7-Oct-12 10:11 
GeneralRe: Question about variables in Classic ASP VBScript PinmemberDiego Carrion7-Oct-12 10:23 
Questionerror Pinmemberuday87227-Oct-12 3:22 
AnswerRe: error PinmvpRichard MacCutchan7-Oct-12 4:47 
GeneralRe: error PinmvpOriginalGriff7-Oct-12 5:44 
GeneralRe: error PinmvpRichard MacCutchan7-Oct-12 6:39 
QuestionSQL Query for dates PinmemberSPSandy7-Oct-12 2:17 
AnswerRe: SQL Query for dates PinmvpRichard MacCutchan7-Oct-12 4:50 
AnswerRe: SQL Query for dates PinmemberEddy Vluggen8-Oct-12 2:37 
GeneralRe: SQL Query for dates PinmemberJohan Hakkesteegt10-Oct-12 23:38 
GeneralRe: SQL Query for dates PinmemberSPSandy15-Oct-12 4:32 
AnswerRe: SQL Query for dates PinmemberEddy Vluggen15-Oct-12 4:54 
GeneralRe: SQL Query for dates PinmemberSPSandy15-Oct-12 6:05 
QuestionConverting fromVB.NET to C PinmemberMember 94911027-Oct-12 1:54 
AnswerRe: Converting fromVB.NET to C PinmemberWes Aday7-Oct-12 1:57 
QuestionAdditional properties or methods into midi form of VB6.0? PinmemberMember 24584675-Oct-12 20:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web01 | 2.8.140415.2 | Last Updated 17 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid