|
-
Sep 13th, 2003, 10:17 AM
#1
Thread Starter
New Member
Want to send a email
1. How to send email. Suppose my email address is [email protected] and I want to send a email by using this address. How I can do it?
2. How to auto compleate a combo box. I use VB 6.0
-
Sep 13th, 2003, 10:17 AM
#2
Thread Starter
New Member
Want to send a email
1. How to send email. Suppose my email address is [email protected] and I want to send a email by using this address. How I can do it?
2. How to auto compleate a combo box. I use VB 6.0
-
Sep 13th, 2003, 10:18 AM
#3
Thread Starter
New Member
Want to send a email
1. How to send email. Suppose my email address is [email protected] and I want to send a email by using this address. How I can do it?
2. How to auto compleate a combo box. I use VB 6.0
-
Sep 13th, 2003, 12:58 PM
#4
You want to send the email using? Outlook, CDO, SMTP?
Here is a function I found and modified for autocomplete for a
combo box. Just pass the combo box and the keyascii in the
keypress event of the combo.
VB Code:
'USE
Private Sub cboProject_KeyPress(KeyAscii As Integer)
'<RR 08/08/03 - VB/OUTLOOK GURU>
KeyAscii = AutoFind(cboProject, KeyAscii, False)
End Sub
'FUNCTION
Public Function AutoFind(ByRef cboCtl As ComboBox, ByVal KeyAscii As Integer, Optional ByVal LimitToList As Boolean = False)
'<RR 08/08/03 - VB/OUTLOOK GURU>
On Error GoTo No_Bugs
Dim lCB As Long
Dim sFindString As String
If KeyAscii = 8 Then
If cboCtl.SelStart <= 1 Then
cboCtl = ""
AutoFind = 0
Exit Function
End If
If cboCtl.SelLength = 0 Then
sFindString = UCase(Left(cboCtl, Len(cboCtl) - 1))
Else
sFindString = Left$(cboCtl.Text, cboCtl.SelStart - 1)
End If
ElseIf KeyAscii < 32 Or KeyAscii > 127 Then
Exit Function
Else
If cboCtl.SelLength = 0 Then
sFindString = UCase(cboCtl.Text & Chr$(KeyAscii))
Else
sFindString = Left$(cboCtl.Text, cboCtl.SelStart) & Chr$(KeyAscii)
End If
End If
lCB = SendMessageStr(cboCtl.hwnd, CB_FINDSTRING, -1, ByVal sFindString)
If lCB <> (-1) Then
cboCtl.ListIndex = lCB
cboCtl.SelStart = Len(sFindString)
cboCtl.SelLength = Len(cboCtl.Text) - cboCtl.SelStart
AutoFind = 0
Else
If LimitToList = True Then
AutoFind = 0
Else
AutoFind = KeyAscii
End If
End If
Exit Function
No_Bugs:
MsgBox Err.Number & " - " & Err.Description, vbOKOnly + vbExclamation, App.ProductName
End Function
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 13th, 2003, 01:21 PM
#5
-
Sep 13th, 2003, 04:30 PM
#6
-
Sep 21st, 2003, 06:43 PM
#7
New Member
E-mail
Maybe if you answer the guy he will be out of your hair ?
-
Sep 22nd, 2003, 08:01 AM
#8
Addicted Member
May i comment
May Be This Will Ease His Mind?
VB Code:
Public Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub cmdSend_Click()
ShellExecute hwnd, _
"open", _
"&subject=Yummy Tummy For U'r Tummy" & _
"&body=" & Replace("Delight & Desert", vbCrLf, _
"%0D%0A"), _
vbNullString, vbNullString, _
SW_SHOW
End Sub
I may have interpret your post wrongly
Correct me if I made a mistake...
Hope This Helps.. .....Enjoy Coding.....//
zak2zak
-
Sep 22nd, 2003, 09:12 AM
#9
Re: E-mail
Originally posted by RLFX
Maybe if you answer the guy he will be out of your hair ?
Not so simple. He's obviously not interested in answers, as seen by the following, where each set was posted within minutes of each other:
I think an explanation from him is wll past due.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|