How to Add Spaces and Lines in Message Box?

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Cjpa
    replied
    vbCrLf

    Code:
    Msgbox("You had Enough Attempt of Login" & vbCrLf & "You have Tried 3 Unsuccessful Logins" & vbCrLf & "System Terminating")

    Leave a comment:


  • Killer42
    replied
    Sorry for the delay.

    I think you'll get a better response to this question in the Visual Basic .NET forum. This one is for the older pre-dotnet versions of VB.

    Leave a comment:


  • lohenboy
    replied
    acctually the error is

    A first chance exception of type 'System.Invalid CastException' occurred in Microsoft.Visua lBasic.dll

    Leave a comment:


  • lohenboy
    replied
    whassup guys i dn knw how to do line space in msgbox
    which is
    Dim year
    Dim loan
    Dim rate = 0.037
    Dim install


    loan = CDbl(txtb1.Text )
    year = CDbl(txtb2.Text )

    install = ((loan + (loan * rate)) / (year * 12))

    MsgBox("Loan :" & loan, "year :" & year, "installmen t :" &install.msg box = FormatCurrency( install, 2))


    got error but whwn a time do nt have any error
    can you guys help me to do this programming ?

    Leave a comment:


  • Killer42
    replied
    Originally posted by debasisdas
    No it is displayed instantly .

    The thread is here.
    That link doesn't work.

    Leave a comment:


  • debasisdas
    replied
    Originally posted by Hiren Joshi
    Ok I got the Idea,

    Thanks Debasis, Veena

    I cant see my other post of Auto Generating the Custom No. While Saving Record? I have posted with the codes I have used. Does it normally take long to Appear in the Forum?

    Hiren
    No it is displayed instantly .

    The thread is here.

    Leave a comment:


  • Hiren Joshi
    replied
    Ok I got the Idea,

    Thanks Debasis, Veena

    I cant see my other post of Auto Generating the Custom No. While Saving Record? I have posted with the codes I have used. Does it normally take long to Appear in the Forum?

    Hiren

    Leave a comment:


  • debasisdas
    replied
    You can design your own usercontrol or refer to the previous post by Qveen72 for an easier solution.

    Leave a comment:


  • Hiren Joshi
    replied
    Thanks Once Again Debasis,

    Any Hint on Creating Own Component?

    Leave a comment:


  • QVeen72
    replied
    Hi,

    You can Create a Custom Message Box of ur own. Add A new Form and Show it Modally, Add any number of buttons/ Place a Label Control to display the message, and Play with other Visual Properties like Fore Colour/ Back Color/ Font/ ICon/ Background Picture...

    frmMsg.Show 1

    Declare a Form Level Public Variable in (frmMsg) , and In ButtonClick, Populate the Variable with Appropriate Values, And check the Value of this Variable in Calling Form..


    REgards
    Veena

    Leave a comment:


  • debasisdas
    replied
    Originally posted by Hiren Joshi
    Any Advance Function for Message Box? Like Changing the Font, Size and Colour? or Aligning the Font in Center?
    All those are not supported . You can design your own component for that or can use any third party tool.

    Leave a comment:


  • Hiren Joshi
    replied
    Any Advance Function for Message Box? Like Changing the Font, Size and Colour? or Aligning the Font in Center?

    Leave a comment:


  • Killer42
    replied
    I recommend using vbNewLine, simply because its purpose is so much more obvious. It has the exact same value as vbCRLF.

    Leave a comment:


  • werks
    replied
    We are happy to help you

    --
    Kenneth
    "Better Than Yesterday"

    Leave a comment:


  • Hiren Joshi
    replied
    Thanks Debasis, Thanks Werks...

    It was helful information for me... I might post couple of posts tomorrow ...

    Thanks 2 Both of you once again......

    Hiren

    Leave a comment:

Working...