Click here to Skip to main content
15,898,893 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compiling x86 - x64 Pin
V.15-Nov-11 0:37
professionalV.15-Nov-11 0:37 
QuestionPage Navigation Pin
pravin_mun14-Nov-11 18:43
pravin_mun14-Nov-11 18:43 
AnswerRe: Page Navigation Pin
Hum Dum14-Nov-11 19:28
Hum Dum14-Nov-11 19:28 
GeneralRe: Page Navigation Pin
pravin_mun14-Nov-11 19:50
pravin_mun14-Nov-11 19:50 
AnswerRe: Page Navigation Pin
Łukasz Nowakowski15-Nov-11 3:06
Łukasz Nowakowski15-Nov-11 3:06 
QuestionPassing Generic List<> to other forms Pin
Kendall Bodkin14-Nov-11 13:36
Kendall Bodkin14-Nov-11 13:36 
AnswerRe: Passing Generic List to other forms Pin
Luc Pattyn14-Nov-11 16:07
sitebuilderLuc Pattyn14-Nov-11 16:07 
GeneralRe: Passing Generic List to other forms Pin
Kendall Bodkin14-Nov-11 16:54
Kendall Bodkin14-Nov-11 16:54 
Sorry for the format and casing. I hope the code snippet below will help define my problem.
Main form:

namespace Vetnet
{
    public partial class emailform : Form
    {
        public string pgsource;
        public string cpass
        { set { pgsource = value; } }
        public string id;
        public string passid
        {
            set {id=value;}
            get {return id;}
        }
        public List<iattachmentlist> iattachmentagents = new List<iattachmentlist>();
        public emailform()
        {
            InitializeComponent();
        }
        public class iattachmentlist
        {
            private  string _title;
            private  stream _attachment;
            public string TITLE { get { return _title; } set { _title = value; } }
            public stream ATTACHMENT { get { return _attachment; }  set { _attachment = value; } }
            public iattachmentlist(string xtitle, object xattachment)
            {
                _title = xtitle;
                _attachment = xattachment;
            }

        } 

//later on I try to open a second form with the needed information

private void attachmentsbutton_Click(object sender, EventArgs e)
        {
            
           emailattachment attachform = new emailattachment();
            attachform.pgsource = pgsource;
            attachform.id = id;
            attachform.iattachmentagents = iattachmentagents;
            attachform.ShowDialog();
            attachform.Close();
        }

//The pgsource and id pass to second form just fine
//the iattachmentagents does not.

//second form

 public class emailattachment : Form
    {
        public string pgsource;
        public string cpass
        { set { pgsource = value; } }
        public string id;
        public string passid
        {
            set { id = value; }
            get { return id; }
        }
        public string displaymode;

//It screws up here I think.
        public List<iattachmentlist> iattachmentagents = new List<iattachmentlist>();
        
      
        public List<iattachmentlist> pass
        {
            public set { iattachmentagents = value; }
            public get { return iattachmentagents; }
        }
        
        public emailattachment()
        {
            InitializeComponent();
            
            
        }


Please don't get hung up on my poor formating and casing.
Kendall

AnswerRe: Passing Generic List to other forms Pin
Luc Pattyn14-Nov-11 17:51
sitebuilderLuc Pattyn14-Nov-11 17:51 
GeneralRe: Passing Generic List to other forms Pin
_Maxxx_14-Nov-11 18:15
professional_Maxxx_14-Nov-11 18:15 
GeneralRe: Passing Generic List to other forms Pin
BillWoodruff14-Nov-11 21:34
professionalBillWoodruff14-Nov-11 21:34 
GeneralRe: Passing Generic List to other forms Pin
Kendall Bodkin15-Nov-11 5:33
Kendall Bodkin15-Nov-11 5:33 
GeneralRe: Passing Generic List to other forms Pin
Pete O'Hanlon15-Nov-11 10:17
mvePete O'Hanlon15-Nov-11 10:17 
GeneralRe: Passing Generic List to other forms Pin
Kendall Bodkin15-Nov-11 10:24
Kendall Bodkin15-Nov-11 10:24 
QuestionNext Linq Question Pin
Kevin Marois14-Nov-11 12:44
professionalKevin Marois14-Nov-11 12:44 
AnswerRe: Next Linq Question Pin
BobJanova15-Nov-11 1:00
BobJanova15-Nov-11 1:00 
AnswerRe: Next Linq Question Pin
NeillJam17-Nov-11 22:50
NeillJam17-Nov-11 22:50 
QuestionLinq To Objects - How To Create Nested Objects Pin
Kevin Marois14-Nov-11 12:18
professionalKevin Marois14-Nov-11 12:18 
AnswerRe: Linq To Objects - How To Create Nested Objects Pin
BillWoodruff14-Nov-11 21:52
professionalBillWoodruff14-Nov-11 21:52 
QuestionConvert XslTransform to XslCompiledTransform Pin
Melanie Peterson14-Nov-11 6:22
Melanie Peterson14-Nov-11 6:22 
QuestionUDP send /recieve problem... well mainly recieve Pin
Alberto Bar-Noy14-Nov-11 3:58
Alberto Bar-Noy14-Nov-11 3:58 
AnswerRe: UDP send /recieve problem... well mainly recieve Pin
Luc Pattyn14-Nov-11 4:45
sitebuilderLuc Pattyn14-Nov-11 4:45 
GeneralRe: UDP send /recieve problem... well mainly recieve Pin
Alberto Bar-Noy14-Nov-11 4:49
Alberto Bar-Noy14-Nov-11 4:49 
AnswerRe: UDP send /recieve problem... well mainly recieve Pin
Luc Pattyn14-Nov-11 5:14
sitebuilderLuc Pattyn14-Nov-11 5:14 
GeneralRe: UDP send /recieve problem... well mainly recieve Pin
Alberto Bar-Noy14-Nov-11 5:25
Alberto Bar-Noy14-Nov-11 5:25 

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.