Click here to Skip to main content
15,921,622 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: how to use .net framework with c++; Pin
DaveyM698-Dec-09 12:34
professionalDaveyM698-Dec-09 12:34 
AnswerRe: how to use .net framework with c++; Pin
Paul Conrad8-Dec-09 13:28
professionalPaul Conrad8-Dec-09 13:28 
AnswerRe: how to use .net framework with c++; Pin
The Man from U.N.C.L.E.9-Dec-09 7:10
The Man from U.N.C.L.E.9-Dec-09 7:10 
Questionhow to insert image Pin
darkyro8-Dec-09 4:03
darkyro8-Dec-09 4:03 
AnswerRe: how to insert image Pin
Luc Pattyn8-Dec-09 5:10
sitebuilderLuc Pattyn8-Dec-09 5:10 
QuestionDifference between events in c# and vb.net Pin
ddecoy8-Dec-09 1:39
ddecoy8-Dec-09 1:39 
AnswerRe: Difference between events in c# and vb.net Pin
Dave Kreskowiak8-Dec-09 5:22
mveDave Kreskowiak8-Dec-09 5:22 
AnswerRe: Difference between events in c# and vb.net Pin
The Man from U.N.C.L.E.8-Dec-09 8:17
The Man from U.N.C.L.E.8-Dec-09 8:17 
If you don't want to bother creating your own custom delegate you have two other choices in c#

1. Use an inline delegate.
2. Use Generics eg. EventHandler<T>

In VB.Net you also have two options in addition to creating a custom delegate>

1. Use Generics
2. Use WithEvents

WithEvents works rather differently as it gives you rather more than just syntactic sugar, it also deals with reattaching the event handlers to the new object if you change the object referenced. You can even define the event handlers before initialising the object that raises the events.
In C# you have to do that yourself, and you have to have an instance before you can hook up events.

So, C# or VB.NET you can roll your own.
C# you get inline delegates
VB.NET you get less code for complicated event handling scenarios.

Personally I would rather have a little more code that shows me what is really going on. Then it is easier to realise I didn't need half of it in the first place!

If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
[My Articles]  [My Website]

GeneralRe: Difference between events in c# and vb.net Pin
ddecoy9-Dec-09 2:42
ddecoy9-Dec-09 2:42 
GeneralRe: Difference between events in c# and vb.net Pin
The Man from U.N.C.L.E.9-Dec-09 7:07
The Man from U.N.C.L.E.9-Dec-09 7:07 
QuestionHow to upload a xml file on Rest web server Pin
~Khatri Mitesh~7-Dec-09 1:22
~Khatri Mitesh~7-Dec-09 1:22 
AnswerRe: How to upload a xml file on Rest web server Pin
Rama Krishna Vavilala7-Dec-09 6:29
Rama Krishna Vavilala7-Dec-09 6:29 
AnswerRe: How to upload a xml file on Rest web server Pin
The Man from U.N.C.L.E.7-Dec-09 7:49
The Man from U.N.C.L.E.7-Dec-09 7:49 
GeneralRe: How to upload a xml file on Rest web server Pin
~Khatri Mitesh~8-Dec-09 1:17
~Khatri Mitesh~8-Dec-09 1:17 
QuestionHow to Debug a DLL written in VC 6.0 in ASP.NET ( MSVS 2008 ) application? Pin
yudhisthira7-Dec-09 0:51
yudhisthira7-Dec-09 0:51 
AnswerRe: How to Debug a DLL written in VC 6.0 in ASP.NET ( MSVS 2008 ) application? Pin
puri keemti7-Dec-09 19:37
puri keemti7-Dec-09 19:37 
GeneralRe: How to Debug a DLL written in VC 6.0 in ASP.NET ( MSVS 2008 ) application? Pin
yudhisthira7-Dec-09 19:55
yudhisthira7-Dec-09 19:55 
GeneralRe: How to Debug a DLL written in VC 6.0 in ASP.NET ( MSVS 2008 ) application? Pin
puri keemti7-Dec-09 21:13
puri keemti7-Dec-09 21:13 
Questionhow to upload files to the Server path Pin
Uma J6-Dec-09 21:51
Uma J6-Dec-09 21:51 
AnswerRe: how to upload files to the Server path [modified] Pin
Shameel6-Dec-09 23:17
professionalShameel6-Dec-09 23:17 
GeneralRe: how to upload files to the Server path Pin
Uma J7-Dec-09 17:51
Uma J7-Dec-09 17:51 
GeneralRe: how to upload files to the Server path Pin
Shameel8-Dec-09 3:16
professionalShameel8-Dec-09 3:16 
Questionhow to create dynamic folder with "jobid" name within C:\Temp\Sub_Folder Pin
Uma J6-Dec-09 18:58
Uma J6-Dec-09 18:58 
AnswerRe: how to create dynamic folder with "jobid" name within C:\Temp\Sub_Folder Pin
padmanabhan N6-Dec-09 19:36
padmanabhan N6-Dec-09 19:36 
GeneralMove data from one folder to another Pin
padmanabhan N6-Dec-09 20:08
padmanabhan N6-Dec-09 20:08 

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.