Problem:
I want to change the size of the panel and save it so the next time I open the program it will keep the size of the panel. Because of this I manage to use my.settings
with type of system.drawing.size
However I am having a problem on converting it, so I can initially output the default size of my my.settings
My.Settings.pnl_service_size = Tb_Pnl_Service_Size.Text
Error 1 Value of type 'System.Drawing.Size' cannot be converted to 'String'.
I am aware on how to use my.settings, I am just having a hard time on converting this so i can output it to my textbox.text.
Edit:
How I populate the textbox is in OnLoad event
Tb_Pnl_Service_Size.Text = My.Settings.pnl_service_size.ToString 'I populate the textbox
Pnl_Service.Size = New Size(My.Settings.pnl_service_size) 'The panel that I want to change the size
How I save the textbox is by pressing the OnClicked button
My.Settings.pnl_service_size = Tb_Pnl_Service_Size.Text.ToString
My.Settings.Save()