Click here to Skip to main content
15,868,016 members
Home / Discussions / C#
   

C#

 
QuestionRe: Type.GetType() Error Pin
Christopher Perumal21-Oct-09 21:57
Christopher Perumal21-Oct-09 21:57 
AnswerRe: Type.GetType() Error Pin
SeMartens21-Oct-09 22:19
SeMartens21-Oct-09 22:19 
GeneralRe: Type.GetType() Error [Solved] Pin
Christopher Perumal21-Oct-09 23:07
Christopher Perumal21-Oct-09 23:07 
AnswerRe: Type.GetType() Error Pin
0x3c021-Oct-09 20:39
0x3c021-Oct-09 20:39 
QuestionLinked List with Notepad Database. Pin
Dexter Brylle Matos21-Oct-09 17:54
Dexter Brylle Matos21-Oct-09 17:54 
AnswerRe: Linked List with Notepad Database. Pin
SeMartens21-Oct-09 20:38
SeMartens21-Oct-09 20:38 
GeneralRe: Linked List with Notepad Database. Pin
Dexter Brylle Matos22-Oct-09 19:28
Dexter Brylle Matos22-Oct-09 19:28 
GeneralRe: Linked List with Notepad Database. Pin
Dexter Brylle Matos22-Oct-09 19:43
Dexter Brylle Matos22-Oct-09 19:43 
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;
using System;
using System.Xml;


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

        private LinkedList<StudentInfo> Stud = new LinkedList<StudentInfo>();

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void AddEntry_Click(object sender, EventArgs e)
        {
            StudentInfo Temp = new StudentInfo();
            Temp.ID = int.Parse(textBox2.Text);
            Temp.LastName = textBox1.Text;
            Temp.FirstName = textBox4.Text;
            Temp.EMail = textBox3.Text;
            Temp.CInfo = long.Parse(textBox5.Text);

            Stud.AddLast(Temp);

            MessageBox.Show(" Data entry succesful! ");


        }

        private void Clear_Click(object sender, EventArgs e)
        {
            textBox1.Clear();
            textBox2.Clear();
            textBox3.Clear();
            textBox4.Clear();
            textBox5.Clear();
        }

        private void button7_Click(object sender, EventArgs e)
        {
            
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.Load(" C:\Users\dbrylle\documents\db.xml ");
            //listBox1.Items.Clear();

            for (int i = 0; i < Stud.Count; i++)
            {
                StudentInfo temp;
                temp = Stud.ElementAt<StudentInfo>(i);
                string data;
                data = temp.ID.ToString() + " -- ";
                data += temp.LastName + ", ";
                data += temp.FirstName + " -- ";
                data += temp.CInfo + " - ";
                data += temp.EMail;
                //listBox1.Items.Add(data);
            }
        }


that's my code for now. i'm going to use gridbox for this program but I can't seem to make notepad save the data that my program will accept.

Regards,
Dexter
QuestionRquire PKCS11 Wrapper in C# - Please Help Pin
sreekanth8121-Oct-09 17:35
sreekanth8121-Oct-09 17:35 
AnswerRe: Rquire PKCS11 Wrapper in C# - Please Help Pin
stancrm21-Oct-09 17:40
stancrm21-Oct-09 17:40 
Questionhow to manager the uri in C# Pin
silva10321-Oct-09 16:36
silva10321-Oct-09 16:36 
AnswerRe: how to manager the uri in C# Pin
stancrm21-Oct-09 17:34
stancrm21-Oct-09 17:34 
GeneralRe: how to manager the uri in C# Pin
silva10321-Oct-09 17:46
silva10321-Oct-09 17:46 
AnswerRe: how to manager the uri in C# Pin
silva10322-Oct-09 4:03
silva10322-Oct-09 4:03 
QuestionUsing keyboard's key instead of the buttom. Pin
niammirzaei21-Oct-09 16:22
niammirzaei21-Oct-09 16:22 
AnswerRe: Using keyboard's key instead of the buttom. Pin
Richard Andrew x6421-Oct-09 16:47
professionalRichard Andrew x6421-Oct-09 16:47 
GeneralRe: Using keyboard's key instead of the buttom. Pin
niammirzaei21-Oct-09 18:58
niammirzaei21-Oct-09 18:58 
QuestionPhone Calls Pin
Bismark Appah21-Oct-09 14:55
Bismark Appah21-Oct-09 14:55 
AnswerRe: Phone Calls Pin
Richard Andrew x6421-Oct-09 15:56
professionalRichard Andrew x6421-Oct-09 15:56 
GeneralRe: Phone Calls Pin
Bismark Appah21-Oct-09 22:05
Bismark Appah21-Oct-09 22:05 
QuestionCut and Paste Attachements from Outlook Pin
werner2721-Oct-09 10:26
werner2721-Oct-09 10:26 
QuestionHow To Make A Data Bound Control Pin
Kevin Marois21-Oct-09 10:15
professionalKevin Marois21-Oct-09 10:15 
AnswerRe: How To Make A Data Bound Control [modified] Pin
Eddy Vluggen21-Oct-09 11:26
professionalEddy Vluggen21-Oct-09 11:26 
GeneralRe: How To Make A Data Bound Control Pin
Kevin Marois21-Oct-09 13:52
professionalKevin Marois21-Oct-09 13:52 
Questionis it possible to scroll Microsoft Word, Excel? Pin
venkat S0721-Oct-09 7:24
venkat S0721-Oct-09 7:24 

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.