C
C#2mo ago
Vortex

Visual Studio button not appearing (Obv C#)

I am using Vis Studio for the first time and I am trying to add a button but of course the button doesnt appear in run, I have no errors and I have already tried removing and re-adding the button and moving it around.
3 Replies
Jimmacle
Jimmacle2mo ago
we need more details what GUI framework are you using? are you getting any errors or popups? what does a button not appearing mean exactly? my first assumption would be that you have build errors and VS is running the output of a previous build
TizzyT
TizzyT2mo ago
if you are using winforms, and manualy (in code) adding the button. Make sure the parent control adds the button to its Controls list. if the parent control is a form you can do:
Controls.Add(button); // where button is your button
Controls.Add(button); // where button is your button
Vortex
VortexOP2mo ago
I fixed it, I just moved it around and changed its size (such a simple solution) In using WPF and there were no errors But like when I ran the window the button just was not there, no sign of it until I changed the border color
Want results from more Discord servers?
Add your server