4
Answers

MDI save button use for child windows

garuka

garuka

15y
11.1k
1
I have my MDI form which got menuStrip. What I want is when I click the save button on that menuStrip the currently active form should save its data by calling a database method.
I have no idea on how to this except writng lot of if conditions to get the name of the acitve form and then call the save method based on that. But this doesn't sound feasible when it comes to application which has lot of forms. So please let me know if there is any other way of doing this.
Answers (4)
0
Master  Billa
NA 2.7k 0 15y
Hi

Actually you can't connect directly , you need do that like way.that;s means you need register the .NET DLL in the mat lab, then only you access class and methods from the.NET framework min mat lab.

Just follow this steps

http://www.codeproject.com/KB/bugs/CS_to_Matlab.aspx?msg=3139813

Then you can write simple code read co ordination and make bitmap image and display graph in win form

thank you
Accepted
0
hai phan
NA 4 0 15y

Hi
Thank you for your ideas. However, I cannot do what you guide.
Please show me  a simple example step by step. For example, I have a function y=ax2+bx+c. a,b,c are the numbers  inputed in three textboxes in windows form of C#. Then after clicking  a button, I'll have the graphic of above function.
If possible, forward to me following address:pvhai56@yahoo.com.vn
Thank you
hai phan