Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Slow Ping and not guaranteed success Pin
Dave Kreskowiak10-Oct-12 23:50
mveDave Kreskowiak10-Oct-12 23:50 
GeneralRe: Slow Ping and not guaranteed success Pin
Eddy Vluggen15-Oct-12 1:19
professionalEddy Vluggen15-Oct-12 1:19 
QuestionFunction Not Found From Dll Component Pin
AmbiguousName10-Oct-12 1:57
AmbiguousName10-Oct-12 1:57 
AnswerRe: Function Not Found From Dll Component Pin
Eddy Vluggen11-Oct-12 0:08
professionalEddy Vluggen11-Oct-12 0:08 
GeneralRe: Function Not Found From Dll Component Pin
AmbiguousName12-Oct-12 1:07
AmbiguousName12-Oct-12 1:07 
GeneralRe: Function Not Found From Dll Component Pin
Eddy Vluggen12-Oct-12 1:25
professionalEddy Vluggen12-Oct-12 1:25 
GeneralRe: Function Not Found From Dll Component Pin
AmbiguousName12-Oct-12 1:54
AmbiguousName12-Oct-12 1:54 
GeneralRe: Function Not Found From Dll Component Pin
Eddy Vluggen12-Oct-12 2:10
professionalEddy Vluggen12-Oct-12 2:10 
This would be inheritance;
VB
Public Class MyThingy : Inherits ABC
  Public Overrides Sub OnFunctionCall()
    MsgBox "Hello Universe!!"
  End Sub
End Class
Public Class ABC
 
  Public Sub New() 
  End Sub
 
  Public Overridable Sub OnFunctionCall() 
    MessageBox.Show("Hello world!")
  End Sub
End Class

Which is different from embedding a class;
VB
Public Class MyThingy
  Public Event EventHandler OnMyFunction

  ' call this method and the above event gets fired
  Private Sub TriggerEvent()
    OnMyFunction(Me, EventArgs.Empty)
  End Sub
End Class
Public Class ABC
  Private Thingy as MyThingy()

  Public Sub New() 
    Thingy = New MyThingy
    ' and since we wired the event to a specific method (in this class), 
    AddHandler Thingy.OnMyFunction, AddressOf LocalOnMyFunctionImplementation 
  End Sub
 
  ' causing this method to execute
  Public Overridable Sub LocalOnMyFunctionImplementation(Object as Sender, e As EventArgs)
    MessageBox.Show("asd")
  End Sub
End Class


AmbiguousName wrote:
Just learning it.

Enjoy Smile | :)
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

QuestionBlank Asp webpage. Pin
miss7868-Oct-12 0:08
miss7868-Oct-12 0:08 
AnswerRe: Blank Asp webpage. Pin
Cloud Cray8-Oct-12 7:49
Cloud Cray8-Oct-12 7:49 
GeneralRe: Blank Asp webpage. Pin
miss7869-Oct-12 1:14
miss7869-Oct-12 1:14 
GeneralRe: Blank Asp webpage. Pin
Dave Kreskowiak9-Oct-12 1:51
mveDave Kreskowiak9-Oct-12 1:51 
GeneralRe: Blank Asp webpage. Pin
Dave Kreskowiak9-Oct-12 1:55
mveDave Kreskowiak9-Oct-12 1:55 
GeneralRe: Blank Asp webpage. Pin
miss7869-Oct-12 3:54
miss7869-Oct-12 3:54 
QuestionQuestion about variables in Classic ASP VBScript Pin
Diego Carrion7-Oct-12 5:32
Diego Carrion7-Oct-12 5:32 
AnswerRe: Question about variables in Classic ASP VBScript Pin
Brisingr Aerowing7-Oct-12 6:10
professionalBrisingr Aerowing7-Oct-12 6:10 
GeneralRe: Question about variables in Classic ASP VBScript Pin
Diego Carrion7-Oct-12 6:19
Diego Carrion7-Oct-12 6:19 
GeneralRe: Question about variables in Classic ASP VBScript Pin
Wes Aday7-Oct-12 6:38
professionalWes Aday7-Oct-12 6:38 
GeneralRe: Question about variables in Classic ASP VBScript Pin
Diego Carrion7-Oct-12 7:02
Diego Carrion7-Oct-12 7:02 
GeneralRe: Question about variables in Classic ASP VBScript Pin
ChandraRam7-Oct-12 20:55
ChandraRam7-Oct-12 20:55 
GeneralRe: Question about variables in Classic ASP VBScript Pin
Diego Carrion8-Oct-12 2:20
Diego Carrion8-Oct-12 2:20 
GeneralRe: Question about variables in Classic ASP VBScript Pin
ChandraRam8-Oct-12 2:23
ChandraRam8-Oct-12 2:23 
GeneralRe: Question about variables in Classic ASP VBScript Pin
Diego Carrion8-Oct-12 2:26
Diego Carrion8-Oct-12 2:26 
GeneralRe: Question about variables in Classic ASP VBScript Pin
Brisingr Aerowing7-Oct-12 6:39
professionalBrisingr Aerowing7-Oct-12 6:39 
GeneralRe: Question about variables in Classic ASP VBScript Pin
Dave Kreskowiak7-Oct-12 8:15
mveDave Kreskowiak7-Oct-12 8:15 

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.