Click here to Skip to main content
15,881,757 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Select all of the text in a textbox [modified] Pin
Dave Kreskowiak15-May-07 6:20
mveDave Kreskowiak15-May-07 6:20 
GeneralRe: Select all of the text in a textbox Pin
TwoFaced15-May-07 6:38
TwoFaced15-May-07 6:38 
GeneralRe: Select all of the text in a textbox Pin
Dave Kreskowiak15-May-07 6:55
mveDave Kreskowiak15-May-07 6:55 
AnswerRe: Select all of the text in a textbox [modified] Pin
Xandip15-May-07 19:16
Xandip15-May-07 19:16 
QuestionDelegates are type-safe Function Pointers Pin
Sonia Gupta15-May-07 2:34
Sonia Gupta15-May-07 2:34 
AnswerRe: Delegates are type-safe Function Pointers Pin
Colin Angus Mackay15-May-07 2:37
Colin Angus Mackay15-May-07 2:37 
Questiondelegates Pin
Sonia Gupta15-May-07 2:28
Sonia Gupta15-May-07 2:28 
AnswerRe: delegates Pin
Colin Angus Mackay15-May-07 2:35
Colin Angus Mackay15-May-07 2:35 
Nilish wrote:
isn't above code is exagerated?


If by exagerated you mean "contrived" then yes. It is written like that to show how it works. Not as an example of why you would use it.


Nilish wrote:
isn't that the following code line is sufficient
call WriteToDebug


But can you pass the address of the method around in code with that construct? That is the real power of delegates. When an event is raised it uses delegates to call to the event handlers. The code Microsoft wrote knows nothing about your code, so this is a good option for passing the details of the event handler to the windows control. (For example)


Upcoming events:
* Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services...

Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton


My website

QuestionRe: delegates Pin
Sonia Gupta15-May-07 2:48
Sonia Gupta15-May-07 2:48 
AnswerRe: delegates Pin
Guffa15-May-07 3:50
Guffa15-May-07 3:50 
AnswerRe: delegates Pin
Colin Angus Mackay15-May-07 3:51
Colin Angus Mackay15-May-07 3:51 
QuestionRaising and handling events in 2 independant forms. Pin
steve_rm15-May-07 1:51
steve_rm15-May-07 1:51 
AnswerRe: Raising and handling events in 2 independant forms. Pin
Probeer Das15-May-07 3:32
Probeer Das15-May-07 3:32 
AnswerRe: Raising and handling events in 2 independant forms. Pin
Dave Kreskowiak15-May-07 4:06
mveDave Kreskowiak15-May-07 4:06 
Questionhow to resolve it Pin
d_smit15-May-07 1:18
d_smit15-May-07 1:18 
QuestionRe: how to resolve it [modified] Pin
Sonia Gupta15-May-07 1:23
Sonia Gupta15-May-07 1:23 
QuestionRun in Services Pin
Socheat.Net15-May-07 1:14
Socheat.Net15-May-07 1:14 
AnswerRe: Run in Services Pin
harsh_c15-May-07 1:27
professionalharsh_c15-May-07 1:27 
GeneralRe: Run in Services Pin
Socheat.Net15-May-07 15:43
Socheat.Net15-May-07 15:43 
AnswerRe: Run in Services Pin
Dave Kreskowiak15-May-07 4:03
mveDave Kreskowiak15-May-07 4:03 
QuestionText Box with Rounded corners Pin
todd.0101110115-May-07 1:11
todd.0101110115-May-07 1:11 
AnswerRe: Text Box with Rounded corners Pin
Probeer Das15-May-07 3:37
Probeer Das15-May-07 3:37 
GeneralRe: Text Box with Rounded corners Pin
todd.0101110115-May-07 5:14
todd.0101110115-May-07 5:14 
Questionhow to validate right click in excel worksheet using VBA Pin
prashant pissey15-May-07 1:08
prashant pissey15-May-07 1:08 
Questionevent , raise event , delegates Pin
Sonia Gupta15-May-07 1:01
Sonia Gupta15-May-07 1:01 

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.