Click here to Skip to main content
15,902,635 members
Home / Discussions / C#
   

C#

 
QuestionHow to get information of User? Pin
I am kai2-Sep-04 21:47
I am kai2-Sep-04 21:47 
AnswerRe: How to get information of User? Pin
Sebastian Schneider2-Sep-04 22:44
Sebastian Schneider2-Sep-04 22:44 
AnswerRe: How to get information of User? Pin
shaunAustin2-Sep-04 23:58
shaunAustin2-Sep-04 23:58 
Questionhow to use datatable Pin
PrasadVarma2-Sep-04 20:04
PrasadVarma2-Sep-04 20:04 
AnswerRe: how to use datatable Pin
sreejith ss nair2-Sep-04 20:50
sreejith ss nair2-Sep-04 20:50 
GeneralRe: how to use delegates? Pin
mav.northwind2-Sep-04 20:35
mav.northwind2-Sep-04 20:35 
GeneralRe: how to use delegates? Pin
mcsbzu2-Sep-04 20:45
mcsbzu2-Sep-04 20:45 
GeneralRe: how to use delegates? Pin
mav.northwind2-Sep-04 21:31
mav.northwind2-Sep-04 21:31 
Although you don't tell us exactly what your problem is, this might help you:
Delegates are similar to function pointers in C/C++, callback functions that are called when a certain event arises.
The big advantage of .NET delegates is that they are type-safe.
So for example to catch the CheckedChanged event of a CheckBox you'd write:
checkBox1.CheckedChanged += new EventHandler(checkBox1_CheckedChanged);
This attaches a new delegate (EventHandler is a special form of a delegate) to the CheckedChanged event of your CheckBox checkBox1. The method to be called is checkBox1_CheckedChanged and must be defined like this:
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
// Do whatever you want to be performed when the Checked state is changed
}


So far for a start, I'd suggest you read the description of event handling in the .NET framework documentation.

mav
GeneralRe: how to use delegates? Pin
sreejith ss nair2-Sep-04 20:48
sreejith ss nair2-Sep-04 20:48 
Generaldraw a dynamic polyline join line Pin
luming11223344552-Sep-04 16:43
luming11223344552-Sep-04 16:43 
QuestionCan I draw my system cursor in Direct3D? Pin
redleafong2-Sep-04 16:27
redleafong2-Sep-04 16:27 
AnswerRe: Can I draw my system cursor in Direct3D? Pin
LongRange.Shooter3-Sep-04 7:00
LongRange.Shooter3-Sep-04 7:00 
Generalcapturing keydown events Pin
jtmtv182-Sep-04 12:38
jtmtv182-Sep-04 12:38 
GeneralRe: capturing keydown events Pin
Heath Stewart2-Sep-04 14:47
protectorHeath Stewart2-Sep-04 14:47 
QuestionHow do I unload an assembly Pin
khariv2-Sep-04 11:46
khariv2-Sep-04 11:46 
AnswerRe: How do I unload an assembly Pin
Charlie Williams2-Sep-04 12:45
Charlie Williams2-Sep-04 12:45 
GeneralSingle instance app, file extension problem HELP! Pin
cdengler2-Sep-04 11:15
cdengler2-Sep-04 11:15 
GeneralRe: Single instance app, file extension problem HELP! Pin
Heath Stewart2-Sep-04 11:42
protectorHeath Stewart2-Sep-04 11:42 
GeneralRe: Single instance app, file extension problem HELP! Pin
mav.northwind2-Sep-04 20:31
mav.northwind2-Sep-04 20:31 
GeneralRe: Single instance app, file extension problem HELP! Pin
cdengler3-Sep-04 15:49
cdengler3-Sep-04 15:49 
GeneralRe: Single instance app, file extension problem HELP! Pin
mav.northwind3-Sep-04 20:53
mav.northwind3-Sep-04 20:53 
GeneralExpense Tracker tool Pin
MT_SEA2-Sep-04 10:05
MT_SEA2-Sep-04 10:05 
GeneralRe: Expense Tracker tool Pin
Heath Stewart2-Sep-04 11:11
protectorHeath Stewart2-Sep-04 11:11 
GeneralC# System Window bar gradient colors Pin
Tristan Rhodes2-Sep-04 9:39
Tristan Rhodes2-Sep-04 9:39 
GeneralRe: C# System Window bar gradient colors Pin
Heath Stewart2-Sep-04 14:43
protectorHeath Stewart2-Sep-04 14:43 

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.