Click here to Skip to main content
15,900,686 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to insert unicode into SQL server from c# Pin
Muammar©5-May-07 1:49
Muammar©5-May-07 1:49 
AnswerRe: how to insert unicode into SQL server from c# Pin
Rob Graham5-May-07 4:08
Rob Graham5-May-07 4:08 
AnswerRe: how to insert unicode into SQL server from c# Pin
AFSEKI7-May-07 2:59
AFSEKI7-May-07 2:59 
QuestionAssigning EventHandler once in a method invoked many times Pin
Seishin#4-May-07 21:29
Seishin#4-May-07 21:29 
AnswerRe: Assigning EventHandler once in a method invoked many times Pin
Arun.Immanuel4-May-07 21:42
Arun.Immanuel4-May-07 21:42 
AnswerRe: Assigning EventHandler once in a method invoked many times Pin
Seishin#5-May-07 0:23
Seishin#5-May-07 0:23 
GeneralRe: Assigning EventHandler once in a method invoked many times Pin
Arun.Immanuel5-May-07 0:47
Arun.Immanuel5-May-07 0:47 
GeneralRe: Assigning EventHandler once in a method invoked many times Pin
Seishin#5-May-07 1:01
Seishin#5-May-07 1:01 
Arun.Immanuel wrote:
cant U check like:
if(objTwo.objOne.someEvent==null)
objTwo.objOne.someEvent+=new EventHandler(someOtherDelegate);


nope.. as i wrote you can check event for null only in the class where you declare it.. in this case it would by objOne.. in objThree I can only += or -= delegates..


Arun.Immanuel wrote:
Though this statement will make the delegate invoke only one function,
U R remiving and assigning the function each time.


yup.. and thus it'll prevent adding more than one instance of my wished delegate from objThree to someEvent.. if i didn't try to -= the delegate another instance of it would be added later and in effect in stead of caling the delegate once i'd do it as many times as i added it..

Arun.Immanuel wrote:
Or can't u simply assign with "=" sign instead of +=, so that it will
overwrite any existing one.

putting aside the fact that you cant do something like that, I'm assigning delegates to this event in other classes too so i can't do something like that..

btw. you shouldn't use the U in stead od 'you' etc. on this kind of forums (this kind of writing has its name but can't remember it Big Grin | :-D )



life is study!!!

GeneralRe: Assigning EventHandler once in a method invoked many times Pin
Arun.Immanuel5-May-07 1:25
Arun.Immanuel5-May-07 1:25 
QuestionConnect to pc using DSL ? Pin
shdelpiero4-May-07 21:01
shdelpiero4-May-07 21:01 
AnswerRe: Connect to pc using DSL ? Pin
shdelpiero4-May-07 22:01
shdelpiero4-May-07 22:01 
GeneralRe: Connect to pc using DSL ? Pin
Muammar©5-May-07 1:47
Muammar©5-May-07 1:47 
GeneralRe: Connect to pc using DSL ? Pin
shdelpiero5-May-07 5:21
shdelpiero5-May-07 5:21 
GeneralRe: Connect to pc using DSL ? Pin
Dave Kreskowiak5-May-07 18:07
mveDave Kreskowiak5-May-07 18:07 
QuestionUploading a file from C# Windows Application to ASP.NEtTWeb form Pin
Raza Hussain4-May-07 20:19
Raza Hussain4-May-07 20:19 
QuestionAbout Webbrowser's MesssageBox Pin
amon04244-May-07 20:05
amon04244-May-07 20:05 
Questioninserting unicode character from c# program to sql server 2005 Pin
rehab14-May-07 19:54
rehab14-May-07 19:54 
AnswerRe: inserting unicode character from c# program to sql server 2005 Pin
lost in transition 4-May-07 20:22
lost in transition 4-May-07 20:22 
Questioninserting unicode character from c# to sql server 2005 Pin
rehab14-May-07 19:52
rehab14-May-07 19:52 
AnswerRe: inserting unicode character from c# to sql server 2005 Pin
Hesham Amin4-May-07 22:23
Hesham Amin4-May-07 22:23 
QuestionObject reference not set to an instance of an object. Pin
balanjingot4-May-07 19:19
balanjingot4-May-07 19:19 
AnswerRe: Object reference not set to an instance of an object. Pin
lost in transition 4-May-07 19:50
lost in transition 4-May-07 19:50 
GeneralRe: Object reference not set to an instance of an object. Pin
balanjingot4-May-07 20:00
balanjingot4-May-07 20:00 
GeneralRe: Object reference not set to an instance of an object. Pin
lost in transition 4-May-07 20:20
lost in transition 4-May-07 20:20 
GeneralRe: Object reference not set to an instance of an object. Pin
balanjingot4-May-07 20:58
balanjingot4-May-07 20:58 

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.