| | |
PLZ let me know how to store a respond of a MSG BOX
Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
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 .net2008 30minutes 2005 2008 access account arithmetic array basic button buttons center check code component connectionstring convert crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist excel fade file-dialog filter firewall folder ftp generatetags hardcopy image images input insert intel math monitor navigate net networking opacity output panel passingparameters peertopeervideostreaming picturebox picturebox1 port printing problem problemwithinstallation project reports" savedialog searchvb.net select shutdown string survey tcp temperature text textbox timer timespan toolbox trim updown user useraccounts usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year






