Please help on how to open new window in WPF using C#?
and also with that when it opens there should be effects in it!
1 reply to this topic
#1
Posted 10 October 2011 - 09:38 AM
|
|
|
#2
Posted 11 October 2011 - 11:57 AM
Opening a new window in C# is as simple as declaring a new instance of the form object with the 'new' operator, and then calling that new object's 'show()' method.
As far as your 2nd point, I have no idea what you mean by 'effects'. This could be anything at all. Whatever effect you want when your new form opens, you will have to write some code to perform it, and this code can be placed in the new form's constructor if you wish, to be executed when it is instantiated. Or, if you prefer, you can create your own method and write your specific code there, and call that method explicitly whenever you want to invoke that effect.
As far as your 2nd point, I have no idea what you mean by 'effects'. This could be anything at all. Whatever effect you want when your new form opens, you will have to write some code to perform it, and this code can be placed in the new form's constructor if you wish, to be executed when it is instantiated. Or, if you prefer, you can create your own method and write your specific code there, and call that method explicitly whenever you want to invoke that effect.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









