Click here to Skip to main content
15,847,583 members
Home / Discussions / C#
   

C#

 
GeneralRe: Changing the text of label [modified] Pin
gumi_r@msn.com3-May-07 7:40
gumi_r@msn.com3-May-07 7:40 
GeneralRe: Changing the text of label Pin
Dave Kreskowiak3-May-07 14:33
mveDave Kreskowiak3-May-07 14:33 
GeneralRe: Changing the text of label Pin
Dave Kreskowiak3-May-07 4:48
mveDave Kreskowiak3-May-07 4:48 
GeneralRe: Changing the text of label Pin
sujithkumarsl3-May-07 9:42
sujithkumarsl3-May-07 9:42 
QuestionHow to get control of selected component. Pin
suveenmohan2-May-07 23:48
suveenmohan2-May-07 23:48 
AnswerRe: How to get control of selected component. Pin
Arun.Immanuel3-May-07 0:22
Arun.Immanuel3-May-07 0:22 
GeneralRe: How to get control of selected component. Pin
suveenmohan3-May-07 0:28
suveenmohan3-May-07 0:28 
GeneralRe: How to get control of selected component. Pin
Arun.Immanuel3-May-07 1:21
Arun.Immanuel3-May-07 1:21 
As U have only
5 controls in Ur form,
better try this:

Create a member as follows:
TextBox LastBox;


For the OnLeave event of 3 textboxes,write like this:
Text1_OnLeave()
{
    LastBox=TextBox1;//Similar assignment in the other 2 textboxes.
}


For the OnLeave event of other controls,assign null to the member "LastBox".

Create a function as follows:
=============================
Validate()
{
  if(LastText==TextBox1)
  {
     Code to validate Textbox1.
  }
  else if(LastText==TextBox2)
  {
     Code to validate Textbox2.
  }
  else if(LastText==TextBox3)
  {
     Code to validate Textbox3.
  }
}


Call the "Validate" function in the OnEnter event of all the controls,
except ExitButton.



If U R not able to find a better solution, use this.

Regards,
Arun Kumar.A

AnswerRe: How to get control of selected component. Pin
AFSEKI7-May-07 6:36
AFSEKI7-May-07 6:36 
QuestionCulture and ResourceBundle Questions Pin
Ollie19862-May-07 23:39
Ollie19862-May-07 23:39 
QuestionFinding Info about a dll using Reflection Pin
SatyaDY2-May-07 23:00
SatyaDY2-May-07 23:00 
AnswerRe: Finding Info about a dll using Reflection Pin
Vikram A Punathambekar2-May-07 23:05
Vikram A Punathambekar2-May-07 23:05 
GeneralRe: Finding Info about a dll using Reflection Pin
SatyaDY2-May-07 23:12
SatyaDY2-May-07 23:12 
GeneralRe: Finding Info about a dll using Reflection Pin
Pete O'Hanlon2-May-07 23:24
subeditorPete O'Hanlon2-May-07 23:24 
GeneralRe: Finding Info about a dll using Reflection Pin
SatyaDY2-May-07 23:32
SatyaDY2-May-07 23:32 
GeneralRe: Finding Info about a dll using Reflection Pin
Pete O'Hanlon3-May-07 1:29
subeditorPete O'Hanlon3-May-07 1:29 
GeneralRe: Finding Info about a dll using Reflection Pin
SatyaDY3-May-07 2:19
SatyaDY3-May-07 2:19 
GeneralRe: Finding Info about a dll using Reflection Pin
Pete O'Hanlon3-May-07 4:00
subeditorPete O'Hanlon3-May-07 4:00 
GeneralRe: Finding Info about a dll using Reflection Pin
Vikram A Punathambekar2-May-07 23:35
Vikram A Punathambekar2-May-07 23:35 
AnswerRe: Finding Info about a dll using Reflection Pin
AFSEKI7-May-07 6:38
AFSEKI7-May-07 6:38 
QuestionConditional Directives Pin
Dewald2-May-07 22:49
Dewald2-May-07 22:49 
AnswerRe: Conditional Directives Pin
Luc Pattyn3-May-07 2:16
sitebuilderLuc Pattyn3-May-07 2:16 
Questionhow to parse the file into xml Pin
DON3452-May-07 22:03
DON3452-May-07 22:03 
AnswerRe: how to parse the file into xml Pin
Sandeep Akhare2-May-07 22:27
Sandeep Akhare2-May-07 22:27 
GeneralRe: how to parse the file into xml Pin
DON3452-May-07 22:30
DON3452-May-07 22:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.