Search:

Type: Posts; User: jfs2845

Search: Search took 0.07 seconds.

  1. Replies
    10
    Views
    2,028

    Re: Center a form onscreen in VB 2015

    BB, I tried your above, and it does not work. THEN I deleted Sub Main() entirely, and set Form1 as the startup object, and neither setting StartPosition in code or in the properties pane worked.
    ...
  2. Replies
    10
    Views
    2,028

    Re: Center a form onscreen in VB 2015

    None of your suggestions work. Whether you stick it in HandleCreated, or Resize, or Shown, it just gleefully ignores the property and starts it over on the left hand side of the screen. Whether it's...
  3. Replies
    10
    Views
    2,028

    Re: Center a form onscreen in VB 2015

    Nope. Size is not manipulated in Load(). Just tried this as well:



    Me.StartPosition = FormStartPosition.CenterScreen


    Attempts to directly position with Me.left and Me.Top do not work...
  4. Replies
    10
    Views
    2,028

    Center a form onscreen in VB 2015

    Having trouble getting my startup form to appear directly in the center of the screen. First I tried the obvious, setting the StartPosition property to CenterScreen in the properties pane, this works...
  5. Replies
    3
    Views
    2,378

    Re: mci SendString problems

    OptionBase1, I took your advice, built a whole new test app from scratch, got it to run, and very carefully ported over the relevant code to the main app. It all works now. There must have been some...
  6. Replies
    3
    Views
    2,378

    mci SendString problems

    After getting back to this project I have ignored for a few months, I have been trying to use mci SendString to play an mp3 file as background music. I declare the function in the usual manner, and...
  7. How to play a background audio track in VB2015?

    I am looking for a way to have a background music track playing in a game shell app. Using My.Computer.Audio.Play.resourcexxx works for individual sounds but of course cuts off anything already...
  8. Re: Form Keypress code fom VB6 conversion problem

    Thank you, I was trying to gather the wrong data type from KeyChar then. Got it working now.
  9. Form Keypress code fom VB6 conversion problem

    My old VB6 code has a little routine in which you can type in words which then cause new forms to pop up depending on what was typed. This was supposed to be a sort of "secret" feature, thus the...
  10. Replies
    3
    Views
    2,494

    Re: app.path for modern VB

    Thank you both. I'll try Application.Startuppath since I have to pass different parameters depending on, I'll see how it works.
  11. Replies
    3
    Views
    2,494

    app.path for modern VB

    This will seem like a silly question for VB.NET experts, but I have a question about getting the applications root path, once deployed. In VB6, you just used app.Path, and you were set. The nearest...
  12. Re: Changing some ancient VB code to VB.NET code

    Aaah, thanks guys. So, build my OWN array, and then index off the tag property. That works.
  13. Changing some ancient VB code to VB.NET code

    It's been a long time since I have done anything with Visual Basic at all, and while trying to resurrect some 15+ years old code I have hit a snag. I've got a simple control array that was meant to...
Results 1 to 13 of 13



Click Here to Expand Forum to Full Width