• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2193
  • Last Modified:

Event For TextBox(CSharp C#)

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
habeebh
Asked:
habeebh
1 Solution
 
TariqRahimCommented:
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
 
habeebhAuthor Commented:
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
 
ValidorCommented:
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now