Solved

Event For TextBox(CSharp C#)

Posted on 2004-09-28
5
2,163 Views
Last Modified: 2006-11-17
Sir
   I would Like to ask you, how to raise an event in CSharp(C#) ASP.NET Web Application. Suppose I have two TextBoxes on a form and I would like to rasie an events on navigating TextBoxes (Like in Visual Basic we have GotFocus() and LostFocus() Events).

Hope I made question clear to you.

your reply is appreciated
my mailing adderess :  ishaq_hussain@hotmail.com

Regards




   
0
Comment
Question by:habeebh
5 Comments
 

Expert Comment

by:TariqRahim
ID: 12168163
Well
Dear i f u r asking abount a Custom Event that u have to write ur own Custom Control Inherti9d from TextBox and then u have to embed ur Custom Event i n it. and this is proper way to do such things
 it s is very easy to build a Custom control

if this is tur problem tell mei'll tell u further details , if it is not ur question then please make clear ur question more

 
0
 

Author Comment

by:habeebh
ID: 12168453
Sir,
   
 My actual purpose is to change the Locale (Arabic to English and Vice Versa) when a user navigates the Textboxes automatically.
      when user enters in TextBox control (English).......then it will written in English
      when user enters in TextBox control (Arabic).......then it will written in Arabic
     
 Or
     If  above problem can be solved in some other way then please guide me

 Thanks
0
 
LVL 3

Accepted Solution

by:
Validor earned 250 total points
ID: 12171795
If you are using an IDE, you can usually double-click on the component just like you did in VB, if this is a webform control.  It will create an event handler for the default event.  Select a different event if you want, and put the code in.

Since you are versed in VB, it seems to me that this would be obvious.  If you are not using an IDE, I could show you how to create the event handler in code, but there is little reason to worry about it.  There are free IDEs and you should be using one of them.

Google for WebMatrix and C#Builder Personal Edition.
Both are free.

0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is about my first experience with programming Arduino.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question