Hello Guys
==========
I have Main Form and Student form
==========
Main form has Button to open the student form with ShowDialog
==========
when i open the student form it contains a minimize button
i want to create another button in runtime but on the main form which will contain a code to maximize the studen from again ...
i wrote that code behide the minimize button in the student form
Dim BtnMM As New Button
BtnMM.Height = 30
BtnMM.Width = 80
BtnMM.Name = ';btn_'; %26amp; Me.Title
BtnMM.Content = Me.Title
Dim frm As New frmMain
frm.MainWrapp.Children.Add(BtnMM)
frm.Show()
the problem is now i have to main form the old 1 and the new one which contains the new runtime button
how to solve this problem :(
VS 2008 - WPF application - VB.netHow To Add Control In Runtime Using VB.net in WPF Application?
You don't have to recreate the button on the main form, you already have one and it's event is to show the student form.
You wrote:
Main form has Button to open the student form with ShowDialog
Why do you need a second button that does the same as the first?How To Add Control In Runtime Using VB.net in WPF Application?
use c#.net. you can do more runtime tools with additional features
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment