I have a problem with a program that i am making, it is a program that displays a pop-up, and lets the user select the type of it, the message and the title. (Apparently i cant show a screenie of it)
Now, the problem is that i want the user to be able to save their own message box (pop-up), and thats the thing i dont know how to do.
I have the codes to display the pop-up in visual basic:
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox(Message.Text, MsgBoxStyle.OkOnly, txtName.Text)
Now, i have created the program to work like this, the user writes his message in one textbox (Message.text), the user writes its title in another box (txtName), and then press a button, which displays the pop up, and contains the code on how to box looks(MsgBoxStyle.OkOnly, for example)
Now i want to know how to make the user able to save their pop-up, with their own text and title from the textboxes, but since i have buttons to create the "effects" on the pop-ups, this is hard.
I have been fooling around with some codes, for example:
Dim savef As New System.IO.StreamWriter("c:/users/User/desktop/Pop-Up.vbs") savef.Write(TextBox1.Text) savef.Close()
But then i dont get the necessary things in, like the:
msgbox "textbox in here",48,"Titlebox in here"
and i dont get to change the "effects".
PS: I want it to be saved as a .vbs.
Now this ended up really bad, but i hope someone understands it.
If anyone has a clue about this, or can give me a hint, please answer this post.
Yeah, and the
msgbox "Messagebox in here",48,"titlebox here"is a .vbs script, that you use notepad
to write, thats what i want to save it as.
This post has been edited by Zooms: 19 December 2008 - 08:17 AM