Monday, August 30, 2010

Monday, August 30th 2010

I'm going to redo and expand upon a tutorial from an O'Reilly book.

first things first, drag and drop the ToolStripContainer control onto the form.

Seriously, what is the point of the ToolStrpContainer?

Setting up the pubs database was quite hard, the tutorial wanted me to use visual studio, but I ended up just doing it with SQL server



Dim result As DialogResult = Dialog1.ShowDialog()
If result = Windows.Forms.DialogResult.OK Then
End
End If


A weird thing from the tutorial



Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Dim result As DialogResult = Dialog1.ShowDialog()
If result = Windows.Forms.DialogResult.OK Then
End
Else
e.Cancel = True
End If
End Sub


Why did this have to be set up separately? I am not really what is going on here but I am just going to do it and hope that it makes sense one day.

Apparently, VB.net has several templates, including an about-box template, and an explorer form. which has a built-in tree view. Cool beans.

No comments: