Click here to Skip to main content
15,569,222 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# console log file Pin
AmitGajjar1-Sep-12 17:27
professionalAmitGajjar1-Sep-12 17:27 
AnswerRe: C# console log file Pin
PIEBALDconsult1-Sep-12 18:44
professionalPIEBALDconsult1-Sep-12 18:44 
QuestionC# 2008 dynamic path Pin
sc steinhayse1-Sep-12 7:36
sc steinhayse1-Sep-12 7:36 
AnswerRe: C# 2008 dynamic path Pin
PIEBALDconsult1-Sep-12 8:03
professionalPIEBALDconsult1-Sep-12 8:03 
GeneralRe: C# 2008 dynamic path Pin
sc steinhayse1-Sep-12 8:09
sc steinhayse1-Sep-12 8:09 
GeneralRe: C# 2008 dynamic path Pin
PIEBALDconsult1-Sep-12 8:26
professionalPIEBALDconsult1-Sep-12 8:26 
GeneralRe: C# 2008 dynamic path Pin
Mycroft Holmes1-Sep-12 14:43
professionalMycroft Holmes1-Sep-12 14:43 
QuestionSelect next control if control is in groupbox? Pin
GrooverFromHolland1-Sep-12 1:47
GrooverFromHolland1-Sep-12 1:47 
Hi all,


I use the following code to select the next control.

C#

C#
private void opdrachtnummerTextBox_KeyPress(object sender, KeyPressEventArgs e)
       {
           if (e.KeyChar == (char)13)
           {
               ZakdataDatabase_Insert("Opdrachtnummer", opdrachtnummerTextBox.Text);
               SelectNext_control(opdrachtnummerTextBox.Tag.ToString());

           }
       }
private void SelectNext_control(string t)
        {
            bool isNextControl = false;
            int TagToFind = (int.Parse(t));
            do
            {
                TagToFind++;
                foreach (Control c in this.Controls)
                {
                    if ((c.Tag != null)&&(c.Visible=true))
                    {
                        if (c.Tag.ToString() == TagToFind.ToString())
                        {
                            isNextControl = true;
                            c.Select();
                        }
                    }
                }
                if (TagToFind > 102) break;
            } while (!isNextControl);
        }

All controls are tagged with an incremented number.
What to do if the next control is in a groupBox?

Thanks,

Groover.

0200 A9 23
0202 8D 01 80
0205 00

AnswerRe: Select next control if control is in groupbox? Pin
OriginalGriff1-Sep-12 2:47
mvaOriginalGriff1-Sep-12 2:47 
GeneralRe: Select next control if control is in groupbox? Pin
GrooverFromHolland1-Sep-12 6:35
GrooverFromHolland1-Sep-12 6:35 
AnswerRe: Select next control if control is in groupbox? Pin
Eddy Vluggen1-Sep-12 4:36
professionalEddy Vluggen1-Sep-12 4:36 
AnswerRe: Select next control if control is in groupbox? Pin
BillWoodruff3-Sep-12 16:38
professionalBillWoodruff3-Sep-12 16:38 
QuestionExperimentation - Would Like Feedback Pin
Matt U.31-Aug-12 10:59
Matt U.31-Aug-12 10:59 
AnswerRe: Experimentation - Would Like Feedback Pin
SledgeHammer0131-Aug-12 11:52
SledgeHammer0131-Aug-12 11:52 
AnswerRe: Experimentation - Would Like Feedback Pin
ekolis31-Aug-12 12:26
ekolis31-Aug-12 12:26 
AnswerRe: Experimentation - Would Like Feedback Pin
Ravi Bhavnani31-Aug-12 13:36
professionalRavi Bhavnani31-Aug-12 13:36 
AnswerRe: Experimentation - Would Like Feedback Pin
OriginalGriff1-Sep-12 2:53
mvaOriginalGriff1-Sep-12 2:53 
GeneralRe: Experimentation - Would Like Feedback Pin
Matt U.6-Sep-12 8:29
Matt U.6-Sep-12 8:29 
GeneralRe: Experimentation - Would Like Feedback Pin
OriginalGriff6-Sep-12 8:58
mvaOriginalGriff6-Sep-12 8:58 
Questionpassing data between forms Pin
mamoony31-Aug-12 9:53
mamoony31-Aug-12 9:53 
AnswerRe: passing data between forms Pin
Richard Andrew x6431-Aug-12 10:18
professionalRichard Andrew x6431-Aug-12 10:18 
AnswerRe: passing data between forms Pin
OriginalGriff31-Aug-12 10:21
mvaOriginalGriff31-Aug-12 10:21 
GeneralRe: passing data between forms Pin
mamoony31-Aug-12 11:08
mamoony31-Aug-12 11:08 
GeneralRe: passing data between forms Pin
OriginalGriff31-Aug-12 22:09
mvaOriginalGriff31-Aug-12 22:09 
GeneralRe: passing data between forms Pin
BillWoodruff3-Sep-12 16:59
professionalBillWoodruff3-Sep-12 16:59 

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.