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
mohammad amrat
NA
44
1.9k
pass datagridview between two forms
Mar 5 2017 4:45 AM
I want to pass datagridview from this form "itemsManagement" to "editItems" form
public partial class itemsManagement : Form
{
public itemsManagement()
{
InitializeComponent();
this.ActiveForms = new Dictionary
();
}
private Dictionary
ActiveForms;
private void showform
() where TSource : Form
{
Form form = null;
if (this.ActiveForms.ContainsKey(typeof(TSource)))
{
form = this.ActiveForms[typeof(TSource)];
form.WindowState = FormWindowState.Normal;
form.ShowDialog();
}
else
{
form = Activator.CreateInstance
();
form.FormClosed += form_FormClosed;
form.ShowDialog();
this.ActiveForms.Add(typeof(TSource), form);
}
}
private void form_FormClosed(object sender, FormClosedEventArgs e)
{
this.ActiveForms.Remove(sender.GetType());
}
private void editItemToolStripMenuItem_Click(object sender, EventArgs e)
{
this.showform
();
}
please help me
Reply
Answers (
16
)
show the textbox value in the webBrowser component.
How to generate barcode 128 using c# window program?