I'm getting there. What gets to me is really simple stuff. Like working with Winsock. In VB6 you send a string to winsock, and it transmitted it across to the other host. Errr. Didn't work in .Net, and I spent literally hours trying to figure out how the new sockets class works. Or when I had a rich text box that should be able to toggle bold, italics and change fonts. In VB6 it was easy (well, relatively) with rtfBox.selbold etc. Errr. Didn't work in .Net. I spent literally hours trying to figure out how the FontStyle system worked.
You'll just have to forgive my frustrated whine, but it's four o'clock in the morning here, and I just can't tear myself from the computer until I've solved this.... I feel I have the right to whine.
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
temp_init()
'open the users file
Try
'Open the users file
Catch exc As Exception
'if the users file doesn't exist, then create one
'and let the user enter his details by automatically
'open frmProfiles
dim dlg as new frmProfiles
lblDesc.Text = "It appears this is the first time you are using this program. Please fill in your details in the preferences."
dlg.Show()
End Try
End Sub
Basically, what this is the main form's constructor. When it opens it should load a specific preferences file that's dynamically stored. If the file doesn't exist, it should open the set preferences dialog.
In VB6 this was easy, but now I'm knee-deep in class descriptions.
It's probably very, very simple. I KNOW it is. But I'm not finding any info on it, at least not anything I can understand. So, I'm whining. So sue me. Or I might just be stupid.
-----
They SAID that given enough time a million monkeys with typewriters could recreate the collected works of William Shakespeare... Internet sure proved them wrong.
-----