Solved

Event For TextBox(CSharp C#)

Posted on 2004-09-28
5
2,153 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
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 …
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now