Click here to Skip to main content
15,892,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: C#, Windows 8 UAC, and registry edit Pin
clover4leaves16-Jan-13 14:00
clover4leaves16-Jan-13 14:00 
GeneralRe: C#, Windows 8 UAC, and registry edit Pin
Jonathan C Dickinson17-Jan-13 2:00
Jonathan C Dickinson17-Jan-13 2:00 
GeneralRe: C#, Windows 8 UAC, and registry edit Pin
clover4leaves17-Jan-13 4:09
clover4leaves17-Jan-13 4:09 
QuestionCombo box selection event Pin
Trishal15-Jan-13 19:59
Trishal15-Jan-13 19:59 
AnswerRe: Combo box selection event Pin
Abhinav S15-Jan-13 21:38
Abhinav S15-Jan-13 21:38 
AnswerRe: Combo box selection event Pin
Trishal15-Jan-13 22:37
Trishal15-Jan-13 22:37 
GeneralRe: Combo box selection event Pin
Richard MacCutchan15-Jan-13 22:50
mveRichard MacCutchan15-Jan-13 22:50 
GeneralRe: Combo box selection event Pin
Trishal15-Jan-13 23:22
Trishal15-Jan-13 23:22 
C#
public partial class Form1 : Form
    {
        string Id = "";
        string Address = "";
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'database1DataSet1.Test' table. You can move, or remove it, as needed.
            this.testTableAdapter.Fill(this.database1DataSet1.Test);

        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string SelectedId = Convert.ToString(comboBox1.SelectedValue);

            if (Convert.ToString(comboBox1.SelectedValue) != "")
                database1DataSet1.DataSource =  Database1DataSet1TableAdapters.GetData(int.Parse(SelectedId));

            var Id = from r in testTableAdapter.GetData()
                           where r["Id"].ToString() == SelectedId
                           select r["Name"];

            var Address = from r in testTableAdapter.GetData()
                              where r["ProductId"].ToString() == SelectedId
                              select r["Address"];


            foreach (var unit in Id)
                Id = id.ToString();

            foreach (var measure in Name)
                ProductMeasure = measure.ToString();

            //  MessageBox.Show(ProductUnit);

            textBox1.Text = Id;
            }

GeneralRe: Combo box selection event Pin
Richard MacCutchan15-Jan-13 23:35
mveRichard MacCutchan15-Jan-13 23:35 
GeneralRe: Combo box selection event Pin
masalahi22-Jan-13 11:24
masalahi22-Jan-13 11:24 
GeneralRe: Combo box selection event Pin
V.15-Jan-13 23:00
professionalV.15-Jan-13 23:00 
QuestionReading metadata from exported types with .net framework 3.5 Pin
Danzy8315-Jan-13 12:18
Danzy8315-Jan-13 12:18 
Answer[Solved] Reading metadata from exported types with .net framework 3.5 Pin
Danzy8315-Jan-13 12:52
Danzy8315-Jan-13 12:52 
QuestionNLog question Pin
vanikanc15-Jan-13 10:16
vanikanc15-Jan-13 10:16 
AnswerRe: NLog question Pin
Jibesh15-Jan-13 11:23
professionalJibesh15-Jan-13 11:23 
AnswerRe: NLog question Pin
jschell16-Jan-13 9:23
jschell16-Jan-13 9:23 
GeneralRe: NLog question Pin
vanikanc16-Jan-13 9:34
vanikanc16-Jan-13 9:34 
GeneralRe: NLog question Pin
jschell17-Jan-13 8:13
jschell17-Jan-13 8:13 
QuestionAdd a dll reference from another server. Pin
vanikanc15-Jan-13 9:55
vanikanc15-Jan-13 9:55 
AnswerRe: Add a dll reference from another server. Pin
Jibesh15-Jan-13 10:08
professionalJibesh15-Jan-13 10:08 
AnswerRe: Add a dll reference from another server. Pin
Garth J Lancaster15-Jan-13 10:14
professionalGarth J Lancaster15-Jan-13 10:14 
AnswerRe: Add a dll reference from another server. Pin
Abhinav S15-Jan-13 21:42
Abhinav S15-Jan-13 21:42 
QuestionHow to show google zoom bar in my map ? Pin
a1_shay15-Jan-13 8:26
a1_shay15-Jan-13 8:26 
AnswerRe: How to show google zoom bar in my map ? Pin
Pete O'Hanlon15-Jan-13 8:48
mvePete O'Hanlon15-Jan-13 8:48 
QuestionWCF Self-Hosted REST service... how to create OperationContext?? Pin
SledgeHammer0115-Jan-13 7:05
SledgeHammer0115-Jan-13 7:05 

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.