Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
delegate
- Page 1
Re: Delegate
Programming
Software Development
17 Years Ago
by vp_aries14
…input and output variables) when we create a
delegate
. But
delegate
is not a standalone construction. It is ….InvertY); fMulti(); #Events in C# .Net:
Delegate
usefulness does not just lie in the fact that it… add to our Figure class next things: public
delegate
void FigureHandler(string msg); public static event FigureHandler…
Delegate
Programming
Software Development
16 Years Ago
by Devasya
… have a method like this ex: private static void EventFire(
Delegate
raisedEvent, params object[] args ) so when I call that method… use for raiseEvent?(since I don't know what is
Delegate
) please help me.... Thanks,
Re: Delegate
Programming
Software Development
16 Years Ago
by LizR
… one like the one you show, however.. For example: [code]
delegate
void SetTextCallback(String text); private void settext(String newtext) { if… you're methods asking for there is for EventFire( new
delegate
(your_event_handler),new object[] { params,go,here });
Re: Delegate
Programming
Software Development
16 Years Ago
by Devasya
… static class B { public static void A(
Delegate
raisedEvent, params object[] args ) { // skip…// scroll thru each event and push foreach(
Delegate
sink in raisedEvent.GetInvocationList() ) { try { …
Delegate
Programming
Software Development
17 Years Ago
by gurusamy
Anybody can explain
Delegate
and Event concept in C#?
delegate problem: invoke without parameters
Programming
Software Development
16 Years Ago
by jochem23
…PrnFunc.Exit_Renamed = GetProcAddress(AddressOf printSignOffExit) 'UPGRADE_WARNING: Add a
delegate
for AddressOf printerStatus Click for more: 'ms-help://MS.VSCC…AddressOf printerStatus) changePrinter(hwnd, PrnFunc) End Sub [color=red]
Delegate
Function DelegatePrinterStatus(ByVal lpVoidPrn As Integer) As Integer[/color] Function…
Re: delegate problem: invoke without parameters
Programming
Software Development
16 Years Ago
by jochem23
… Printer.printGeneralInit ... [/code] In Printer module: [code=vb]
Delegate
Function dlgPrinterStatus() As Integer
Delegate
Function dlgPrintGeneralRun(ByVal lpVoidPrn As Integer, ByVal TicketType…
Re: Delegate Events
Programming
Software Development
15 Years Ago
by sknake
…; using System.Data; class Model { public
delegate
void Notifier(string sender); public event Notifier notifyViews… if you made the event private then the
delegate
declaration could also be private: ** This is…; using System.Data; class Model { private
delegate
void Notifier(string sender); private event Notifier notifyViews…
Delegate in List<T>.Sort()
Programming
Software Development
17 Years Ago
by meodudang
…#. As I have read, there is useful concept "
delegate
function". I don't waste your time anymore, I… to make the code. But I wanna try in
delegate
function so I use List<T>.Sort(GenericComparison…'ve got problem with the comparison function: [CODE]sl.Sort(
delegate
(int a, int b) { if (((sl.IndexOf(a) % 2) == …
Re: "delegate" equivalent in java
Programming
Software Development
11 Years Ago
by sepp2k
There is no direct equivalent for `
delegate
` in Java, that is you can't pass methods as …;`) or a `Comparisson<T>` (which is a
delegate
) as an argument. In Java the
delegate
option is just not available.
"delegate" equivalent in java
Programming
Software Development
11 Years Ago
by abra_ka_dabra
Can somebody explain me the use of "
Delegate
" and its equivalent in java... I am learning java programming and has encountered a C# program which use "
Delegate
" and pass on functions as arguments to another function.... I am trying to modify the C# program for use in java...
Re: "delegate" equivalent in java
Programming
Software Development
11 Years Ago
by Ketsuekiame
You'd be better asking this in the Java section. Java has no easy way of replicating delegates from C#. At best, a
delegate
is a single method interface. I believe that there is a "Delegator" pattern for Java, but I don't know much about it.
delegate in java
Programming
Software Development
17 Years Ago
by danieldear
hi guys can anyone tell me wat is
delegate
and what is the difference between delegates in java and c++ please guys i need to understand this very soon.... :'( thanks...
Re: delegate in java
Programming
Software Development
17 Years Ago
by darkagn
Hi danieldear and welcome to daniweb! The main rule here at daniweb is that people won't answer questions without a little effort being demonstrated. Perhaps you could post what you think a
delegate
is and the differences between java and c++ are and we can correct you or give some advice from there. Cheers, darkagn
Delegate functions
Programming
Software Development
15 Years Ago
by DaveD3
… mode for a period of time the timer uses a
delegate
to call the same update_action function. If the user adds…
Re: Delegate functions
Programming
Software Development
15 Years Ago
by Diamonddrake
… box, that it causes a problem, how about in your
delegate
the first thing you do is change the focus. just…
Delegate Events
Programming
Software Development
15 Years Ago
by deven_a76
… am getting... [code] using System; using System.Data; class Model {
delegate
void Notifier(string sender); public event Notifier notifyViews; public void…
Re: Delegate Events
Programming
Software Development
15 Years Ago
by deven_a76
Hi Scott, I added the necessary accessifier/modifier i.e. defined public to the
delegate
line, still it throws error to me. Regards Deven.
Re: Delegate Events
Programming
Software Development
15 Years Ago
by sknake
…: [code=c#] using System; using System.Data; class Model { public
delegate
void Notifier(string sender); public event Notifier notifyViews; public void…
Re: Delegate Events
Programming
Software Development
15 Years Ago
by deven_a76
Thanks sknake. It worked and the only difference I noticed that I was using the object name along with the
delegate
and that was causing the problem. Thanks once again.....Sorry for the late response as saw your note today only.
Delegate-based Visitors
Programming
Software Development
16 Years Ago
by subtercosm
… would be used -- it just demonstrates the mechanics of the
delegate
-based visitor pattern. The implementation for Result.ValueOrDefault is much…
delegate problem in Login1_Loggedin
Programming
Web Development
14 Years Ago
by akil007
I have Two panel One have Login control and in another user control. First user login then usercontrol is open so I am try in Login_loggedin event fire
delegate
which in parent control of both to visible panel but not shown
Re: delegate problem in Login1_Loggedin
Programming
Web Development
14 Years Ago
by reach_yousuf
[QUOTE=akil007;1280133]I have Two panel One have Login control and in another user control. First user login then usercontrol is open so I am try in Login_loggedin event fire
delegate
which in parent control of both to visible panel but not shown[/QUOTE] Hi Akil, Show your code please!!!
Delegate with event
Programming
Software Development
10 Years Ago
by PulsarScript
….Linq; using System.Text; using System.Timers; namespace Event1 { public
delegate
void DingDongHandler(string text); public class ClassWithEvent { public Timer DingdongTimer…
Re: Delegate
Programming
Software Development
16 Years Ago
by LizR
how do you mean "get"? do you mean how do you detect that error and handle it? Look at try and catch which you had before.
Re: Delegate
Programming
Software Development
16 Years Ago
by Devasya
I mean is.. Can my code handle TargetException and MemberAccessException ? it's true that i use try and catch to handle an exception. for example: ------------------------------------- public class C { private static int? MyFunc( int? tes1 ) { throw new Exception( "error" ); } ----------------------------------------- is …
Re: Delegate
Programming
Software Development
16 Years Ago
by LizR
In your catch area, test which kind of error was thrown, and then do something accordingly.
Re: Delegate
Programming
Software Development
17 Years Ago
by Ramy Mahrous
[B]Delegates[/B] in C# is function pointers in C++ It means you can create a reference to encapsulates a method (in VS 2003) and anonymous methods too (in VS 2005) [B]Events: [/B]Methods fired when something specifically done
C# declaration syntax (method returning delegate)
Programming
Software Development
14 Years Ago
by EricTetz
… define a method which returns a
delegate
, without first creating a
delegate
type? For instance, in C or… in C#, I can declare a
delegate
type, then declare a method which returns a…
delegate
of that type: [code=c#]
delegate
int IntVoid(); //
delegate
type IntVoid Foo() // function which returns
delegate
{ // return
delegate
here …
How can I emit a call to a delegate whose type is unfinished at the time of the emit?
Programming
Software Development
15 Years Ago
by blackblizzard
…]TypeBuilder[/inlinecode]) create the following class: [code=C#] public MyClass { //
Delegate
type. The 'firstArgument' will be 'this', i.e., this is…... for (int i = 0; i < length; i++) { // Create a
delegate
and store it in directReadAccessors. directReadAccessors[i] = (DirectReadAccessor<MyClass…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC