Click here to Skip to main content
15,886,518 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Nilish wrote:
isn't that good to accomplish something in less lines of code.


We're in the VB forum... and you want to do things with less code.


Nilish wrote:
first i am declaring the delegate
then i am providing the reference of the function.
then i am invoking it.
so three steps
on the other hand just one line of code
call functionname()


Well, since delegates are used heavily in event handlers, you might like to work out how many lines of code the equivalent would take without the existance of delegates. Then you will see where you are saving lines of code.

The example shown earlier is, as I've said, contrived to show you how delegates work. It is NOT an example of where or why you would use one, as I've also said before.


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

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 
AnswerRe: event , raise event , delegates Pin
CPallini17-May-07 23:45
mveCPallini17-May-07 23:45 
Questionprogress bar Pin
Sonia Gupta15-May-07 0:55
Sonia Gupta15-May-07 0:55 
AnswerRe: progress bar Pin
Probeer Das15-May-07 3:42
Probeer Das15-May-07 3:42 

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.