avmvldr
New member
- Joined
- Aug 3, 2023
- Messages
- 2
- Programming Experience
- 10+
I am pretty new to C# even though I've been developing software for quite some time. I also took about 4.5 years off from IT. Anyway, I'm trying to find a good FREE resource for learning this language. Right now, I'm trying to build a simple little WPF form with input and storing the data to a SQL Server DB.
My problem is, when I click a button, I just want to popup another form. I'm trying to use the following statement:
Form f = new Form();
Below is the code that I have right now.
Thanks!
My problem is, when I click a button, I just want to popup another form. I'm trying to use the following statement:
Form f = new Form();
Below is the code that I have right now.
C#:
using System.Windows;
namespace WpfApp1
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void AddRecord_Click(object sender, RoutedEventArgs e)
{
///How do I popup a form here
}
}
}
Thanks!