TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jay Webster
NA
67
0
Passing variables between forms
Apr 10 2011 6:44 PM
Hi,
I have 2 forms, frmLibrary and frmEdit. I am trying to pass variables from frmLibrary to frmEdit. The variables dont seem to be getting to frmEdit, can someone help? I have the following code:
frmLibrary
var form = new frmEdit();
form.Title = ListGrid.SelectedItems[0].Text;
form.Xexcrc = ListGrid.SelectedItems[0].SubItems[1].Text;
form.MediaId = ListGrid.SelectedItems[0].SubItems[2].Text;
form.Wave = ListGrid.SelectedItems[0].SubItems[3].Text;
form.Burnt = ListGrid.SelectedItems[0].SubItems[4].Text;
form.Protection = ListGrid.SelectedItems[0].SubItems[5].Text;
form.Folder = ListGrid.SelectedItems[0].SubItems[6].Text;
form.Show();
frmEdit
private string title;
private string xexcrc;
private string mediaId;
private string wave;
private string burnt;
private string protection;
private string folder;
public string Title
{
set { title = value; }
get { return title; }
}
public string Xexcrc
{
set { xexcrc = value; }
get { return xexcrc; }
}
public string MediaId
{
set { mediaId = value; }
get { return mediaId; }
}
public string Wave
{
set { wave = value; }
get { return wave; }
}
public string Burnt
{
set { burnt = value; }
get { return burnt; }
}
public string Protection
{
set { protection = value; }
get { return protection; }
}
public string Folder
{
set { folder = value; }
get { return folder; }
}
public frmEdit()
{
InitializeComponent();
txtTitle.Text = title;
txtXEXCRC.Text = xexcrc;
txtMediaID.Text = mediaId;
txtWave.Text = wave;
txtBurnt.Text = burnt;
txtProtection.Text = protection;
txtFolder.Text = folder;
}
Reply
Answers (
2
)
How to reset the minsupp..?
problem is total up the value