Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to enable auto scroll in a listbox? Pin
Luis Alonso Ramos22-Feb-09 10:11
Luis Alonso Ramos22-Feb-09 10:11 
GeneralRe: How to enable auto scroll in a listbox? Pin
Luis Alonso Ramos22-Feb-09 10:30
Luis Alonso Ramos22-Feb-09 10:30 
AnswerRe: How to enable auto scroll in a listbox? Pin
Luc Pattyn22-Feb-09 10:11
sitebuilderLuc Pattyn22-Feb-09 10:11 
GeneralRe: How to enable auto scroll in a listbox? Pin
bar300023-Feb-09 7:08
bar300023-Feb-09 7:08 
GeneralRe: How to enable auto scroll in a listbox? Pin
Luc Pattyn23-Feb-09 7:27
sitebuilderLuc Pattyn23-Feb-09 7:27 
QuestionIHTMLElement to Bitmap Pin
Sunset Towers22-Feb-09 9:14
Sunset Towers22-Feb-09 9:14 
QuestionHow to query and execute code according to result.. Pin
High0ctane22-Feb-09 8:59
High0ctane22-Feb-09 8:59 
AnswerRe: How to query and execute code according to result.. Pin
Luis Alonso Ramos22-Feb-09 9:12
Luis Alonso Ramos22-Feb-09 9:12 
So, when your user tabs out of that specific control, you want to fill the other text boxes with the data at that specific row index? Something like this could do it:
private void txtClientCode_Validated(object sender, EventArgs e)
{
    int rowIndex = -1;
 
    if(!int.TryParse(txtClientCode.Text, out rowIndex))
        return;  // Number cannot be parsed - maybe you could use Validating event instead
 
    DisplayClientInfo(rowIndex);
}
 
private void DisplayClientInfo(int rowIndex)
{
    DataRow row = m_dtClientInfo.Rows[rowIndex];
 
    txtFirstName.Text = (string)row["FirstName"];
    // Fill the rest of the fields here
}
I hope this helps Smile | :)

Luis Alonso Ramos
Intelectix
Chihuahua, Mexico

My Blog!

GeneralRe: How to query and execute code according to result.. Pin
High0ctane22-Feb-09 12:17
High0ctane22-Feb-09 12:17 
QuestionHow to make pdf file ? Pin
E_Gold22-Feb-09 8:42
E_Gold22-Feb-09 8:42 
AnswerRe: How to make pdf file ? Pin
Luis Alonso Ramos22-Feb-09 9:16
Luis Alonso Ramos22-Feb-09 9:16 
QuestionHow to define pointer to office in c# to control excel document ? Pin
Yanshof22-Feb-09 8:35
Yanshof22-Feb-09 8:35 
QuestionDose Any one Have any Idea about protect from refelector Pin
Fatehy22-Feb-09 8:18
Fatehy22-Feb-09 8:18 
AnswerRe: Dose Any one Have any Idea about protect from refelector Pin
Luis Alonso Ramos22-Feb-09 9:32
Luis Alonso Ramos22-Feb-09 9:32 
AnswerRe: Dose Any one Have any Idea about protect from refelector Pin
CPallini22-Feb-09 9:32
mveCPallini22-Feb-09 9:32 
AnswerRe: Dose Any one Have any Idea about protect from refelector Pin
harold aptroot22-Feb-09 9:41
harold aptroot22-Feb-09 9:41 
AnswerRe: Dose Any one Have any Idea about protect from refelector Pin
Christian Graus22-Feb-09 11:26
protectorChristian Graus22-Feb-09 11:26 
AnswerRe: Dose Any one Have any Idea about protect from refelector Pin
Xmen Real 22-Feb-09 15:07
professional Xmen Real 22-Feb-09 15:07 
Questionneed help on Virtual stock market using C#.net Pin
nikhilbhatia722-Feb-09 8:07
nikhilbhatia722-Feb-09 8:07 
AnswerRe: need help on Virtual stock market using C#.net Pin
0x3c022-Feb-09 9:12
0x3c022-Feb-09 9:12 
AnswerRe: need help on Virtual stock market using C#.net Pin
Christian Graus22-Feb-09 11:27
protectorChristian Graus22-Feb-09 11:27 
QuestionHow to simulate clicking "Enter" in game's window? [modified] Pin
aleXXXka22-Feb-09 7:34
aleXXXka22-Feb-09 7:34 
Questionsyncronization application Pin
Jassim Rahma22-Feb-09 6:22
Jassim Rahma22-Feb-09 6:22 
AnswerRe: syncronization application Pin
Giorgi Dalakishvili22-Feb-09 6:32
mentorGiorgi Dalakishvili22-Feb-09 6:32 
AnswerRe: syncronization application Pin
harold aptroot22-Feb-09 6:35
harold aptroot22-Feb-09 6:35 

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.