CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,900

    Post VB6 and Windows 8

    Apparently VB6 will continue to work under Windows 8
    I presume our screens will just look like normal VB6 screens.
    It would be nice to be able to Metro Style a VB6 application, (without rewriting it from scratch)
    Or at least make the application look a little more modern.
    (Even apps written in VS2008 and below are starting to suffer from an old technology look)
    Has anyone got any ideas on how this may be done ?
    Has anyone tried VB6 on W8 ?

    Clearly one could just dump all their VB6 code and rewrite the application in VS2012 and HTML5. All I would need is a couple of years

    This almost feels like the time we all migrated from 80col x 24line screens to Windows GUI - I note with interest a few excellent tools were developed which gave the impression that the system was a Windows System by simply creating a new presentation manager which took your existing program and making it look GUI.

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: VB6 and Windows 8

    I've been meaning to try it out but as of yet have not downloaded windows 8.

    I did see that VS2012 RC was available the last time I visited the site. Still do not know when the release version of either software will be available. I have received the SQL Server 2012 DVD though.
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: VB6 and Windows 8

    This is the Support statement for VB 6 on Windows 8 :

    http://msdn.microsoft.com/en-us/vstudio/ms788708.aspx

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: VB6 and Windows 8

    If you're talking about the new METRO STYLE APPS, then VB6 will never be able to do that. You will be able to DEPLOY an application installer, and it will run on the DESKTOP side. A VS2010 program can create a TILE, and point it to your EXE, in FULL-SCREEN mode. It will switch to DESKTOP automatically.

    Although Microsoft announced that HYPER-V would be in Windows 8, which means you can run XP MODE, and VB6 Development IDE. I installed Win8 RC on my old laptop, with a 64MB SSD. After installing Win8 AND VS2012, I still have about 28M FREE. Dual-Core Intel w/4gb of RAM. It runs GREAT! Better than Vista or Win7 on the same laptop, since 2008!
    Last edited by dglienna; June 18th, 2012 at 12:48 PM.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Dec 2001
    Posts
    6,332

    Re: VB6 and Windows 8

    Interesting. Went looking for some screenshots of W8, and found this:
    http://techland.time.com/2011/09/13/...otos-and-more/
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  6. #6
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,900

    Re: VB6 and Windows 8

    I guess I was hoping for some sort of "skin" which would allow one to "pretend" to be a Metro App (while still being VB6)

  7. #7
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,900

    Re: VB6 and Windows 8

    I looked at the 50 screen shots. Lots of nice photos and pictures - No real applications viewing
    And everytime you see mention of W8 they show the colourful desktop (same picture everytime it seems)
    I presume MS Office will look the same as MS Office under W7 ?

  8. #8
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: VB6 and Windows 8

    Hard to tell before they release a preview... Just ran my Inno Setup app (from '08) on Win8 x64. It installed successfully, asked me if I wanted to enable 16-bit support, and installed all the controls successfully. It ran, and read the hard disk serial number, enabling ACTIVATION! Pretty psyched about it! Hyper-V is also in the Azure Cloud, so...
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  9. #9
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: VB6 and Windows 8

    Decided to install on Windows 8 x32. Might have to re-code a few pieces to utilize Azure Blog Storage instead of a flat file. Login to the VHD (of Win7) will query the cloud to get the correct files downloaded BEFORE the app starts. Then, spin up a few instances, rather than sell the app!
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  10. #10
    Join Date
    Jun 2014
    Posts
    6

    Re: VB6 and Windows 8

    You can make programs in VB6 with the METRO look, although they will only run in desktop mode. See a screenshot at http://machinist-calculator.com/Screenshot.html.
    Forms are borderless, you can use picture as form background.
    Buttons are replaced by picture boxes. Instead of
    private sub command1_click()...
    use
    private sub picture1_click()...

    Buttons can also be replaced by labels which can change with a mouse click and call a function. For instance, the ? button at the top:
    'Top Ribbon "?"
    Private Sub lblQuestion_MouseDown(button As Integer, shift As Integer, X As Single, Y As Single)
    lblQuestion.ForeColor = RGB(255, 255, 255)
    End Sub

    Private Sub lblQuestion_MouseUp(button As Integer, shift As Integer, X As Single, Y As Single)
    lblQuestion.ForeColor = RGB(0, 0, 0)
    HelpSub 'calls the Help file
    End Sub

    This way I was able to modernise the look of my legacy programs.

  11. #11
    Join Date
    Jun 2014
    Posts
    6

    Re: VB6 and Windows 8

    I forgot to mention:
    Form's border is replaced by lines.
    Top ribbon is a label which can be used like the XP style border top ribbon to drag the form around the desktop. I made my top ribbon the same colour as the form background, but you can make it a different colour if you like. Here's the code to make the form able to be dragged:
    First designate:
    Dim xm As Integer
    Dim ym As Integer
    Then
    Private Sub lbltitle_MouseDown(button As Integer, shift As Integer, X As Single, Y As Single)
    xm = X
    ym = Y
    End Sub

    Private Sub lbltitle_MouseMove(button As Integer, shift As Integer, X As Single, Y As Single)
    If button = 1 Then
    Me.Left = Me.Left + X - xm
    Me.Top = Me.Top + Y - ym
    End If
    End Sub

  12. #12
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: VB6 and Windows 8

    That doesn't look like any VB6 IDE Code. Maybe a plug-in?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  13. #13
    Join Date
    Jun 2014
    Posts
    6

    Talking Re: VB6 and Windows 8

    Quote Originally Posted by dglienna View Post
    That doesn't look like any VB6 IDE Code. Maybe a plug-in?
    Pure VB6 code.http://forums.codeguru.com/images/icons/icon10.png

    Test it by making a new program with just one form with only one control "lblTitle"
    Enter only the code in my post.
    Run it and drag the form by the label.

  14. #14
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: VB6 and Windows 8

    Why not post some of the CNC code?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  15. #15
    Join Date
    Jun 2014
    Posts
    6

    Re: VB6 and Windows 8

    Quote Originally Posted by dglienna View Post
    Why not post some of the CNC code?
    CNC code? What do you mean?
    CNC code to me means programs that make Computer Numerical Control machines run.

Page 1 of 2 12 LastLast

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

Featured