15,922,015 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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?