hugheselite
How to pass a caught error from one .cs file to output in a textbox in another .cs file? (same sln)
I have two classes that i'm working with. I'm trying to catch an error in one class and output that to a textbox that exists in another class. In my example I'm trying to make my Circle method throw a caught error to my ErrorOutputWindow in my windows form called BooseForm. I think this is a pretty simple implementation but I may be wrong?
All help appreciated, thank you!
4 replies
✅ Can't seem to draw on bitmap after saving it and loading it back to windows form
I can't quite seem to understand the issues here, when I load my saved bitmap back to my windows form I lose the ability to draw on it (shapes etc)
I have a few classes going on here so i'll share the link to my repo https://bitbucket.org/110794-main-workspace/ase-component-1/src/master/
Thank you! any help appreciated
4 replies
✅ Help with unit testing a save function on a simple windows form app
For some reason my unit test for my save function isn't writing any text to a text file (to ensure the text actually has been saved) i'm getting the error string.empty when trying to execute the Nunit Test
21 replies
✅ else statement executing regardless of whether I want it to or not, windows form app
I've created a simple windows form app to create shapes on a bitmap, I have a function that gives an error if the user inputs an invalid input. it's currently executing even if the input is valid..
I'm pretty sure it's a simple fix would just appreciate an extra pair of eyes on this one lol
54 replies
✅ Help with creating shapes on a windows form app
I have created a windows form app to display shapes on a bitmap, my circle function works fine but my rectangle will work regardless of the text I put in, for example..
will draw a circle with a radius of 40 as it should
will still draw a rectangle even though the string is incorrect
19 replies