I am new to learning C#, currently learning to use Windows Form / Classes using Class Diagram.
What I am trying to do is access the Windows Form components from one of the class I've created, such as the InitializeComponent()
I've tried
public partial class Class1: Form1
{
public Class1()
{InitializeComponent();}
which doesnt work unless I go and change the designer setting to make it public. This is all good and well and works for other windows form components I've created, but when I run the programme at the end I just get a blank form with nothing in it.
Using Class Diagram
, I think it should be shown as attached photo with all the methods shown under the "method" section of a Class Diagram
Any ideas?
Cheers