Click here to Skip to main content
15,916,846 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Err when add record into database Pin
Christian Graus22-Aug-07 16:41
protectorChristian Graus22-Aug-07 16:41 
GeneralRe: Err when add record into database Pin
Mekong River22-Aug-07 16:47
Mekong River22-Aug-07 16:47 
QuestionRe: Err when add record into database Pin
Vimalsoft(Pty) Ltd22-Aug-07 23:28
professionalVimalsoft(Pty) Ltd22-Aug-07 23:28 
AnswerRe: Err when add record into database Pin
Mekong River22-Aug-07 23:57
Mekong River22-Aug-07 23:57 
GeneralRe: Err when add record into database Pin
Vimalsoft(Pty) Ltd23-Aug-07 0:15
professionalVimalsoft(Pty) Ltd23-Aug-07 0:15 
GeneralRe: Err when add record into database Pin
Dave Kreskowiak23-Aug-07 3:14
mveDave Kreskowiak23-Aug-07 3:14 
QuestionDelegates [modified] Pin
ASPnoob22-Aug-07 13:02
ASPnoob22-Aug-07 13:02 
AnswerRe: Delegates Pin
Christian Graus22-Aug-07 15:52
protectorChristian Graus22-Aug-07 15:52 
ASPnoob wrote:
Is the word Delegate a key word


yes

ASPnoob wrote:
Also what is MyDelSub()?


The name of the delegate

You'd use delegates when you want to fire a method that calls an arbitrary number of clients, or when yuo want to cal a method in another class based on an event.

So, MyDelSub is now a type - it's a delegate which takes no arguments and doesn't return anything. Now you can do this:

Private MyDelSub OnDelete


Now, in your class methods you could do this:

if (OnDelete is not nothing ) then OnDelete()

And, you can hook OnDelete to call any method in any class you like, so long as it has this signature.

Events, such as a click event, work this way, your derived class subscribes to the delegate, and it is called when the button is clicked.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

QuestionHighlighting text in a webbrowser control Pin
Ahmad Zaidi22-Aug-07 11:09
Ahmad Zaidi22-Aug-07 11:09 
AnswerRe: Highlighting text in a webbrowser control Pin
nlarson1122-Aug-07 11:28
nlarson1122-Aug-07 11:28 
QuestionMost Efficient Data Control Pin
errorfunktion22-Aug-07 8:59
errorfunktion22-Aug-07 8:59 
AnswerRe: Most Efficient Data Control Pin
Luc Pattyn22-Aug-07 14:10
sitebuilderLuc Pattyn22-Aug-07 14:10 
GeneralRe: Most Efficient Data Control Pin
errorfunktion22-Aug-07 18:13
errorfunktion22-Aug-07 18:13 
GeneralRe: Most Efficient Data Control Pin
Dave Kreskowiak23-Aug-07 3:10
mveDave Kreskowiak23-Aug-07 3:10 
QuestionDataGrid Record Loop. Pin
Smokeywade22-Aug-07 8:27
Smokeywade22-Aug-07 8:27 
AnswerRe: DataGrid Record Loop. Pin
jchigg200022-Aug-07 9:00
jchigg200022-Aug-07 9:00 
GeneralRe: DataGrid Record Loop. Pin
Smokeywade22-Aug-07 9:49
Smokeywade22-Aug-07 9:49 
GeneralRe: DataGrid Record Loop. Pin
jchigg200022-Aug-07 10:14
jchigg200022-Aug-07 10:14 
GeneralRe: DataGrid Record Loop. Pin
Smokeywade22-Aug-07 10:38
Smokeywade22-Aug-07 10:38 
GeneralRe: DataGrid Record Loop. Pin
Johan Hakkesteegt23-Aug-07 2:06
Johan Hakkesteegt23-Aug-07 2:06 
GeneralRe: DataGrid Record Loop. Pin
Smokeywade23-Aug-07 4:10
Smokeywade23-Aug-07 4:10 
QuestionRe: DataGrid Record Loop. Pin
Smokeywade23-Aug-07 10:00
Smokeywade23-Aug-07 10:00 
AnswerRe: DataGrid Record Loop. Pin
Johan Hakkesteegt28-Aug-07 21:35
Johan Hakkesteegt28-Aug-07 21:35 
QuestionCross-thread operation not valid. Please plz Help Pin
TechPrince22-Aug-07 8:07
TechPrince22-Aug-07 8:07 
AnswerRe: Cross-thread operation not valid. Please plz Help Pin
Dave Kreskowiak23-Aug-07 3:23
mveDave Kreskowiak23-Aug-07 3:23 

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.