General discussion

Locked

Generate an auto-OK dialog box

By MaryWeilage Editor ·
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

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Button that generate email

by elvis In reply to Generate an auto-OK dialo ...

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.

Collapse -

Use Sockets

by manivenkit In reply to Button that generate emai ...

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.

Collapse -

Button Code

<form id ="oForm" name = "oForm">
<input type="text" id="text1" value="name">
<input type="text" id="text2" value="company">
<input type="text" id="text3" value="email">
<input type="button"
id="oButton" name="oButton"
onClick="cmdSend();">
</form>

<script language="vbscript">
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
</script>

Collapse -

AUTO OK BUTTON

by rayt In reply to Generate an auto-OK dialo ...

A very neet idea.
Thanks

Collapse -

Auto-OK Buttons

by bobksr In reply to Generate an auto-OK dialo ...

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

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums