Click here to Skip to main content
15,920,633 members
Home / Discussions / C#
   

C#

 
QuestionChanging the text of label Pin
sujithkumarsl2-May-07 23:19
sujithkumarsl2-May-07 23:19 
AnswerRe: Changing the text of label Pin
Giorgi Dalakishvili2-May-07 23:28
mentorGiorgi Dalakishvili2-May-07 23:28 
GeneralRe: Changing the text of label Pin
sujithkumarsl2-May-07 23:42
sujithkumarsl2-May-07 23:42 
GeneralRe: Changing the text of label Pin
Giorgi Dalakishvili2-May-07 23:46
mentorGiorgi Dalakishvili2-May-07 23:46 
GeneralRe: Changing the text of label Pin
sujithkumarsl2-May-07 23:52
sujithkumarsl2-May-07 23:52 
GeneralRe: Changing the text of label Pin
Sandeep Akhare2-May-07 23:58
Sandeep Akhare2-May-07 23:58 
GeneralRe: Changing the text of label Pin
sujithkumarsl3-May-07 0:06
sujithkumarsl3-May-07 0:06 
GeneralRe: Changing the text of label Pin
Soundman32.23-May-07 0:59
Soundman32.23-May-07 0:59 
GeneralRe: Changing the text of label Pin
Dave Kreskowiak3-May-07 3:49
mveDave Kreskowiak3-May-07 3:49 
GeneralRe: Changing the text of label Pin
Rudolf Jan3-May-07 0:14
Rudolf Jan3-May-07 0:14 
GeneralRe: Changing the text of label Pin
sujithkumarsl3-May-07 0:17
sujithkumarsl3-May-07 0:17 
GeneralRe: Changing the text of label Pin
gumi_r@msn.com3-May-07 3:03
gumi_r@msn.com3-May-07 3:03 
GeneralRe: Changing the text of label Pin
Dave Kreskowiak3-May-07 3:51
mveDave Kreskowiak3-May-07 3:51 
GeneralRe: Changing the text of label [modified] Pin
gumi_r@msn.com3-May-07 6:08
gumi_r@msn.com3-May-07 6:08 
GeneralRe: Changing the text of label [modified] Pin
gumi_r@msn.com3-May-07 6:40
gumi_r@msn.com3-May-07 6:40 
GeneralRe: Changing the text of label Pin
Dave Kreskowiak3-May-07 13:33
mveDave Kreskowiak3-May-07 13:33 
GeneralRe: Changing the text of label Pin
Dave Kreskowiak3-May-07 3:48
mveDave Kreskowiak3-May-07 3:48 
GeneralRe: Changing the text of label Pin
sujithkumarsl3-May-07 8:42
sujithkumarsl3-May-07 8:42 
QuestionHow to get control of selected component. Pin
suveenmohan2-May-07 22:48
suveenmohan2-May-07 22:48 
AnswerRe: How to get control of selected component. Pin
Arun.Immanuel2-May-07 23:22
Arun.Immanuel2-May-07 23:22 
GeneralRe: How to get control of selected component. Pin
suveenmohan2-May-07 23:28
suveenmohan2-May-07 23:28 
GeneralRe: How to get control of selected component. Pin
Arun.Immanuel3-May-07 0:21
Arun.Immanuel3-May-07 0: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 5:36
AFSEKI7-May-07 5:36 
QuestionCulture and ResourceBundle Questions Pin
Ollie19862-May-07 22:39
Ollie19862-May-07 22:39 
QuestionFinding Info about a dll using Reflection Pin
SatyaDY2-May-07 22:00
SatyaDY2-May-07 22:00 

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.