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! :)
@0wnUr3Fac314 жыл бұрын
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)?
@F1Fearce15 жыл бұрын
Thank You for posting the code... Unlike alot of those supposed'ed "TUTs". That Usualllly consists of a "BS" vid with no audio!
@SusieFanK14 жыл бұрын
awesome!thats really an advanced notepad.Good work!
@HASHTAG-zhx15 жыл бұрын
Best video so far on this thanks man!!
@thewizar812 жыл бұрын
Thanks dude.. But since im new to Visual Basic i would like to know that after you made a Note Pad how can you share this Word Pad with others and will Microsoft take Money to publish this Note Pad. In Simple words i want to made my own Note Pad and want my friends to install it on thier PC. Is that possible and do they take cash for it?
@HelpMyFellowPeople13 жыл бұрын
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?
@buggyiscool15 жыл бұрын
hey thanks a lot it helps! i thought i needed to use a textbox in order to save a .txt file but guess not...thanks again
@densenet15 жыл бұрын
Hello! Is there any way to make two filters to save and open? For Example When you click save there's the RTF extension. Can you make it to where you May save it as another extenstion, also?
@TheDarkKnight0315 жыл бұрын
hey...i've problem to load a project that i saved .. i mean when i save my project i don't know how to get it back when i exit VB ..so plz help ..tell me or u can show me at the begining of ur next tut
@jamiemcintyre66615 жыл бұрын
Thanks for the code struggling to find it everywhere great video.
@OhioRiverMovieMaker15 жыл бұрын
At 2:10 what is the line that goes straight down and how do you get it, Because I have looked everywhere and could not find out where you put it in at.
@null07378 жыл бұрын
Thanks Man!!!! You made my half project.... :)
@sweetfeet10415 жыл бұрын
Do you learn all these codes or do you copy them from somewhere?
@computerhelp5112 жыл бұрын
hi, how can you make it so that you have multiple save and open file types such as txt and rtf? many thanks
@fancypenguins15 жыл бұрын
how can i make it so it can open and save diffrent types of files?
@TogeNoBara13 жыл бұрын
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.
@jkurtzman115 жыл бұрын
Dude YOU ARE THE BEST!!!!!!!!!!
@aethletiic60326 жыл бұрын
what is i want it to be able to open .txt files or .doc files instead of just .rtf files?
@djemreandandrew267211 жыл бұрын
the save and open don't work when I click them when the project is running
@Chamantha1013 жыл бұрын
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. :)
@Altex011 жыл бұрын
easy way for save button: dim Save as new IO.StreamWriter("c:\users\" + environment.username() + "output" + ".txt") Save.Writeline(textbox1.text)
@ClintonHuynh15 жыл бұрын
I keep looking for a normal notepad but all end up with richtextbox and rtf files, Im trying to find codes with txt and textbox, And none of the try and catch ex as exception stuff.
@slytherin909013 жыл бұрын
@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"
@1Mihailo15 жыл бұрын
im searching more more advanced example notpad++ program... becouse when you write a few line it counts em like : |1|asd |2|asd |3|asd and text when you write example : Random it comes blue but only that char
@ahmetabzhir6 жыл бұрын
Woow thank you Teachar
@pwnagedification12 жыл бұрын
@Shinrubik did you change file type from txt to all then"name of file".bat?
@ClintonHuynh15 жыл бұрын
if i use .txt it would then i would be saving it with the rtf coding that makes the font the way it is including colour. you still won't have a clear text file
@Awtsmoos14 жыл бұрын
Can you tell me how to make it save as a .txt?
@PlaySteamGames11 жыл бұрын
Dont forget, were using RichTextBox1 in this video so: Save.Writeline(RichTextBox1.Text)
@Many_Mirrors14 жыл бұрын
Man! Cool! Do yoou know I watched your in my Web browser you teached me to create! Thx!
@dodongkyo15 жыл бұрын
how about the word wrap option like in the normal windows notepad :)
@PlaySteamGames11 жыл бұрын
Just a note: In the description you put the Color code at Font: and the Font code at Colour:
@buggyiscool15 жыл бұрын
hey im working on this notepad with txt files and im trying to convert your code so its .txt instead of .rtf but im not sure how
@jacky839913 жыл бұрын
@super1992ism Really?I can save, Try Click Save,and name 123,Save at desktop,and open?
@coley155515 жыл бұрын
@soldadit0 thats because this is visual basic 2008...
@MatthiWare14 жыл бұрын
@davestutorials If u place the MenuStrip and u place the RichTextBox under it then u get that MenuStrip Sorry for bad English =S
@isakhejnesen15 жыл бұрын
Hi, ehm i really like your videos. so i wanna ask you if you could make a tutorial on how to make a round button in vb 2008 or whatever, thx for this tut really helps. READ ME!!!
@jedisirce10 жыл бұрын
how to an save button have default saving location?
@eric95f114 жыл бұрын
do you know how to make notepad program that open and saves *.txt files?
@wildhog3815 жыл бұрын
I tried it, it worked great. 5/5
@FormEcss14 жыл бұрын
Thanks dude your awesome! :D
@Colaglass15 жыл бұрын
Uhm, is there a code for resizing windows like this? Appreciate answers. ^_^
@VvConorvV14 жыл бұрын
what about the exit code in description?
@007speedcuber12 жыл бұрын
How do you convert it so you can just doubleclick on it?
@NathanEnefer12 жыл бұрын
For guys that didnt see in the code bit for the exit tool strip item just add End for that bit
@mariennelopez3013 жыл бұрын
@jibz988 Then go back to main form and double-click the 'close' item under the 'file' menu bar and encode Form2.show() . That's just it.
@BigBottleLightInc14 жыл бұрын
what about the exit button?
@tudorpanait913 жыл бұрын
thanks!!! You are the best!
@Atri4812 жыл бұрын
Hey! you have gave the code for color in font and font in color!
@Sh3lbyProductions12 жыл бұрын
Thanks dude! subbed
@IamFuU14 жыл бұрын
print option would be nice. Thanx anyway
@lljal31413 жыл бұрын
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!?
@AlzainAli15 жыл бұрын
man u rockk.iam gonna sub to u
@assasinationgamer14 жыл бұрын
How do i debug it ????????
@SuperSonicXX914 жыл бұрын
How do i get it to run without going in VB?
@krish4u2k14 жыл бұрын
Superb...thanx
@2010Mrsurfer14 жыл бұрын
Will this work in 2010??
@foxenn14 жыл бұрын
Font And Colour Are Messed Up... BUT AWESOME VIDEO!!!
@marcostaveras103012 жыл бұрын
For some people this happen to me to but Remenver The TextBox1 is not the same of yours Sample Select All: RichTextBox1.SelectAll() Change the TextBox Name to Yours type T1 on name then Select All: T1.SelectAll() do it like this if error came in to your bar Thanks
@tomixtomi1214 жыл бұрын
What about print?
@gabriel8357112 жыл бұрын
i'm sorry but this code closes the form when press ok or cancel
@StephenOctavian12 жыл бұрын
P.S. You can add an option to align the text to right, left or center: Align to left: RichTextBox1.SelectionAlignment = HorizontalAlignment.Left Align to right : RichTextBox1.SelectionAlignment = HorizontalAlignment.Right Align to center: RichTextBox1.SelectionAlignment = HorizontalAlignment.Center
@1Mihailo15 жыл бұрын
Reply to me guys , im searching for somethink that can open a format like : .myformat and when i double click it that that program opens it!
@1Mihailo15 жыл бұрын
hey im not searching for this ! 0 / 5 , becouse i know this easy stuff , im searching for a notepad that has his own format ( like .myformat ) and when i double click that file that it opens with my program :( someone reply pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
@vallismall15 жыл бұрын
@environmentalnerd53 lol wasnt accusing :D just saying the code and setup are very much alike :D altought there aint many codes that do the same so ... :P
@markkyrie20048 жыл бұрын
Thanks for sharing.
@geraldmcboing6015 жыл бұрын
thnx a lot.. ists work...
@Rostamson15 жыл бұрын
I cannot save my files in my program - Please help ;-)
@MrSate11ite15 жыл бұрын
Thanks So Much Man........:)
@therealnick12364 жыл бұрын
Background color code?
@SOBKrapmasterD15 жыл бұрын
switch the codes for color and font...
@KisrDeveloper12 жыл бұрын
If you want delete something was u selected use this RichTextBox1.SelectedText = Text.Remove(0)
@MatthewCenance14 жыл бұрын
Color and Font codes in the Description do the other actions!
@ClintonHuynh15 жыл бұрын
i use close instead of end
@gian-lucanardini97069 жыл бұрын
Holy crap your voice XD thanks bro
@mycomrade29397 жыл бұрын
the code for font and color mixed up. still, great vid!
@Doc84212 жыл бұрын
what about .txt files???
@adinjohnson899812 жыл бұрын
Thanks man i help
@keropiboy11 жыл бұрын
can anyone make a printing routine via RTBox?
@NukaBacon15 жыл бұрын
You could have done this with less code. for example: instead of Dim dlg As OpenFileDialog etc... You could have dragged a OpenFileDialog from the toolbox and then written the OpenFileDialog code like this: Try With OpenFileDialog1 .Title = "Open" .Filter = _ "Rich Text files (*.rtf)|*.rtf|" & _ "All files (*.*" This way lets you remove all the "dlg" and make things more WYSIWYG like.
@fortazerty12 жыл бұрын
what About Search ??? Please Reply Me !!!!
@tarkmertozberk1506 жыл бұрын
Print Button ???
@xMercuryx5612 жыл бұрын
Why wrap a try-catch statement around the open dialogs? There's no point
@Dodgemverse15 жыл бұрын
It does not work, vb08 says that almost everything is wrong!
@VidGaming10 жыл бұрын
Thanks!!
@keeblerelmcookies13 жыл бұрын
Print????????
@fuckhead352014 жыл бұрын
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
@mariennelopez3013 жыл бұрын
@jibz988 First create a second form with two buttons named 'yes' and 'no' and a label that says, "Do you want to exit the program without saving it?'. Then, encode the ff: 'yes' button: End 'no' button: Dim SaveFileDialog1 As New SaveFileDialog Dim RichTextBox1 As New RichTextBox SaveFileDialog1.Filter = "rtf files(*.rtf)|*.rtf|txt files(*.txt)|*.txt|All files(*.*)|*.*" If SaveFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then RichTextBox1.SaveFile(SaveFileDialog1.FileName) End If
@MegaUtimate11 жыл бұрын
Thank you
@ComplicatedCakes15 жыл бұрын
awesome thanx
@n_371910 жыл бұрын
You Pasted Colour into Font Dialog :)
@dreadog1012 жыл бұрын
it doesnt open it?
@biigsmokee14 жыл бұрын
@L0l71 He has Basic. Basic is basic. Basic is also funner and better =D
@fuckhead352014 жыл бұрын
thanks alot.
@airaXjoan15 жыл бұрын
thankx 4 it..
@0wnUr3Fac314 жыл бұрын
@TastyTeo Correction, "Colour = English"
@EvilSockMonkeys14 жыл бұрын
@Soniredhelp huh?
@phewt15 жыл бұрын
Yes. 2010 coding is the exact same as 08, i made this in 10