| | |
PLZ let me know how to store a respond of a MSG BOX
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
VC++ question in VB.NET forum you may move your thread to get more answers http://www.daniweb.com/forums/forum8.html Show method for MessageBox in C# returns DialogResult within you can know user selection (Yes, No, Abort, ....) I don't know if VC++ has the same scenario or not, I recommend to ask VC++ professionals.
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
this forum for vb.net friend
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Feb 2008
Posts: 26
Reputation:
Solved Threads: 1
Hey, wel i am not 100% how to do this, using Visual C++, but if you know any way to change to Visual Basic, I can help, well its prety simple,
Add a 'TextBox', and a 'Button'
Make sure the textbox is called 'Textbox1'
That should be its default name anyway.
Double click on the button, then add this code.
So basicly, this is a simple way to send Text, from a textbox, to another location on your PC. It will automaticly create the text file. So here is a real example you could use.
So this is an example you could use. It's all about choosing the correct path where you want the file to go. I hope this helps, although it used Visual Baisc and not C++.
Feel free to experiment with this example and have fun
x
Add a 'TextBox', and a 'Button'
Make sure the textbox is called 'Textbox1'
That should be its default name anyway.
Double click on the button, then add this code.
VB.NET Syntax (Toggle Plain Text)
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim SaveF As New System.IO.StreamWriter("PUT A PATH WHERE YOU WANT THE TXT FILE TO APEAR, HERE") SaveF.Write(TextBox1.Text) SaveF.Close() End Sub
So basicly, this is a simple way to send Text, from a textbox, to another location on your PC. It will automaticly create the text file. So here is a real example you could use.
VB.NET Syntax (Toggle Plain Text)
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim SaveF As New System.IO.StreamWriter("C:\ExampleFolder\Textfile.txt") SaveF.Write(TextBox1.Text) SaveF.Close() End Sub
So this is an example you could use. It's all about choosing the correct path where you want the file to go. I hope this helps, although it used Visual Baisc and not C++.
Feel free to experiment with this example and have fun

x
![]() |
Similar Threads
- how do you store the respond to a MessageBox (C++)
- embedding java script in php (PHP)
- help!! plz sum one help me FOR GOD SAKE i m crying give me solutions today (Visual Basic 4 / 5 / 6)
- CPU Task Scheduler (C++)
Other Threads in the VB.NET Forum
- Previous Thread: simple chat box..
- Next Thread: Selecting text event in RichTextBox
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access arithmetic array assignment basic binary bing box button buttons center check code combobox component connectionstring convert cpu crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist editvb.net excel file-dialog firewall folder ftp google hardcopy image images isnumericfuntioncall login math memory mobile ms mssqlbackend mysql navigate net networking opacity output peertopeervideostreaming picturebox1 port print printpreview problemwithinstallation project record reports" reuse save savedialog searchbox serial soap storedprocedure string tcp temp text textbox timer toolbox trim updown useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view vista visual visualbasic visualbasic.net visualstudio web wpf






