Every time i save the file then go to reopen the file, the file that gets opened is blank. nothing i typed is in the file i just saved. any clues as to why it isn't working? i did everything EXACTLY as he has it up there but it isn't working. I am using Visual Basic 2010 Express.
FFS! did this , whenever i click the richtextbox on the .exe or in debug mode it goes to the screen behind the notepad (textbox is also transparent) wtf?
Hey man. Nice tutorial. One wuestion. I have made a custom notepad type program, but my question is, how do I make it so when the user opens a .txt file, it automaticly loads it into the notepad?
I NEED HELP SO MUCH! :( I have a text box instead of a rich text box. What is the code for the SAVE AS and OPEN for a TEXT BOX. Any help would be apprieciated. :)
You're VB 2008 tutorials are amazing, may i just ask how you found all this stuff out? Do you do classes, did you just learn from the internet (like I'm trying to do)?
font code is wrong in description this should work: Try Dim dlg As FontDialog = New FontDialog dlg.Font = RichTextBox1.Font If dlg.ShowDialog = System.Windows.Forms.DialogResult.OK Then RichTextBox1.Font = dlg.Font End If
For a print option : Make a button called 'Print' or an item on a menustrip called Print.
Then double click, and enter this code; Dim AB As New PrintDialog Try AB.ShowDialog() RichTextBox1.Text = AB.PrintToFile Catch ex As Exception End Try
===================================
To Debug, hit the green triangle or hit F5 and to compile to and application (.exe) Hit the 'Project' tab on the top, then publish. Thumbs up if I helped
Open enter this code the one in description don't works !!! This works,...
Open Dim Open As New OpenFileDialog Open.Filter = "Text Files (*.txt)|*.txt|ALL FILES (*.*)|*.*" Open.Title = "Save File" Open.CheckPathExists = True Open.ShowDialog(Me) On Error Resume Next Dim RT As New System.IO.StreamReader(Open.FileName) On Error Resume Next RichTextBox1.Text = RT.ReadToEnd
Code: Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click End End Sub
hey, quick question, i made a keylogger with your other video, can i add a menu strip with a file option and save option under file on the menu strip so i can save logged txt?
and he is not a jerk!! just cos yur jealous cos you carn do it thats why u looked at this video coss you a dumb cunt andyucr do it enerd you are wiked dont listen to any nasty comments !!!
@TastyTeo Lol, I I spell color colour because for some reason I often times write using the British version of English. Pisses my teachers off, but it is correct.
This video was fantastic as it was JUST what i was looking for, as a lot of other videos don't show you a save option, and as im new to VB this was a great help thanks alot ^^
I'm working on a project in VB 2010, and i'm trying to make a save and save as feature, so if the user wants to save their progress they can just click save without another window.
when U say advanced it means more features then the windows one has and more advanced features like:
-encryption
-html editing (with highlighting text)
-why not to be automatically be used by ur system when opening text files with double click
-apply text effects
-converters : binary,hex,ascii
That would be advanced.....yours is just basic (the oposite of advanced) and on top of that it's even weaker then the default windows notepad with less functions
If You Want it to save it as a .Txt file then do this
1) in the code were it says: dlg.Filter = "Rich Text Files (*.rtf)|*.rtf" then replace the *.rtf with *.txt and the "rich Text Files" with "text File"
no find, replace???
ek451 4 days ago
Print????????
keeblerelmcookies 5 days ago
close???
jibz988 6 days ago
Thanks :D
DJCartykins 1 week ago
This has been flagged as spam show
you can change the filter to make your own file extention
Prestoninpreslie 2 weeks ago
I make it better...
jacky8399 2 weeks ago
Font and Color dialog's are backwards ;)
gavinstubbs09 3 weeks ago
@crazycoocooboy200 I belive hes aussie
MrDJ360 1 month ago
British kid or just can't speak.
No offense british people.
crazycoocooboy200 1 month ago
How can i add more filters?
bobthbuilder3 2 months ago
Color FontDialog and Font ColorDialog?
enzozzz2002 2 months ago
if it is so advanced,why dont u have find,find next,replace and go to option? i would really liked to see that. i need help for those...
AnchySrbija 2 months ago
This has been flagged as spam show
thanks!
check out my vids
xxMON2T3RxxS3GA 3 months ago
thanks!
xxMON2T3RxxS3GA 3 months ago
This has been flagged as spam show
Hi! Could you guys please check out my channel? I will do a giveaway when I reach 100 subscribers! Thanks!
hackster2011 3 months ago
WORKS! But how to make that i can save the file to .bat or .txt or anything else!
Cuz it saves in a microsoft word file!?
Shinrubik 3 months ago
@Shinrubik
change the file extension in the save file code :
dlg.Filter = "Rich Text Files (*.rtf)|*.rtf"
to
dlg.Filter = "Batch files (*.bat)|*.bat"
or
dlg.Filter = "Some extension (*.ext)|*.ext"
slytherin9090 1 month ago
Every time i save the file then go to reopen the file, the file that gets opened is blank. nothing i typed is in the file i just saved. any clues as to why it isn't working? i did everything EXACTLY as he has it up there but it isn't working. I am using Visual Basic 2010 Express.
TogeNoBara 3 months ago
dosent let me debug it
xXWilliamGrantXx 4 months ago
FFS! did this , whenever i click the richtextbox on the .exe or in debug mode it goes to the screen behind the notepad (textbox is also transparent) wtf?
NLmitchieNL 5 months ago
And the different between this and a normal notepad is?
TheRevolution1337 5 months ago
How make it save and open with a textbox?
teunissenstefan 5 months ago
Nice
Bikeoneable 6 months ago
I made it then saved as .exe and now I have to redo it >.>
OfficialMCG 7 months ago
it doesn't work
because it doesn't create the saved file
super1992ism 7 months ago
@super1992ism Really?I can save, Try Click Save,and name 123,Save at desktop,and open?
jacky8399 2 weeks ago
What about: save as?
TheFreemi 7 months ago
Hey man. Nice tutorial. One wuestion. I have made a custom notepad type program, but my question is, how do I make it so when the user opens a .txt file, it automaticly loads it into the notepad?
HelpMyFellowPeople 7 months ago
dude i love you you help me out so much sub back i subed :D
QuikMon3Yxx 7 months ago
Thanks Dear!! I Love You>>
mashwaniweddings 8 months ago
When I was doing my advanced notepad I accidentaly deleted it how can I get it back into my Toolbox?
LOLHappyProductions 8 months ago
For people who don't know the code for exit is End
HabboMoviesRecords 8 months ago
220th liker!
SuperPikachuDude 10 months ago
how about just do it for us and post a download lol just a suggestion
skoolzout1 10 months ago
You need to change Font and Colour codes in description.
MrFamusbal 10 months ago
@MrFamusbal no you dont it says you dont have a color code/font diolog....
scroll to the bollom of toolbox and drag color & font diologo into the text box (;
TheBigFunnyMan 9 months ago
mixed up font code with coluor code lol
reecebaby1969 10 months ago
Will this allow multiple different fonts in the same file?
chickrepellant24124 10 months ago
code for exit is Me.close its a true code try it on a button in vb
VBmasterFX 10 months ago
sweet!
zhir96 10 months ago
I NEED HELP SO MUCH! :( I have a text box instead of a rich text box. What is the code for the SAVE AS and OPEN for a TEXT BOX. Any help would be apprieciated. :)
Chamantha10 10 months ago
This has been flagged as spam show
Exit;
Application.Exit()
SRNiichan 10 months ago
Exit; Application.Exit()
SRNiichan 10 months ago
You said Visual Basic 2000 LOL
EpicWafflezXD 11 months ago 2
Comment removed
GameMaster337 2 months ago
what about the exit button?
BigBottleLightInc 11 months ago
@BigBottleLightInc plz reply
BigBottleLightInc 10 months ago
What about print?
tomixtomi12 11 months ago
You're VB 2008 tutorials are amazing, may i just ask how you found all this stuff out? Do you do classes, did you just learn from the internet (like I'm trying to do)?
0wnUr3Fac3 11 months ago
Thanks dude your awesome! :D
FormEcss 11 months ago
u rock mate
TheLinwoodboy 11 months ago
nice work
khanbaba241 11 months ago
THANKS!
Office2007Developer 11 months ago
Color and Font codes in the Description do the other actions!
MatthewCenance 1 year ago
That code has an error; YOU FAILED MAN, YOU FAILED!!!
Thedude321ful 1 year ago
@Thedude321ful well i got no errror thx dude + u FAIL THEDUDE!
Urleu 1 year ago
Isn't colour brittish and color american?:)
xpontussx 1 year ago
awesome!thats really an advanced notepad.Good work!
kkk911XD 1 year ago
We need a seeeaarrrrcch
StainlessScience 1 year ago
u mixxed up the colour and font
conorm125 1 year ago
errors in code...
john55223 1 year ago
I made my CooLPad 2.0 search on youtube!
KiK2CooL 1 year ago
This is very cool. I enter the codes for my tutorial use.. :)
NeawyTutorials 1 year ago
For adding a printer you have to add a printdialog and double click your "print button" and write: printdialog1.ShowDialog()
I also changed allowselection to true in the printdialog properties
Hope it works!
fillecool2 1 year ago
Comment removed
fillecool2 1 year ago
Comment removed
fillecool2 1 year ago
@fillecool2 Pedofile :P
bassyboy189 1 year ago
@bassyboy189 haha hell no
fillecool2 1 year ago
How do you make it open .txt files and save .txt files?
LoKoGaming 1 year ago
@themanp6p i dont know if this is true, because i am from greece, i just study english for 7 years
TastyTeo 1 year ago
Love these tutorials! :D
TechQuestOfficial 1 year ago
lol you messed the color and font up in the descryption just thought i would point that out to you
xXCREATERXx 1 year ago
Lol, love your voice!
thumbs up if you agree!
ThePassel 1 year ago 40
@ThePassel I humbly disagree.
jonjonjonmw3 5 months ago
@jonjonjonmw3 Lol why?
It sounds funny, also there are many agress if you noticed :P'\
ThePassel 5 months ago
This has been flagged as spam show
@jonjonjonmw3 Lol why?
It sounds funny, also there are many agress if you noticed :P'
ThePassel 5 months ago
THANKS
Pwnapple123 1 year ago
font code is wrong in description this should work: Try Dim dlg As FontDialog = New FontDialog dlg.Font = RichTextBox1.Font If dlg.ShowDialog = System.Windows.Forms.DialogResult.OK Then RichTextBox1.Font = dlg.Font End If
fuckhead3520 1 year ago
thanks alot.
fuckhead3520 1 year ago
For a print option : Make a button called 'Print' or an item on a menustrip called Print.
Then double click, and enter this code; Dim AB As New PrintDialog Try AB.ShowDialog() RichTextBox1.Text = AB.PrintToFile Catch ex As Exception End Try
===================================
To Debug, hit the green triangle or hit F5 and to compile to and application (.exe) Hit the 'Project' tab on the top, then publish. Thumbs up if I helped
xXShrew21Xx 1 year ago 9
This is way easy to do i did this years n years ago, im so c++
LamsasukeMedia 1 year ago
how do you make so you can save as html etc.. please answer
AAArCHijSSS 1 year ago
@AAArCHijSSS Change the .rtf - .html in the source code
LamsasukeMedia 1 year ago
How do i get it to run without going in VB?
SuperSonicXX9 1 year ago
@SuperSonicXX9 go to the project folder find it go to bin then debug then find the exe file
IL2sturmovik1 1 year ago
How do i debug it
????????
assasinationgamer 1 year ago
mine is more advanced than this, and im crap at programmng
MikeStrachsWorks 1 year ago
Made my advanced notepad! THANKS!
SpecialQueenHabboUSA 1 year ago
print option would be nice. Thanx anyway
IamFuU 1 year ago
This has been flagged as spam show
Thanks Mate Hope You make More Vids
Ive Subscribed Thanks For All The Help!!!
TechComputerModz 1 year ago
@TechComputerModz Why this is spam?
Concerons 9 months ago
Thanks Mate Hope You make More Vids
Ive Subscribed Thanks For All The Help!!
TechComputerModz 1 year ago
Awesome video! Couple of suggestions:
1. You can add a Word Wrap feature, just have it disabled in the richtextbox properties and then us the code; RichTextBox1.WordWrap = True
2. Make it so you can open/save .txt files.
3. Print option/ Page setup
If you could tell me how to do any of the last two suggestions it would be much appreciated! :)
mrjangomushiturner 1 year ago
reasons why it sucks:
1. you can only save in rtf (otherwise you'll have rtf tags in your document).
2. no save (your "save" works as save as)
3. no printing
you have to admit that it is definitely not in anyway more advanced than the original notepad.
VPf2 1 year ago
OMG dlg not declerd OMFG!
halo12master 1 year ago
This works in VB 2005
onlysing4u 1 year ago
ur one of the best
123dcbam 1 year ago
Hehe! he forgot the "end" code! (for these who don´t know): me.close
P.S.: I´m from germany. my english isn´t very good...
TheMrBrix 1 year ago
@TheMrBrix no he didnt
123dcbam 1 year ago
@TheMrBrix Or you can just tipe End.... :D
azerzaable 1 year ago
@azerzaable or that :D
TheMrBrix 1 year ago
thanks!
Gerrieboy11 1 year ago
Open enter this code the one in description don't works !!! This works,...
Open Dim Open As New OpenFileDialog Open.Filter = "Text Files (*.txt)|*.txt|ALL FILES (*.*)|*.*" Open.Title = "Save File" Open.CheckPathExists = True Open.ShowDialog(Me) On Error Resume Next Dim RT As New System.IO.StreamReader(Open.FileName) On Error Resume Next RichTextBox1.Text = RT.ReadToEnd
HibridFires 1 year ago
HI
The open DON'T WORK BUT ALL other works... Can you tell me why ?
HibridFires 1 year ago
Where you get visual "Studio"? I got a Visual basic not studio HELP ME!
L0l71 1 year ago
@L0l71 He has Basic. Basic is basic.
bfoster15no2 1 year ago
@L0l71 He has Basic. Basic is basic.
Basic is also funner and better =D
bfoster15no2 1 year ago
How did you get your menu strip to look like that?
davestutorials 1 year ago
@davestutorials If u place the MenuStrip and u place the RichTextBox under it then u get that MenuStrip
Sorry for bad English =S
defofsaradomin 1 year ago
Will this work in 2010??
2010Mrsurfer 1 year ago
@2010Mrsurfer yes in all versions
MrNoobWarrior 1 year ago
@MrNoobWarrior thank you
2010Mrsurfer 1 year ago
@2010Mrsurfer no worries :)
MrNoobWarrior 1 year ago
@dahacker5 Code: RichTextBox1.ShowPrintDialog
AlDy505 1 year ago
What about the exit option!
Code for exit:
me.close()
GNews10 1 year ago
@GNews10 The exit is simpled with "End"
Code: Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click End End Sub
AlDy505 1 year ago
This has been flagged as spam show
@GNews10 The exit is simpled with "End"
Code: Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click End
End Sub
AlDy505 1 year ago
Very very nice :) please watch mine :) its little more advanced
h4lv4ll 1 year ago
thankyou for teching me... IT WORKED!!!!! just one thing colour and font codes ( in the description) are mixed up
AwaChrystal 1 year ago
Superb...thanx
krish4u2k 1 year ago
Thanks you Rock!
GadjetWadjet 1 year ago
hey, quick question, i made a keylogger with your other video, can i add a menu strip with a file option and save option under file on the menu strip so i can save logged txt?
ChrisOwnz42 1 year ago
and he is not a jerk!! just cos yur jealous cos you carn do it thats why u looked at this video coss you a dumb cunt andyucr do it enerd you are wiked dont listen to any nasty comments !!!
MrJoejoeTT 1 year ago
and he is not a jerk!!
MrJoejoeTT 1 year ago
you are fuckinng amazing dude awsome!! :0 :)
MrJoejoeTT 1 year ago
This has been flagged as spam show
Very good video!!!!!!!!!!!!!!
jim98dami 1 year ago
Very good video
jim98dami 1 year ago
at least you're not like those other vids, squishing the screen.together so I can't see the spaces and other lil things.
And at least you TALK! :DD
ImClichA 1 year ago
@THEOMGMODZ Jerk!
RattleRattle100 1 year ago
There's alot of error, thanks for nothing
RattleRattle100 1 year ago
Mhm..Very nice videos btw but i get an error while DeBugging, it says cannot load file or assembly help?
rp4b 1 year ago
Man! Cool! Do yoou know I watched your in my Web browser you teached me to create! Thx!
bero231 1 year ago
Thanks!!! IT WORKS :D
ritxx 1 year ago
Color = American English
Colour = British English
TastyTeo 1 year ago 24
@TastyTeo Lol, I I spell color colour because for some reason I often times write using the British version of English. Pisses my teachers off, but it is correct.
mylastproduction 1 year ago
@TastyTeo british? and what about ireland or other countries hm? The brits dont own the word.
darkraiNo1 1 year ago
@TastyTeo Correction, "Colour = English"
0wnUr3Fac3 11 months ago
haha you have the font code labeled color and color code labeled font :)
commercialsaremywife 1 year ago
your like the best explainer your ot too fast nt too slow ur perfect thanks man
TechSupportSchool 1 year ago
Can you tell me how to make it save as a .txt?
BlueJayke 1 year ago
This has been flagged as spam show
S
U
B
FOR
S
U
B
BOX 4 BOX? ADD?
BlueJayke 1 year ago
How to end it. Please tell
AandKgamesproduction 1 year ago
Thanks man!
You rock!
I'm subscribing.
:)
Alicam7 1 year ago
Hi there
How do i use the My.Settings command. I dont understand how to use it. can you help?
bensteele33 1 year ago
how do you change it so it says somthing diffrent instead of "form 1"
codkiller667 1 year ago
@codkiller667
Go into the properties box and find where it says Text. In the box to the right, change it to whatever you want.
ferrellproductions 1 year ago
why so you say 'G'Day' in a wierd kind of way
Soniredoncp 1 year ago
cool o.O but you was maked "coulor" and "font" on the wrong place.
you was maked it "coulor"to"font"
GarryIsac 1 year ago
plz post more
shuvo22 1 year ago
thanks
Soniredhelp 1 year ago
This video was fantastic as it was JUST what i was looking for, as a lot of other videos don't show you a save option, and as im new to VB this was a great help thanks alot ^^
IownAmooseFarm 1 year ago
Nice tut man, gotta question thought.
I'm working on a project in VB 2010, and i'm trying to make a save and save as feature, so if the user wants to save their progress they can just click save without another window.
firednapictures 1 year ago
Comment removed
XxSocialTechxX 1 year ago
hey bro you mess up in the codes font code is font colour and colour code is font
yutubezone 1 year ago
THANKS THANKS THANKS THANKS
slambam100 1 year ago
Dude Great Tutorial. It Soothed Frustration
techskill203 1 year ago
u got font and color switched
AxrlVids 1 year ago
@Xxlivengood220xX haha yeah i guess. i just though cause mine has help, print, ect and buttons and menu strips :P
VBGirlTutorials 1 year ago
By advanced you mean basic right?
VBGirlTutorials 1 year ago
@VBGirlTutorials check out his videos. everything he calls "ADVANCED" is pretty basic. Check out the web browser one he made. pretty basic
XxSocialTechxX 1 year ago
@XxSocialTechxX yeah i know #LOL
VBGirlTutorials 1 year ago
@XxSocialTechxX
she commented easy
the code dont work
Soniredhelp 1 year ago
@Soniredhelp huh?
XxSocialTechxX 1 year ago
@XxSocialTechxX
(Soniredhelp is my second account)
Yes I did not know what i talked about
Soniredoncp 1 year ago
How do i export it or save it ?
icehockey3604life 1 year ago
what about the exit code in description?
VvConorvV 1 year ago
You Talk Nice!!xD
paludanye 1 year ago
where is the advanced notepad?
when U say advanced it means more features then the windows one has and more advanced features like:
-encryption
-html editing (with highlighting text)
-why not to be automatically be used by ur system when opening text files with double click
-apply text effects
-converters : binary,hex,ascii
That would be advanced.....yours is just basic (the oposite of advanced) and on top of that it's even weaker then the default windows notepad with less functions
R3tardEntertainment 1 year ago
do you know how to make notepad program that open and saves *.txt files?
eric95f1 1 year ago
@eric95f1
If You Want it to save it as a .Txt file then do this
1) in the code were it says: dlg.Filter = "Rich Text Files (*.rtf)|*.rtf" then replace the *.rtf with *.txt and the "rich Text Files" with "text File"
paludanye 1 year ago
It's really funny x3.
Alone i can do this all à long time :']
But i think ....
Nothing now :p.
kralenketinkje 1 year ago
I can't save :(
koekies11 1 year ago
Font And Colour Are Messed Up... BUT AWESOME VIDEO!!!
AlexF360s 1 year ago
Why is this considered advanced?
xpxd4 1 year ago
This guy knows his code ill tell you that :)
bradysimp95 1 year ago
Nice Work
juthawong 1 year ago