Click here to Skip to main content
15,896,537 members

Comments by AngelBlueSky (Top 4 by date)

AngelBlueSky 14-Oct-14 12:48pm View    
What I meant is: Can I send a Json serialized Object (containing useful data) while I'm uploading a file?
I can post parameters as in the example while uploading but how about posting an object along with the uploading?
AngelBlueSky 10-Dec-13 15:01pm View    
I agree with you completly, mine was just an example, I asked about mdi and child loaded runtime just to learn how to get events from them into a parent form using an interface. Anyway I created an interface, inherit it from the child and using the event now I can get events fired by the child. Thank again dude.
Anyway how would you implement an application having a lot of form?
AngelBlueSky 10-Dec-13 9:33am View    
Hi I'll explain with an example project:

I use dockpanel suite to load some new tab, they're dinamically
loaded from external forms (dll or exe) like this:

private void cccToolStripMenuItem_Click(object sender, EventArgs e)
{
Assembly newDll = Assembly.LoadFile(Application.StartupPath + @"\002.exe");
Type type = newDll.GetType("_002.Form1");
object obj = Activator.CreateInstance(type);
Form frm1 = obj as Form;
frm1.TopLevel = false;

DockContent dockContent = new DockContent();
frm1.TopLevel = false;
frm1.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
frm1.Dock = DockStyle.Left;
frm1.Visible = true;
dockContent.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockLeftAutoHide;
dockContent.Text = frm1.Text;
dockContent.Controls.Add(frm1);
dockContent.Show(dockPanel1, WeifenLuo.WinFormsUI.Docking.DockState.DockLeft);
}

I'm doig like this because I've got a lot of them.

The question is: How can I get some event from the dinamically loaded form
into the main (parent) form?

Thanks again
AngelBlueSky 9-Dec-13 14:04pm View    
You could be right but I can't include all forms as reference as I do with the DockPanel Suite. I need to write an application with a lot of forms. What do you suggest?