MsgBox help?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sreekandan
    New Member
    • Nov 2006
    • 98

    MsgBox help?

    I want to show the data line by line inside the msgbox.For that, can i show the details in a new line?. If it is possible, Kindly reply me anyone.
  • vijaydiwakar
    Contributor
    • Feb 2007
    • 579

    #2
    Originally posted by sreekandan
    I want to show the data line by line inside the msgbox.For that, can i show the details in a new line?. If it is possible, Kindly reply me anyone.

    dear use this code
    msgbox "hai this is line 1" & vbcrlf & " This is line Two"

    and watch the result

    Comment

    • hariharanmca
      Top Contributor
      • Dec 2006
      • 1977

      #3
      Originally posted by vijaydiwakar
      dear use this code
      msgbox "hai this is line 1" & vbcrlf & " This is line Two"

      and watch the result
      we can also use

      msgbox "hai this is line 1" & vbcr & " This is line Two"

      Comment

      • sreekandan
        New Member
        • Nov 2006
        • 98

        #4
        Originally posted by hariharanmca
        we can also use

        msgbox "hai this is line 1" & vbcr & " This is line Two"
        ok
        thanks

        Comment

        • sreekandan
          New Member
          • Nov 2006
          • 98

          #5
          Originally posted by hariharanmca
          we can also use

          msgbox "hai this is line 1" & vbcr & " This is line Two"
          Then can I change the Font size and color inside the msgbox?

          Comment

          • vijaydiwakar
            Contributor
            • Feb 2007
            • 579

            #6
            Originally posted by sreekandan
            Then can I change the Font size and color inside the msgbox?
            No my dear

            Comment

            • sreekandan
              New Member
              • Nov 2006
              • 98

              #7
              Originally posted by vijaydiwakar
              No my dear
              ok
              thanks

              Comment

              • sreekandan
                New Member
                • Nov 2006
                • 98

                #8
                Originally posted by sreekandan
                ok
                thanks
                Now I have another one doubt.
                That is in the following code
                Code:
                If Text2.Text <> Format(Text2.Text, "MM/DD/YYYY") Then
                MsgBox "Date Should be the format of MM/DD/YYYY "
                But if I enter the characters inside the text then that charecters are inserted into the database.But i want to insert the proper Date Format.How can I avoid this?

                Comment

                • hariharanmca
                  Top Contributor
                  • Dec 2006
                  • 1977

                  #9
                  Originally posted by sreekandan
                  Now I have another one doubt.
                  That is in the following code
                  Code:
                  If Text2.Text <> Format(Text2.Text, "MM/DD/YYYY") Then
                  MsgBox "Date Should be the format of MM/DD/YYYY "
                  But if I enter the characters inside the text then that charecters are inserted into the database.But i want to insert the proper Date Format.How can I avoid this?

                  Use DateTime Picker to solve this

                  Comment

                  • sreekandan
                    New Member
                    • Nov 2006
                    • 98

                    #10
                    Originally posted by hariharanmca
                    Use DateTime Picker to solve this
                    ok
                    thanks

                    Comment

                    • sreekandan
                      New Member
                      • Nov 2006
                      • 98

                      #11
                      Originally posted by sreekandan
                      ok
                      thanks
                      But I want the codings for that

                      Comment

                      • hariharanmca
                        Top Contributor
                        • Dec 2006
                        • 1977

                        #12
                        Originally posted by sreekandan
                        But I want the codings for that
                        Use MS Windows Common Controls-2 6.0 (SP3) to get DTPicker in toolbox

                        then
                        to get date

                        DTPicker.Value or format(DTPicker .Value,"MM/dd/yyyy")

                        Comment

                        • sreekandan
                          New Member
                          • Nov 2006
                          • 98

                          #13
                          Originally posted by hariharanmca
                          Use MS Windows Common Controls-2 6.0 (SP3) to get DTPicker in toolbox

                          then
                          to get date

                          DTPicker.Value or format(DTPicker .Value,"MM/dd/yyyy")
                          ok
                          I got it.

                          Comment

                          • sreekandan
                            New Member
                            • Nov 2006
                            • 98

                            #14
                            Originally posted by hariharanmca
                            Use MS Windows Common Controls-2 6.0 (SP3) to get DTPicker in toolbox

                            then
                            to get date

                            DTPicker.Value or format(DTPicker .Value,"MM/dd/yyyy")
                            Then, May you explain me how to use DBGrid control?
                            With the examples plz?

                            Comment

                            Working...