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
Solved

Event For TextBox(CSharp C#)

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.

839 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