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

C#

 
AnswerRe: Frames extraction in C# Pin
Richard MacCutchan11-Apr-10 22:31
mveRichard MacCutchan11-Apr-10 22:31 
QuestionGet List of All Controls and their properties C# Pin
jojoba201111-Apr-10 21:16
jojoba201111-Apr-10 21:16 
AnswerRe: Get List of All Controls and their properties C# Pin
Calla11-Apr-10 21:37
Calla11-Apr-10 21:37 
QuestionRe: Get List of All Controls and their properties C# Pin
jojoba201111-Apr-10 21:45
jojoba201111-Apr-10 21:45 
AnswerRe: Get List of All Controls and their properties C# Pin
dan!sh 11-Apr-10 21:49
professional dan!sh 11-Apr-10 21:49 
AnswerRe: Get List of All Controls and their properties C# Pin
Calla11-Apr-10 22:16
Calla11-Apr-10 22:16 
AnswerRe: Get List of All Controls and their properties C# Pin
Luc Pattyn11-Apr-10 22:47
sitebuilderLuc Pattyn11-Apr-10 22:47 
AnswerRe: Get List of All Controls and their properties C# Pin
yu-jian15-Apr-10 6:59
yu-jian15-Apr-10 6:59 
this code cal get all control in the form. Smile | :)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GetAllControls
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            findControl(this);
            foreach (Control control in controlList)
            {
                if (control is System.Windows.Forms.Panel)
                {
                }
                
            }
        }

        private void findControl(Control control)
        {
            if (control != null && control.Controls != null)
            {
                foreach (Control childControl in control.Controls)
                {
                    findControl(childControl);
                    this.controlList.Add(childControl);
                }
            }
        }

        private List<Control> controlList = new List<Control>();
    }
}

QuestionHow to remove particular character from the string Pin
M Riaz Bashir11-Apr-10 20:59
M Riaz Bashir11-Apr-10 20:59 
AnswerRe: How to remove particular character from the string Pin
Rajesh Anuhya11-Apr-10 21:02
professionalRajesh Anuhya11-Apr-10 21:02 
GeneralRe: How to remove particular character from the string Pin
M Riaz Bashir11-Apr-10 21:10
M Riaz Bashir11-Apr-10 21:10 
AnswerRe: How to remove particular character from the string Pin
Sandesh M Patil12-Apr-10 0:48
Sandesh M Patil12-Apr-10 0:48 
QuestionSetting [assembly: InternalsVisibleTo("UI Test")] Conditionally if it is DEBUG Mode Pin
Nadia Monalisa11-Apr-10 20:24
Nadia Monalisa11-Apr-10 20:24 
AnswerRe: Setting [assembly: InternalsVisibleTo("UI Test")] Conditionally if it is DEBUG Mode Pin
Abhinav S11-Apr-10 20:41
Abhinav S11-Apr-10 20:41 
AnswerRe: Setting [assembly: InternalsVisibleTo("UI Test")] Conditionally if it is DEBUG Mode Pin
Ravi Bhavnani12-Apr-10 1:58
professionalRavi Bhavnani12-Apr-10 1:58 
GeneralRe: Setting [assembly: InternalsVisibleTo("UI Test")] Conditionally if it is DEBUG Mode Pin
Nadia Monalisa12-Apr-10 21:17
Nadia Monalisa12-Apr-10 21:17 
GeneralRe: Setting [assembly: InternalsVisibleTo("UI Test")] Conditionally if it is DEBUG Mode Pin
Ravi Bhavnani13-Apr-10 4:44
professionalRavi Bhavnani13-Apr-10 4:44 
QuestionExecute a segment of code conditionally IF it is DEBUG mode or RELEASE mode Pin
Nadia Monalisa11-Apr-10 20:16
Nadia Monalisa11-Apr-10 20:16 
AnswerRe: Execute a segment of code conditionally IF it is DEBUG mode or RELEASE mode Pin
Abhinav S11-Apr-10 20:43
Abhinav S11-Apr-10 20:43 
QuestionWhat is equivalent to java property file in .net Pin
Joe Rozario11-Apr-10 19:42
Joe Rozario11-Apr-10 19:42 
AnswerRe: What is equivalent to java property file in .net Pin
David Skelly11-Apr-10 22:17
David Skelly11-Apr-10 22:17 
Questionrow headers Pin
Member 59031011-Apr-10 19:33
Member 59031011-Apr-10 19:33 
AnswerRe: row headers Pin
dan!sh 11-Apr-10 20:46
professional dan!sh 11-Apr-10 20:46 
GeneralRe: row headers Pin
Member 59031011-Apr-10 20:55
Member 59031011-Apr-10 20:55 
GeneralRe: row headers Pin
dan!sh 11-Apr-10 21:32
professional dan!sh 11-Apr-10 21:32 

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.