VB6 Text Editor Title

E-machines / T3120
January 15, 2009 at 19:14:35
Specs: Windows XP Pro SP2, AMD Semptron - 1.5gb RAM
I'm making a text editor and I really need to know how insert
the name of the document into the title bar. E.X:
My Stuff.txt - My Text Editor
I'm using Visual Basic 6.
--
Impulse

If you give up, might as well give up everything in life.


See More: VB6 Text Editor Title

Report •


#1
January 16, 2009 at 07:06:55
assuming you are using an OPEN dialog box to open a text file..

Imagin you selected a file called "test.txt"

you can say something like

me.caption = openDialog.filename & " - My text Editor"

you now your forms title bar will display

"test.txt - My Text Editor"

Hope this helps.

Thanks,


Report •

#2
January 16, 2009 at 14:10:47
AlwaysWillingToLearn,
Thank you so much, you saved me like 2 hours
of searching on google. lol.
--
Impulse

If you give up, might as well give up everything in life.


Report •

Related Solutions


Ask Question