Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: Bitmap and multiple threads Pin
Guffa2-Nov-07 8:46
Guffa2-Nov-07 8:46 
QuestionCrystalreportview scroll selected group to top of page Pin
c0ax_lx1-Nov-07 23:26
c0ax_lx1-Nov-07 23:26 
Questionreplacing tags in template Pin
stephan_0071-Nov-07 23:17
stephan_0071-Nov-07 23:17 
QuestionChanging DataColume Datatype!! Pin
Navneet Hegde1-Nov-07 22:37
Navneet Hegde1-Nov-07 22:37 
Questiondouble precision problem Pin
Seraph_summer1-Nov-07 22:21
Seraph_summer1-Nov-07 22:21 
AnswerRe: double precision problem Pin
il_masacratore1-Nov-07 22:33
il_masacratore1-Nov-07 22:33 
AnswerRe: double precision problem Pin
Malcolm Smart1-Nov-07 23:04
Malcolm Smart1-Nov-07 23:04 
QuestionCosole Delegates Pin
new2pgrmg1-Nov-07 22:03
new2pgrmg1-Nov-07 22:03 
Hi,
Will i be able to use delegates in this code without inheriting the different classes.
If not what is the advantage in using delegates in this code?
Is delegate more useful when we are dealing with multiple forms and events?


using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication2
{
public delegate void nameofdelegate();
class Program
{


public static void function1()
{
Console.WriteLine("will be called by the delegate");
Console.ReadLine();
}
}
class newprogram:Program
{
public static void function2()
{
Console.WriteLine("second delegate");
Console.ReadLine();

}
}

class mainprogram:newprogram
{


static void Main(string[] args)
{
nameofdelegate delobj = new nameofdelegate(function1);
nameofdelegate delobject = new nameofdelegate(function2);
delobj();
delobject();

}
}
}

Thanking you


k
AnswerRe: Cosole Delegates Pin
Guffa1-Nov-07 22:13
Guffa1-Nov-07 22:13 
GeneralRe: Console Delegates Pin
new2pgrmg1-Nov-07 22:23
new2pgrmg1-Nov-07 22:23 
AnswerRe: Console Delegates Pin
Guffa1-Nov-07 23:20
Guffa1-Nov-07 23:20 
QuestionHow to detect a file if it is locked by another process Pin
vuthaianh1-Nov-07 22:01
vuthaianh1-Nov-07 22:01 
AnswerRe: How to detect a file if it is locked by another process Pin
kalyan_24162-Nov-07 0:38
kalyan_24162-Nov-07 0:38 
AnswerRe: How to detect a file if it is locked by another process Pin
Jimmanuel2-Nov-07 2:45
Jimmanuel2-Nov-07 2:45 
QuestionCan I cast process to instance of an object ? Pin
eyosha1-Nov-07 21:30
eyosha1-Nov-07 21:30 
QuestionWMP COM Operations in C#.net 2.0 Pin
nayabsiddiqi1-Nov-07 21:15
nayabsiddiqi1-Nov-07 21:15 
QuestionGreat problem in my UI... Pin
Pankaj - Joshi1-Nov-07 20:17
Pankaj - Joshi1-Nov-07 20:17 
AnswerRe: Great problem in my UI... Pin
Ronni Marker21-Mar-09 2:43
Ronni Marker21-Mar-09 2:43 
Questionhow to get values from different tables and get in to a grid? Pin
MS Lee1-Nov-07 19:37
MS Lee1-Nov-07 19:37 
AnswerRe: how to get values from different tables and get in to a grid? Pin
Pankaj - Joshi1-Nov-07 19:42
Pankaj - Joshi1-Nov-07 19:42 
GeneralRe: how to get values from different tables and get in to a grid? Pin
MS Lee1-Nov-07 19:51
MS Lee1-Nov-07 19:51 
AnswerRe: how to get values from different tables and get in to a grid? Pin
Nouman Bhatti1-Nov-07 19:44
Nouman Bhatti1-Nov-07 19:44 
GeneralRe: how to get values from different tables and get in to a grid? Pin
MS Lee1-Nov-07 19:50
MS Lee1-Nov-07 19:50 
AnswerRe: how to get values from different tables and get in to a grid? Pin
MS Lee1-Nov-07 19:48
MS Lee1-Nov-07 19:48 
QuestionBook For Three tier Architecture Pin
help as an alias1-Nov-07 19:37
help as an alias1-Nov-07 19:37 

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.