Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 0.46 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How do I get the associated form object of data from SQL data
  2. Table "toolstripitem"
  3. ---------------------
  4.  ID
  5.  form_object  (varchar)
  6.  image_url
  7.  item_order
  8.        
  9. // here goes fully qualified name,
  10. // format: TopNamespace.SubNameSpace.ContainingClass+NestedClass,MyAssembly
  11. string typeName = "WindowsFormsApplication4.frmStore,WindowsFormsApplication4";
  12. Type frm = Type.GetType(typeName);
  13. Form f = Activator.CreateInstance(frm) as Form;
  14. if (f != null)
  15.     f.Show();