veeringnugget
New member
- Joined
- Sep 19, 2025
- Messages
- 1
- Programming Experience
- Beginner
Hi all,
I'm very new to learning C# and I've delved into the book Head First C# 5th Edition. I've only coded using VS Code before so this is my first look at using Visual Studio.
In the first project, I set it up as per the book, using a .NET MAUI project. I've added the button and it tells you to add an Event Listener and this should automatically add the code to MainPage.xaml.cs, however, it didn't.
After a few tries, I tried clicking the intelliSense of <New Event Handler> and I get a pop-up saying "Failed to create event handler".
Here's a screenshot of what i'm seeing on my side:
I ended up having a slight nightmare the first time I tried it and for whatever reason the Toolbox wasn't showing anything. I found online to reset that and once I finally was able to drag it into my MainPage.xaml, the properties was picking up nothing other than my vertical stack so I did just reinstall the software and re-create the project. I also have followed along to the YouTube video they create alongside the book to see if I'd clicked something accidentally:
I also appreciate I could do it manually, but i'm just very curious on what it could be?
Sorry, this is super new to me, would appreciate any help.
Cheers.
I'm very new to learning C# and I've delved into the book Head First C# 5th Edition. I've only coded using VS Code before so this is my first look at using Visual Studio.
In the first project, I set it up as per the book, using a .NET MAUI project. I've added the button and it tells you to add an Event Listener and this should automatically add the code to MainPage.xaml.cs, however, it didn't.
After a few tries, I tried clicking the intelliSense of <New Event Handler> and I get a pop-up saying "Failed to create event handler".
Here's a screenshot of what i'm seeing on my side:
I ended up having a slight nightmare the first time I tried it and for whatever reason the Toolbox wasn't showing anything. I found online to reset that and once I finally was able to drag it into my MainPage.xaml, the properties was picking up nothing other than my vertical stack so I did just reinstall the software and re-create the project. I also have followed along to the YouTube video they create alongside the book to see if I'd clicked something accidentally:
I also appreciate I could do it manually, but i'm just very curious on what it could be?
Sorry, this is super new to me, would appreciate any help.
Cheers.