locked
creating my own messagebox RRS feed

  • Question

  • User364589146 posted

    Hi all

    I’m working on a website created in vs.net

    I need to show a messagebox with a design I created. I proceeded as following:

    Imports NewMsgBoxAsp.Holool.Anwar.Web.Controls.UI<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>.....<o:p></o:p>Dim NBox As New MessageBox<o:p></o:p>.....<o:p></o:p>Public Sub Msgbox1(ByVal messagetext As String, ByVal title As String)<o:p></o:p>        NBox.TabIndex = 0<o:p></o:p>        NBox.MB_IDYes = "yesno1"<o:p></o:p>        NBox.MB_IDNo = "yesno2"<o:p></o:p>        NBox.MB_ButtonYesText = "Yes"<o:p></o:p>        NBox.MB_ButtonNoText = "No"<o:p></o:p>  NBox.MB_Top = 140<o:p></o:p>        NBox.MB_Left = 300<o:p></o:p>        NBox.MB_Width = 300<o:p></o:p>        NBox.MB_Height = 150<o:p></o:p>        NBox.MB_ButtonWidth = 60<o:p></o:p>        NBox.MB_Title = title<o:p></o:p>        NBox.MB_Message = message<o:p></o:p>        NBox.MB_MessageFontSize = 10<o:p></o:p>        NBox.MB_MessageFontColor = Drawing.Color.Navy<o:p></o:p>        NBox.MB_Image = "images/icon1.ico"<o:p></o:p>        ........(etc)            <o:p></o:p>

    End Sub

    <o:p></o:p> <o:p></o:p>

    Now when need to call this messagebox I simply do:

    Msgbox1(msg,title)<o:p></o:p><o:p></o:p>As it clear my problems are 1)What should I do to show this messagebox when needed a message 2) What should I do to make the program stop for confirmations from this messagebox<o:p></o:p><o:p> </o:p>

    Thank you for your help

     

    Wednesday, September 5, 2007 2:58 AM

Answers

  • User-2017008401 posted

    Hi Simon,

    Based on my understanding, you want to show a custom message box which can stop process until back from the message box. For this scenario, please refer to the demo in the following link.

    Custom Alert Demonstration
    http://slayeroffice.com/code/custom_alert/

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 7, 2007 1:17 AM

All replies

  • User-2017008401 posted

    Hi Simon,

    Based on my understanding, you want to show a custom message box which can stop process until back from the message box. For this scenario, please refer to the demo in the following link.

    Custom Alert Demonstration
    http://slayeroffice.com/code/custom_alert/

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 7, 2007 1:17 AM
  • User364589146 posted
    Yes this is exactly what I need to do <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>But still there is a little problem:<o:p></o:p>Could I have a similar code for these written all in VB ? ( because I’m still too week in coding with asp or java script languages [:$] )<o:p></o:p>

     

    Friday, September 28, 2007 9:48 AM