|
-
Mar 9th, 2010, 01:07 AM
#1
Thread Starter
Hyperactive Member
is it notepad?
I have problem
My Step:
Start> Programs > VB
Select VB app.Wiz.
next
select MDI
rpt.7 next
done
When Start Run )Ctrl+F5_
I can see that Windows "Document 1"
what is that, is simple notepad ?
Please!
-
Mar 9th, 2010, 01:54 AM
#2
Frenzied Member
Re: is it notepad?
Yes, but it still needs a whole lot of code to work properly...
Good Luck
Option Explicit should not be an Option!
-
Mar 9th, 2010, 01:56 AM
#3
Re: is it notepad?
i guess it is a richtextbox on a child form, it could be used to make your own notepad or other editor type program
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Mar 9th, 2010, 02:09 AM
#4
Thread Starter
Hyperactive Member
Re: is it notepad?
Code:
My Step:
Start> Programs > VB
Select VB app.Wiz.
next
select MDI
rpt.7 next
done
In "frmDocument.frm"
that "rtfText" deleted
insert "Text1" object
Text1.MultiLine "True"
Text1.ScrollBars "Both"
Problem Is where can found some information To: selText
Ctrl+A
Ctrl+C
Ctrl+V
any example
Please!
-
Mar 9th, 2010, 10:03 AM
#5
Re: is it notepad?
Search this forum... You will find lots of examples....
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Mar 10th, 2010, 11:08 PM
#6
Thread Starter
Hyperactive Member
Re: is it notepad?
:ALL EDIT:
yes, I found solution Ctrl +A,C,V.
Now, I have problem, how to say: goodbye (child_form.caption) ?
my step:
File>New
show windows; "mydoc1"
File>New
show windows; "mydoc2"
File>New
show windows; "mydoc3"
Code:
'frmMain.frm
Private Sub MDIForm_Unload(Cancel As Integer)
'//how to goodbye Each.caption ?
Dim objForm As frmDocument
For Each objForm In Forms
msgbox "goodbye" & objForm.Caption
'msgbox "goodbye mydoc1"
'msgbox "goodbye mydoc2"
'msgbox "goodbye mydoc3"
Next objForm
End Sub
Private Sub LoadNewDoc()
Static lDocumentCount As Long
Dim frmD As frmDocument
lDocumentCount = lDocumentCount + 1
Set frmD = New frmDocument
frmD.Caption = "mydoc" & lDocumentCount
frmD.Show
End Sub
Last edited by rpool; Mar 10th, 2010 at 11:23 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|