Click here to Skip to main content
15,881,715 members
Home / Discussions / C#
   

C#

 
GeneralRe: DllImport issue in c sharp Pin
shivamkalra22-May-11 15:51
shivamkalra22-May-11 15:51 
QuestionRe: DllImport issue in c sharp Pin
Mark Salsbery22-May-11 16:03
Mark Salsbery22-May-11 16:03 
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 
Hi,
Iam using VS2010. I have 10 TextBoxes..

In TextBox1 I handled the event for GotFocus,LostFocus...like the following manner...

this.richTextBox1.GotFocus += new System.EventHandler(this.RichTextBox1_GotFocus);
this.richTextBox1.LostFocus += new System.EventHandler(this.RichTextBox1_LostFocus);

        private void TextBox1_GotFocus(object sender, System.EventArgs e)
        {
            TextBox1.BackColor = Color.White;
        }

        private void TextBox1_LostFocus(object sender, System.EventArgs e)
        {
            TextBox1.BackColor = Color.LightSteelBlue;
        }
Like above I need to do all my Textboxes and I need to do the above codings, instead is it possible to have a common GotFocus,LostFocus to all Textboxes to do the above things?

Any Ideas?

Thanks & Regards
PARAMUThumbs Up | :thumbsup:
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 
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 

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.