monitor file activity
+ Reply to Thread
Results 1 to 4 of 4

Thread: visual bascs mesage boxes

  1. #1
    Join Date
    Jul 2007
    Posts
    79

    Question visual bascs mesage boxes

    ok so i have googled this issues but i am looking for someone to help me better understand it.

    i got bored and started making an extremely simple VB code but i ran into a problem i thought as a joke it would be funny to make the same message box appear 7 times in a row but it they all pop up in the same spot which takes all the annoyance and fun out of the joke so can anyone tell me how i can make a simple ok box pop up in different places on the screen???

    And also why isn't the first msgboxes with dont deny the truth poping up when i try and cancel the box if i click ok or cancel all that shows up is i knew it was true why does this happen??

    Code:
    strName = InputBox ("ENTER YOUR NAME BELOW")
    msgbox strName &(" sucks big floppy donkey balls!!!")
    if strName=VBcancel  then 
    msgbox("don't deny the truth!") 
    msgbox("don't deny the truth!") 
    msgbox("don't deny the truth!")
    msgbox("don't deny the truth!")
    msgbox("don't deny the truth!")
    msgbox("don't deny the truth!")
    msgbox("don't deny the truth!")
    else
    msgbox("i knew it was true")
    msgbox("i knew it was true")
    msgbox("i knew it was true")
    msgbox("i knew it was true")
    msgbox("i knew it was true")
    msgbox("i knew it was true")
    msgbox("i knew it was true")
    end if


    I FIGHT FOR THE ONES WHO CAN'T FIGHT AND IF I LOOSE THEN ATLEST I TRIED

  2. #2
    Join Date
    Sep 2006
    Posts
    1,651
    After Googling it up, it seems a little complex. VB by default doesn't contain a simple method for positioning text boxes. [url=http://support.microsoft.com/kb/*80**6]This Microsoft Help and Support article[/url] seems to have the answer, but you have to use the Windows API.
    "Workers of the world unite; you have nothing to lose but your chains." -Karl Marx

  3. #3
    Join Date
    Jul 2007
    Posts
    79
    yea i looked at that article but just like you said its complex i knmow i could do it but i don't want to spend the time doing it that way just for a joke now if im making and application it would be worth it im sure...

    im wondering if their is a fault in Vb that if you code it right will accidentally reposition boxes???


    I FIGHT FOR THE ONES WHO CAN'T FIGHT AND IF I LOOSE THEN ATLEST I TRIED

  4. #4
    Join Date
    Jul 2007
    Posts
    79
    that sounds like a good idea daniel


    I FIGHT FOR THE ONES WHO CAN'T FIGHT AND IF I LOOSE THEN ATLEST I TRIED

+ Reply to Thread

Similar Threads

  1. Microsoft Visual C++ Tutorial...
    By svr2112 in forum Tutorials
    Replies: 1
    Last Post: 10-17-2010, 03:59 AM
  2. help with visual basic 6
    By ferdelgadillo13 in forum Programming
    Replies: 3
    Last Post: 07-16-2007, 10:17 AM
  3. Visual studio
    By Sintacks in forum Internet Privacy
    Replies: 2
    Last Post: 07-23-2006, 01:10 AM
  4. Visual Basic 6.0
    By Elmo<3Rissa in forum Internet Privacy
    Replies: 6
    Last Post: 05-09-2006, 01:53 PM
  5. Visual basic
    By Unregistered in forum Internet Privacy
    Replies: 1
    Last Post: 08-05-2005, 07:22 AM

Posting Permissions

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