BhuvanRam Newbie Poster

hi friends. i need a code snippet that how do i recieve custom headers from inbox using pop3 protocol/?

BhuvanRam Newbie Poster

hi friends ? i am doing a simple mail progran.. but what i want is i want to recieve cusotm headers from the recieved mail? i used pop protocol for recieving emails..is it possible with pop? orelse should i use anyother protocol to get custom ehaders? help me out plz

BhuvanRam

hi i need email headers too? will u give me the syntax please?

BhuvanRam Newbie Poster

hi friends,

i am doing a project which is based on smtp mail server.. i need a class that ho we are accessing an message header or custom header for an incoming mails...

BhuvanRam

thanks friends

BhuvanRam

anyway ur work is really appreciable

BhuvanRam

good .. i had a small doubt that will it store the last three previous calculations?

BhuvanRam Newbie Poster

hai friends ? I am almost completing my C#.net.. but a small doubt is whether "string " data type is a reference type or value type? because in some books i find it as reference type and in some books i find it as value type which can store upto 4GB? which one is correct? one more is thing canwe run MS.NET in LINUX operating system? if yes which web server we had to use

BhuvanRam

hai .. well divide the form into two parts by splitter ... and one user interface as heading so that it will be usefull in evry from.. in the first half of your form arrange your chapters.. and in the second half arrange your quiz questins.. when u open first chapter make ur all the chapters invisible.. if u arrange ur controls in group its easy to implement.. hope it may helps without using multiple forms..atlast SETUP and deployment as u know..sorry if anything is wrong

BhuvanRam

thanks friends.. finally what i get is i can create an instance for sealed class but not the class where i use private constructor...

BhuvanRam Newbie Poster

Hai friends what is the difference between sealed class and private constructor any way both doesnt allow inheritance? If any difference please tell me?

BhuvanRam Newbie Poster

hi friends..I am very new C# so please dont mine if anything is wrong in my code. actually i am doing a very small project in c# i.e Employee Tracking System well i completed my project but when i use image i am getting exception called Argument exception.. Actually my image is inserting into database successfully.. but when i am retrieving from database only the first image is displaying , when i click the next button.. when i click again its raising an exception called argument exception.. please help me from this.. Thanks in advance[code]//Image Variables

    String strFn;
    long filelen;
    byte[] image;

//Browse Button

browse_click
{
openFileDialog1.ShowDialog(this);
strFn = openFileDialog1.FileName;
pictureBox1.Image = Image.FromFile(strFn);
FileInfo filImage = new FileInfo(strFn);
filelen = filImage.Length;
image = new byte[System.Convert.ToInt32(filelen)];
}

//Insert into Database

insert_click
{
DataRow r;
r = ds.Tables["Employee"].NewRow();
r[0] = textBox1.Text;
r[1] = textBox2.Text;
r[2] = textBox3.Text;
r[3] = comboBox1.SelectedItem;
r[4] = image;
ds.Tables["Employee"].Rows.Add(r);
da.Update(ds, "Employee");
MessageBox.Show("Inserted");
}

//when i click next button

int rno=0;

next_click
{
test();
label7.Text = rno.ToString();
rno = rno + 1;
}

public void test()
{

        textBox1.Text = ds.Tables["Employee"].Rows[rno][0].ToString();
        textBox2.Text = ds.Tables["Employee"].Rows[rno][1].ToString();
        textBox3.Text = ds.Tables["Employee"].Rows[rno][2].ToString();
        comboBox1.Text = ds.Tables["Employee"].Rows[rno][3].ToString();

        ////Image 
        byte[] barrimg = (byte[])ds.Tables["Employee"].Rows[rno][4];
        MemoryStream ms = new MemoryStream(barrimg);
        ms.Flush();

        pictureBox1.Image = Image.FromStream(ms);

}[/code]