Click here to Skip to main content
15,914,820 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB.NET Date Functions Calculations Pin
Steven J Jowett29-Mar-10 23:42
Steven J Jowett29-Mar-10 23:42 
QuestionResize external application Pin
csanmba29-Mar-10 10:55
csanmba29-Mar-10 10:55 
AnswerRe: Resize external application Pin
Tarakeshwar Reddy29-Mar-10 12:15
professionalTarakeshwar Reddy29-Mar-10 12:15 
GeneralRe: Resize external application Pin
csanmba30-Mar-10 1:43
csanmba30-Mar-10 1:43 
QuestionOK Going Mad...VB.Net Mail Pin
Dalek Dave29-Mar-10 9:59
professionalDalek Dave29-Mar-10 9:59 
AnswerRe: OK Going Mad...VB.Net Mail Pin
nlarson1129-Mar-10 10:18
nlarson1129-Mar-10 10:18 
GeneralRe: OK Going Mad...VB.Net Mail Pin
Dalek Dave29-Mar-10 21:27
professionalDalek Dave29-Mar-10 21:27 
QuestionNew line to be added to a mail message [modified] Don't Worry, got it! Pin
Dalek Dave29-Mar-10 8:56
professionalDalek Dave29-Mar-10 8:56 
Problem Solved
All it took was to go and make a cup of tea!

Code so far...


Public Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim strName As String
        Dim strAddress As String
        Dim strMessage As String
        Dim strType As String
        Dim strSendTo As String
        Dim strSendFrom As String = "WebSite"
        Dim CompleteMessage As String

        strName = ContactName.Text()
        strAddress = ContactAddress.Text()
        strMessage = TextBox1.Text()
        strType = RadioButtonList1.SelectedValue

        Select Case strType
            Case "sales"
                strSendTo = "sales@ACME.co.uk"
            Case "contractors"
                strSendTo = "colin@ACME.co.uk"
            Case "general"
                strSendTo = "pat@ACME.co.uk"
            Case Else
                strSendTo = "enquiries@ACME.co.uk"
        End Select
        CompleteMessage = "Message From Website " "


I want the complete message to show the name of the sender, their address on the next line and the type on the third.
Then a two line gap for the message itself.

So, How do I add a Carriage Return to the message?

I have tried googling, but found unsatisfactory answers.
------------------------------------

I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
modified on Monday, March 29, 2010 3:02 PM

AnswerRe: New line to be added to a mail message [modified] Don't Worry, got it! Pin
nlarson1129-Mar-10 10:23
nlarson1129-Mar-10 10:23 
QuestionStatic Variables for Grade Counting Program [modified] - SOLVED Pin
Adam Wike29-Mar-10 4:39
Adam Wike29-Mar-10 4:39 
AnswerRe: Static Variables for Grade Counting Program Pin
Estys29-Mar-10 5:09
Estys29-Mar-10 5:09 
AnswerRe: Static Variables for Grade Counting Program Pin
Steven J Jowett29-Mar-10 6:12
Steven J Jowett29-Mar-10 6:12 
GeneralRe: Static Variables for Grade Counting Program Pin
Adam Wike30-Mar-10 4:17
Adam Wike30-Mar-10 4:17 
GeneralRe: Static Variables for Grade Counting Program Pin
Steven J Jowett30-Mar-10 4:35
Steven J Jowett30-Mar-10 4:35 
GeneralRe: Static Variables for Grade Counting Program Pin
Adam Wike30-Mar-10 4:51
Adam Wike30-Mar-10 4:51 
GeneralRe: Static Variables for Grade Counting Program Pin
Steven J Jowett30-Mar-10 5:56
Steven J Jowett30-Mar-10 5:56 
Questionscript to copy web page contents into text file Pin
220828-Mar-10 18:41
220828-Mar-10 18:41 
AnswerRe: script to copy web page contents into text file Pin
DaveAuld28-Mar-10 23:07
professionalDaveAuld28-Mar-10 23:07 
QuestionTwo checkbox in single column of datagridview Pin
C#Coudou28-Mar-10 13:44
C#Coudou28-Mar-10 13:44 
AnswerRe: Two checkbox in single column of datagridview Pin
Dave Kreskowiak28-Mar-10 14:22
mveDave Kreskowiak28-Mar-10 14:22 
Questioninstalling application [modified] .... resolved Pin
Daniel Engelkes28-Mar-10 12:55
Daniel Engelkes28-Mar-10 12:55 
AnswerRe: installing application Pin
Dalek Dave28-Mar-10 13:09
professionalDalek Dave28-Mar-10 13:09 
GeneralRe: installing application Pin
Daniel Engelkes28-Mar-10 13:24
Daniel Engelkes28-Mar-10 13:24 
GeneralRe: installing application Pin
Dalek Dave28-Mar-10 13:40
professionalDalek Dave28-Mar-10 13:40 
GeneralRe: installing application Pin
Daniel Engelkes28-Mar-10 14:31
Daniel Engelkes28-Mar-10 14:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.