Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

message box In Visual Basic 6.0

malavshah11malavshah11 Member Posts: 14
hi


can any body give me the code for changing the default position of a messagebox


that is i want to positon the message box to the lower right of the form

thanks in advance

bye

Comments

  • DarQDarQ Member Posts: 1,625
    create your own msgbox instead! USe a form and remake it,



    cre: hi
    :
    :
    : can any body give me the code for changing the default position of a messagebox
    :
    :
    : that is i want to positon the message box to the lower right of the form
    :
    : thanks in advance
    :
    : bye
    :

    [HR]
    Gadver, ik wot ha'k hjir no wr?
    [HR]

    [GREEN]Anyone cares to translate?[/GREEN]

  • nimnul2nimnul2 Member Posts: 131
    You have two options here:

    1). Make your own message-box(easy way)
    2). Use the SetWindowPos() API function with the handle to your message-box and place it on the screen wherever you'd like(advanced way)

    I, personally, prefer the second because it's not so hard to do. But everything depends on your programming level. If you can use APIs without any problem then use them because they're faster and more effective; if you can't use them use VB only but your code will be slow, not always, of course.

    Have a good day, man :-)
  • Shawn CarterShawn Carter Member Posts: 0

    ______ // http://forcoder.org // free ebooks and video tutorials about \ Delphi, MATLAB, Python, Java, Objective-C, Swift, C#, Visual Basic, C, R, Ruby, C++, PHP, PL/SQL, Scratch, Go, Visual Basic .NET, JavaScript, Assembly, Perl ABAP, Hack, F#, Crystal, Rust, Lua, LabVIEW, Alice, Bash, Logo, Erlang, FoxPro, Scheme, Ada, Lisp, VBScript, ML, Scala, Fortran, Clojure, Julia, Kotlin, D, Awk, Apex, SAS, Dart, COBOL, Prolog, Transact-SQL \ ______

Sign In or Register to comment.