View Single Post
  #5 (permalink)  
Old 06-25-2009, 11:55 AM
christophermclellan christophermclellan is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jun 2009
Age: 23
Posts: 3
Reputation: 0
christophermclellan is on a distinguished programming path ahead
Default

Thanks for the help

Now for the real problem, here is the code that i have wrote so far however, i have got a problem with the save part of it

Below the is the code

Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click, SaveToolStripButton.Click
Dim Save As New SaveFileDialog()

Save.Filter = "Plain Text Files(*.txt)|*.txt|All files(*.*)|*.*"
Save.Title = "Save"
Save.ShowDialog()
Try
My.Computer.FileSystem.WriteAllText(Save.FileName, DirectCast(Me.ActivateMdiChild, NewWindow).RichTextBox1.Text, False)
Catch ex As Exception

End Try
End Sub

Now the error message that i am getting is

Error 1 Argument not specified for parameter 'form' of 'Protected Sub ActivateMdiChild(form As System.Windows.Forms.Form)'. C:\Documents and Settings\ChristopherMclellan\My Documents\Visual Studio 2008\Projects\MDI Text Editor\MDI Text Editor\Form1.vb 49 75 MDI Text Editor

I was wondering if any body had any advice in tackling this

Thanks

Chris

P.s. i have attached the whole project if you require to look at the code in action
Attached Files
File Type: zip Text Editor.zip (104.0 KB, 1 views)
Reply With Quote