Solved

Event For TextBox(CSharp C#)

Posted on 2004-09-28
5
2,171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

726 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