usersettings to load forms

  • Thread starter Thread starter Excel Worker Bee
  • Start date Start date
E

Excel Worker Bee

Guest
Ok, I am totally confused about usersettings. Ive read most of the MSDN articles about this topic and Im more lost than when I started.

Pretty new to writing an app but pretty good with straight forward VB. Heres what I want to do.

On load get the last viewed form and load it (I am using MDI) and grab two lines from a text file and load them in a persistent text box. This text box appears on every form but on certain forms its updated (its a score card) and on exit this gets written to a file for access by other programs.

So after reading through stuff I think that putting these two items in the usersettings would be the best solution. I read through this article - "Opening the last form open when the application closed" but I get an error for the my.forms.form1 is not a member of my project. Tried a couple of other things but I got the error that it couldnt convert the string to a form name to load it.

So my questions are:

I noticed in the Project settings/type I can select System.windows.forms.form. Cant I use this as a customer usersetting to load a form?

Ive read about converting a string to a form here - http://www.daniweb.com/software-development/vbnet/threads/381442/convert-string-to-form-name-in-vb.net but it doesnt work. I get this


A first chance exception of type System.InvalidCastException occurred in Microsoft.VisualBasic.dll

Any suggestions or a really good reference thats a little more informative for a beginner?



Excel Worker Bee

Continue reading...
 

Similar threads

V
Replies
0
Views
269
Vergassivellaunus
V
K
Replies
0
Views
201
Kashif Sattar
K
Back
Top