Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
AnswerRe: DllImport issue in c sharp Pin
Luc Pattyn22-May-11 16:22
sitebuilderLuc Pattyn22-May-11 16:22 
GeneralRe: DllImport issue in c sharp Pin
Mark Salsbery22-May-11 16:40
Mark Salsbery22-May-11 16:40 
AnswerRe: DllImport issue in c sharp Pin
Luc Pattyn22-May-11 16:52
sitebuilderLuc Pattyn22-May-11 16:52 
AnswerRe: DllImport issue in c sharp Pin
shivamkalra22-May-11 16:33
shivamkalra22-May-11 16:33 
GeneralRe: DllImport issue in c sharp Pin
Mark Salsbery22-May-11 16:41
Mark Salsbery22-May-11 16:41 
QuestionHow to have a common Subs for the same use? C# 2010 Pin
Paramu197322-May-11 4:58
Paramu197322-May-11 4:58 
AnswerRe: How to have a common Subs for the same use? C# 2010 Pin
Luc Pattyn22-May-11 5:01
sitebuilderLuc Pattyn22-May-11 5:01 
AnswerRe: How to have a common Subs for the same use? C# 2010 Pin
Pete O'Hanlon22-May-11 5:04
mvePete O'Hanlon22-May-11 5:04 
It's perfectly possible to hook multiple items up to one event handler. The sender argument is there to identify the control that raised the event, so you can easily do the following in your handlers:
C#
private void HandleLostFocus(object sender, EventArgs e)
{
  TextBox control = sender as TextBox;
  if (control == null) return;
  control.BackColor = Color.LightSteelBlue;
}

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility


GeneralRe: How to have a common Subs for the same use? C# 2010 Pin
Paramu197322-May-11 5:13
Paramu197322-May-11 5:13 
GeneralRe: How to have a common Subs for the same use? C# 2010 Pin
Pete O'Hanlon22-May-11 8:29
mvePete O'Hanlon22-May-11 8:29 
Questionc# Problem with webbrowser control loading local images Pin
_Q12_22-May-11 3:54
_Q12_22-May-11 3:54 
AnswerRe: c# Problem with webbrowser control loading local images Pin
Dalek Dave22-May-11 4:27
professionalDalek Dave22-May-11 4:27 
GeneralRe: c# Problem with webbrowser control loading local images [modified] Pin
_Q12_22-May-11 4:31
_Q12_22-May-11 4:31 
AnswerRe: c# Problem with webbrowser control loading local images [modified] Pin
Luc Pattyn22-May-11 5:07
sitebuilderLuc Pattyn22-May-11 5:07 
AnswerRe: c# Problem with webbrowser control loading local images Pin
Luc Pattyn22-May-11 5:30
sitebuilderLuc Pattyn22-May-11 5:30 
GeneralRe: c# Problem with webbrowser control loading local images Pin
Mark Salsbery22-May-11 5:32
Mark Salsbery22-May-11 5:32 
GeneralRe: c# Problem with webbrowser control loading local images Pin
_Q12_22-May-11 7:12
_Q12_22-May-11 7:12 
AnswerRe: c# Problem with webbrowser control loading local images Pin
#realJSOP23-May-11 1:47
mve#realJSOP23-May-11 1:47 
QuestionClose wrod corrctly, it's possile? Pin
abbd21-May-11 13:49
abbd21-May-11 13:49 
AnswerRe: Close wrod corrctly, it's possile? Pin
Luc Pattyn21-May-11 14:14
sitebuilderLuc Pattyn21-May-11 14:14 
AnswerRe: Close wrod corrctly, it's possile? Pin
Not Active21-May-11 16:00
mentorNot Active21-May-11 16:00 
AnswerRe: Close wrod corrctly, it's possile? Pin
GenJerDan21-May-11 17:01
GenJerDan21-May-11 17:01 
GeneralRe: Close wrod corrctly, it's possile? Pin
abbd22-May-11 5:56
abbd22-May-11 5:56 
GeneralRe: Close wrod corrctly, it's possile? Pin
GenJerDan22-May-11 7:41
GenJerDan22-May-11 7:41 
GeneralRe: Close wrod corrctly, it's possile? Pin
abbd22-May-11 10:13
abbd22-May-11 10:13 

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.