Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > VB.NET > Windows Forms

Windows Forms Discussion related to Winforms application development

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2009, 11:32 AM
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 MDI Text Editor Help

Hi Guys/Girls

I'm new to VB.NET, and have set myself a little challege to learn VB.NET, I was wondering if you you guys new any really good tutorials on how to create a effective MDI Text Editor?, Ive been able to create a simple text editor, however the next step is to use the MDI to be able to have mulitple windows within one form

Thanks for any help you guys give

Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-25-2009, 11:36 AM
jmcilhinney's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2004
Location: Sydney, Australia
Age: 40
Posts: 6,006
Reputation: 538
jmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalist
Default

There's really very little to it beyond what you've already done. The main thing would be for the main window to refer to its ActiveMdiChild, which is the child form with focus, when executing menu and tool bar actions.

By the way, please post in the most appropriate forum for the topic. Thread moved.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-25-2009, 11:41 AM
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

Sorry I wasn't sure which thread to post in, which thread has this been moved to btw just for furture reference

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-25-2009, 11:54 AM
jmcilhinney's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2004
Location: Sydney, Australia
Age: 40
Posts: 6,006
Reputation: 538
jmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalist
Default

It's the thread that has been moved, and moved to a different forum. To see what forum you're in just look at the top of the page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-25-2009, 12:55 PM
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-25-2009, 10:24 PM
jmcilhinney's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2004
Location: Sydney, Australia
Age: 40
Posts: 6,006
Reputation: 538
jmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalist
Default

Just go back and read post #2 again... CAREFULLY.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 12:16 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.