Guest User

Untitled

a guest
Jul 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public class aDemoClass
  2. {
  3. // Class Level Variables
  4. private System.Windows.Forms.DataGridView desiredDataGridView;
  5.  
  6. public aDemoClass(System.Windows.Forms.Form form)
  7. {
  8. DataGridView addANewDatagridview = new DataGridView();
  9. form.Controls.Add(addANewDatagridview);
  10. desiredDataGridView = addANewDatagridview;
  11. }
  12.  
  13. }
  14.  
  15. public partial class MainForm : Form
  16. {
  17. aDemoClass newObj;
  18. aDemoClass newObj2;
  19.  
  20. public MainForm()
  21. {
  22. InitializeComponent();
  23. newObj = new aDemoClass(this);
  24. newObj2 = new aDemoClass(this);
  25. }
  26. }
Add Comment
Please, Sign In to add comment