Ok. That works all well and good. But how do I handle the file not found exception that comes up if I abort opening the file? I mean if I click the button and then x out of the open file dialog box the program crashes. What do I need to add to make the program not crash if the user opens the openfiledialog but then chooses not to open a file? Any help on this would be great.
How do we make it display hex? if i open a FILE (file without extention) in notepad, it displays the hex, if i open it with this, it has one line of text, why?
wow that looks very advanced how long did it took u to learn that,10 seconds?
And U type slower than my grandma.
I will give U 2 stars cause im nice.
Seriously U commented to a post of mine some time ago and I watched 5-6 videos of yours....programming is not a thing for u...u just copy some codes that u saw somewhere and U call that coding...
Try showing me u can make a multiplayer to a game that doesnt have it and after that I will make the same thing in C++ and compare the results.
i watched your open and save shoping list and got code for converting every item on listbox to a textbox with multi line..and my question is if you know how to reverse it so lets say i got 5 lines on textbox and press a button and i want: for each line in textbox, listbox1.add
but i have another langauge deffrant from english and my text box not support to open or langauge cant be know to read but it's just show english text
opsssss
tinku710 2 months ago
This is cleanest screen capture i ever seen.
mw43al 2 months ago
Ok. That works all well and good. But how do I handle the file not found exception that comes up if I abort opening the file? I mean if I click the button and then x out of the open file dialog box the program crashes. What do I need to add to make the program not crash if the user opens the openfiledialog but then chooses not to open a file? Any help on this would be great.
Designartseller 6 months ago
@Designartseller Wrap it in Try things. Ex
Try
Send.Blah
Get.Blah
Open.Blah
catch ex as exeption
end try
GreysonSquad 5 months ago
Does not work Help pls it says that TheText.Text is didn t Decleared Help.
runningkiller 8 months ago
@runningkiller
hmm. maybe rename Textbox1 to Text Lolzor ( noob?)
G00dFight1996 6 months ago
thnx
ABABAB542 1 year ago
Thank you so much! You're a great help for CIS students!!
stevicerated 1 year ago
How would you open a file that has two lines for two different textboxes?
late7 1 year ago
thnx man
varmavee 1 year ago
nice thank you
zhir96 1 year ago
exceptionally good tutorial here, much better than the way i was using open file dialogs!
ScamTheScammers 1 year ago
Fk u i cant typ OpenF.InitialDirectory = "C:\" of what ever,
button1.InitialDirectory = "C:\"
i only get afking blue error
EvoProduct 1 year ago
@EvoProduct whats wrong? did you remember to drag an open file dialog from the toolbox onto the form???
ScamTheScammers 1 year ago
How do we make it display hex? if i open a FILE (file without extention) in notepad, it displays the hex, if i open it with this, it has one line of text, why?
thisguyisuntraceable 1 year ago
i love you...
Necrophagist1609 1 year ago
Nice one 5*
TheComputerNeek 1 year ago
Thanks it helped
ornus44 1 year ago
wow that looks very advanced how long did it took u to learn that,10 seconds?
And U type slower than my grandma.
I will give U 2 stars cause im nice.
Seriously U commented to a post of mine some time ago and I watched 5-6 videos of yours....programming is not a thing for u...u just copy some codes that u saw somewhere and U call that coding...
Try showing me u can make a multiplayer to a game that doesnt have it and after that I will make the same thing in C++ and compare the results.
R3tardEntertainment 1 year ago
i watched your open and save shoping list and got code for converting every item on listbox to a textbox with multi line..and my question is if you know how to reverse it so lets say i got 5 lines on textbox and press a button and i want: for each line in textbox, listbox1.add
simme808 2 years ago
thx bro for share
but i have another langauge deffrant from english and my text box not support to open or langauge cant be know to read but it's just show english text
any suggestion
thx at advanced
rogeh2010 2 years ago
Doesn't work for me
themanhunt1234 2 years ago
it's work for me great just make sure about this line
Dim R as new IO.Streamreader(openf.filename)
it will works for u
best regards
rogeh2010 2 years ago