Code: Select all
int fontSize = 8;
mMinorFont = new wx.Font(fontSize, FontFamily.wxNORMAL, FontStyle.wxNORMAL, FontWeight.wxNORMAL);
Code: Select all
A first chance exception of type 'System.NullReferenceException' occurred in wx.NET.dll
A first chance exception of type 'System.TypeInitializationException' occurred in wxTest.exe
An unhandled exception of type 'System.TypeInitializationException' occurred in wxTest.exe
What's I am doing wrong? How create font class right?[/code]