473,406 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how to send an email from a vb software

14
kindly help me to send an email from a vb application ,

help me
regards
manjesh
Apr 28 '07 #1
7 4710
Here's a pretty simple/good example. Unfortunately, SMTP doesn't have easy support for attachments.

Example
Apr 28 '07 #2
manjesh
14
Here's a pretty simple/good example. Unfortunately, SMTP doesn't have easy support for attachments.

Example

thanks for this i need one more help , how to create an toolbar and placing ad ,edit,save, utton ,to operate diffrent forms , instead of using each form we can use this toolbar can u help me ,

thanks
Apr 29 '07 #3
I'm not sure what you're asking. Could you clarify?
Apr 30 '07 #4
manjesh
14
I'm not sure what you're asking. Could you clarify?
for example like word we are using the save button thru toolbar like that i want to use this to my software , toolbar button , add ,,edit ,save , if i open a various from from mdi , if i want click add button to operate all the forms.
regards
manjesh
May 1 '07 #5
Dököll
2,364 Expert 2GB
for example like word we are using the save button thru toolbar like that i want to use this to my software , toolbar button , add ,,edit ,save , if i open a various from from mdi , if i want click add button to operate all the forms.
regards
manjesh
Hello, manjesh!

Your solution may be closer than you think. Perhaps adding your question to search terms in the box (i.e. How to build menus) and fetch will give you the results you need.

Also if you have something working, post it so one can take a look, point you in the right direction.

You can also try this yourself by starting a new VB project and choosing VB Application Wizard. How's that for a deal?

Dököll
May 1 '07 #6
Shailja
123 100+
for example like word we are using the save button thru toolbar like that i want to use this to my software , toolbar button , add ,,edit ,save , if i open a various from from mdi , if i want click add button to operate all the forms.
regards
manjesh
Hi Manjesh,

Here is the solution. Suppose u have 3 forms in ur project and u want to handle with only one toolbar, right? Here is the sol.

Suppose 4 forms are:
1) Customer
2) Supplier
3) Item.

Now u have one toolbar. Declare following variables in MDI form, where u have toolbar.

Dim varfrmCust as Integer
Dim varfrmSupp as Integer
Dim varfrmItem as Integer

Now initialize the variables on form load event of MDI,
varfrmCust = 0
varfrmSupp = 0
varfrmItem = 0

Now set the value of variable to 1 on their corrosponding click event. Say, if u have selected Customer form option from menu bar, write down the code

Private Sub mnuCustomer_Click()
varfrmCust = 1
frmCust.Show
frmSupp.Hide
frmItem.Hide
End Sub

Similary for Supplier and Item like
Private Sub mnuSupplier_Click()
varfrmSupp = 1
frmSupp.Show
frmCust.Hide
frmItem.Hide
End Sub
and similarly for item

Now write down the following code:
Select Case Button.Index
Case 1 'Add New Rsecord
If varfrmCust = 1 Then
frmCust.Add_New
End If

If varfrmSupp = 1 Then
frmSupp.Add_New
End If

If varfrmItem = 1 Then
frmItem.Add_New
End If
End Select

and similary for other buttons.
May 7 '07 #7
manjesh
14
Hi Manjesh,

Here is the solution. Suppose u have 3 forms in ur project and u want to handle with only one toolbar, right? Here is the sol.

Suppose 4 forms are:
1) Customer
2) Supplier
3) Item.

Now u have one toolbar. Declare following variables in MDI form, where u have toolbar.

Dim varfrmCust as Integer
Dim varfrmSupp as Integer
Dim varfrmItem as Integer

Now initialize the variables on form load event of MDI,
varfrmCust = 0
varfrmSupp = 0
varfrmItem = 0

Now set the value of variable to 1 on their corrosponding click event. Say, if u have selected Customer form option from menu bar, write down the code

Private Sub mnuCustomer_Click()
varfrmCust = 1
frmCust.Show
frmSupp.Hide
frmItem.Hide
End Sub

Similary for Supplier and Item like
Private Sub mnuSupplier_Click()
varfrmSupp = 1
frmSupp.Show
frmCust.Hide
frmItem.Hide
End Sub
and similarly for item

Now write down the following code:
Select Case Button.Index
Case 1 'Add New Rsecord
If varfrmCust = 1 Then
frmCust.Add_New
End If

If varfrmSupp = 1 Then
frmSupp.Add_New
End If

If varfrmItem = 1 Then
frmItem.Add_New
End If
End Select

and similary for other buttons.



Dear Shailja,

Thanks for this solution , because am developing a software , can u tell me each form i have to use the add button, edit save buttons , is it correct.
hi actualy i want use this toolbar butons ( add, edit ,save ) to do operation for all the master , transaction. so each form will vary the save buutons.i can place save buttons in visible false. is it correct.


thanks u very much. sir can i have u r email id to contact .

regards
manjesh
May 8 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Thom McGrath | last post by:
I'm writing a simple mailing list program, and I would like to know what the suggested method of sending a large number of emails to a list of addresses. (sounds like spam, no?) It's perfectly...
1
by: Gernot Hillier | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I'm the developer of a Linux ISDN application which uses embedded Python for controlling the communication. It starts several threads (i.e....
1
by: Kenshin | last post by:
Hey! I have another script where i pull all the information from the database and I want to send it to the person. What they do is they enter in their email, and if the email matches, than it will...
6
by: Larry Woods | last post by:
I have a situation where I need to send a text message to a cell phone. Any ideas? TIA, Larry Woods
1
by: stax | last post by:
Hello, I would like to add a Send Feedback feature to my application. Does anybody know or easy way to do this, any applications that do this, articles, samples or anything else that could give me...
5
by: Andy G | last post by:
Hi, My plan is to use Try Catch statements to catch an error and then email it to myself. I send the user to a custom error page and I would like to email myself the asp.net error. I thought...
7
by: Jacques St-Pierre | last post by:
Hello, I need a simple way to send very simple email via a VB6 code. Anyone know how to do that? Any code avaliable? Without using Outlook if possible, I only have Outlook Express avaliable. ...
16
by: =?Utf-8?B?Q2hlZg==?= | last post by:
I can use outlook2003 to send email,but I cann't use this code below to send email. Please help me to test this code and instruct me how to solve this problem in detail. software...
1
by: chaitanya02 | last post by:
Hi All, Well- this question might have appeared several times on this forum- but would appreciate your reply on this: I have a asp page, where customers login with some username and the pwd,...
4
by: chris | last post by:
I need to maintain a list of subscribers to an email list for a "newsletter" that will be sent via a web form probably once a month. I anticipate low numbers--tens to maybe one hundred subscribers...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.