save
-
Save changes how/where ? Do you mean just keep the details of the font for next time ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Save changes how/where ? Do you mean just keep the details of the font for next time ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
In your application properties, go to settings. Here you can add properties that can be change and saved at runtime. Click the first item that says newsetting etc. and type "SaveFont" when prompted. Then in the type you can select system.drawing.font or something along those lines. Then in your code:
If fontdialog.showdialog = OK then my.settings.savefont = 'font you selected end if
On form load you can then reload the setting:dim myfont as system.drawing.font mycontrol.font = new font(myfont.fontfamily,myfont.size,myfont.style)
**Note:**This will not save the font colour only style, size and font family. If you want to save font colour you will have to add another setting. Also note my code might not be 100% accurate but its pretty close.Posted by The ANZAC