Results 1 to 6 of 6

Thread: Pop up message

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    XP & Vista
    Posts
    181

    Resolved Pop up message

    Hi!

    Guys, i need to pop up a message like (bitdefender) right corner of the window. How to do in vb6?
    Last edited by kpmsivachand; Jun 8th, 2009 at 09:21 PM. Reason: Resolved

  2. #2
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: Pop up message

    MsgBox "bitdefender", , "Message"
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  3. #3
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    Re: Pop up message

    Ahhh...

    ThEiMp, that will put a msgbox in the center of the screen and not in the right corner of the window as the OP asked...

    kpmsivachand, okay, new standard exe project>add command button>add code...
    Code:
    Option Explicit
    
    Private Sub Form_Load()
    Me.Left = 0
    Me.Top = 0
    End Sub
    
    Private Sub Command1_Click()
    Load Form2
    Form2.QuarterSizeMessage Me, "this is a test"
    Form2.Show vbModal, Me
    End Sub
    Now add another form (Form2) and on it add a label (label1)>add code...
    Code:
    Option Explicit
    
    Public Sub QuarterSizeMessage(WhoCalled As Form, TheMessage As String)
    Me.Width = (WhoCalled.Width * 0.25)
    Me.Height = (WhoCalled.Height * 0.25)
    Me.Left = (WhoCalled.Left + WhoCalled.Width) - Me.Width
    Me.Top = (WhoCalled.Top)
    Label1.Left = 0
    Label1.Top = 0
    Label1.Height = Me.Height
    Label1.Width = Me.Width
    Label1.Caption = TheMessage
    End Sub
    Run>click>see

    Good Luck
    Option Explicit should not be an Option!

  4. #4
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: Pop up message

    I was letting the owner of thread choose where to place the msgbox. If he wished so.
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  5. #5
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    Re: Pop up message

    How? You show no code for subclassing the standard vb msgbox for placing it in a specific position...
    Option Explicit should not be an Option!

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    XP & Vista
    Posts
    181

    Resolved Re: Pop up message

    Hi first of al thanks for your post...

    vb5prgrmr [Credit+ ] code works, Actually i need to show the form right corner and bottom of the window(vb5prgrmr did right corner and top of the window). Any how i make it now....

    ThEiMp dude, actualy "bitdefender anti virus" will pop up a msg right corner and bottom of the client area, i need to show a form like that... Sorry for i didnt make it clear in first post....


    Ok dude i did... Thanks for your support....

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