Results 1 to 3 of 3

Thread: [RESOLVED] MessageBox

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2009
    Posts
    1,058

    Resolved [RESOLVED] MessageBox

    Hi,

    I have the following code which works fine, however, I want to represent the message as;

    * All fields in this section are mandatory
    Please enter Project Description

    Please can someone update the code for me.. Thanks



    Code:
    Dim valid As Boolean = True
            Dim Message As String = String.Empty
    
            If txtProdesc.Text = "" Then
                MessageBox.Show("All fields in this section are mandatory, Please enter Project Description", "VeriSIS", MessageBoxButtons.OK)
                txtProdesc.Focus()
                Return
            End If
    
            If cmbProjtype.Text = "" Then
                MessageBox.Show("All fields in this section are mandatory, Please enter Project Type", "VeriSIS", MessageBoxButtons.OK)
                cmbProjtype.Focus()
                Return
            End If

  2. #2
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: MessageBox

    "All fields in this section are mandatory," & environment.newline & "Please enter Project Description"
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2009
    Posts
    1,058

    Re: MessageBox

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width