Discussion Locked

Generate an auto-OK dialog box

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

This week's Visual Basic newsletter describes how to generate an auto-OK dialog box. You might use this dialog box if you want to give the user the option of changing program defaults, or letting the program run on its own using the defaults.

Do you like the concept of auto-OK buttons? What topics would you like to see the author cover in future editions of this newsletter? Let us know.

If you aren't subscribed to our free Visual Basic newsletter, click the following link to automatically sign up:
http://nl.com.com/MiniFormHandler?brand=builder&subs_channel=bldr_front_door&list_id=e065&tag=fb

5 replies

by elvis

from your form click a button and generate an email with your text values and email address shold be there by defualt
Example
i have three textboxes and a copmmand button
text1=name
text2=company
text3=email
when i click on my command button i want it to generate an email with text3 on the to field and
text1 and text2 on the the body.

by manivenkit

You can use sockets to generate the EMail (use Winsock controls or API's) or maybe the better way out would be to use Collaborative Data Objects (CDO). Second option may require you to setup a SMTP Server which comes by default with IIS.

by bucky kaufman (mcsd)

Sub cmdSend()
Dim sURL, sEmail, sName, sCompany
sName = Document.oForm.text1.value
sCompany = Document.oForm.text2.value
sEmail = Document.oForm.text3.value
sURL = "mailto:" & sEmail & "?body=" & sName & " " & sCompany
window.location = sURL

End Sub

by bobksr

That's a great idea. I used it to give the user a chance to change a database from the default.

This discussion is closed to new replies.