Page 23 of 24 FirstFirst ... 132021222324 LastLast
Results 881 to 920 of 939

Thread: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

  1. #881
    PowerPoster ChrisE's Avatar
    Join Date
    Jun 2017
    Location
    Frankfurt
    Posts
    3,048

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    what a selection szlamany
    I don't know what try try first !! yum ..yum

    what are you ? have Cook / have Programmer ?
    to hunt a species to extinction is not logical !
    since 2010 the number of Tigers are rising again in 2016 - 3900 were counted. with Baby Callas it's 3901, my wife and I had 2-3 months the privilege of raising a Baby Tiger.

  2. #882
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by ChrisE View Post
    what a selection szlamany
    I don't know what try try first !! yum ..yum

    what are you ? have Cook / have Programmer ?
    I always joke that I cook because it's something you can "complete", as opposed to software which we write and enhance and fix forever and ever and ever as long as someone is using it! During covid we binge watched like 17 seasons of Top Chef - I learned techniques for foods I will never ever eat, but tricks are tricks - that's when cooking becomes fun.
    ,

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  3. #883
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Who else likes taking pictures?
    Attached Images Attached Images  

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #884
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Runway anyone?
    Attached Images Attached Images  

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  5. #885
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Just hanging around!
    Attached Images Attached Images  

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  6. #886
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Perfect specimen!
    Attached Images Attached Images  

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  7. #887
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Mother Mary
    Attached Images Attached Images  

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  8. #888
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,251

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    A recent Cottage pie!
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  9. #889
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,251

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Sunday roast pork with cloves, a tadge overdone but still crunchy skin and succulent interior

    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  10. #890
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by yereverluvinuncleber View Post
    Sunday roast pork with cloves, a tadge overdone but still crunchy skin and succulent interior
    Props on that roast pork! One of my favorites!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  11. #891
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,251

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Five ribs of beef 12.5 lbs - a family occasion!

    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  12. #892
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,251

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Preparing spicy marinated pork on the barbeque - I love cooking outside in Winter.

    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  13. #893
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by yereverluvinuncleber View Post
    Five ribs of beef 12.5 lbs - a family occasion!
    Again - nice - really nice! Forget what you hear about cooking in the UK - this is done right!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  14. #894
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    btw - all my images were captured and processed with .Net - so there!


    .
    .
    .
    .


    sounds good - not true, lol!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  15. #895
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,251

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by szlamany View Post
    Again - nice - really nice! Forget what you hear about cooking in the UK - this is done right!
    British cooking has always been extremely good - except since the war up until the 1970s. After the war was over a starving UK had to feed Germany and as a result Britain only stopped rationing in 1954. During the war all artisan production of food was forcibly ended and all food products standardised to feed an almost starving nation. So, that was the end to all unique cheeses and artisan style food products and it affected our diet and pallette.

    With the loss of the upper classes (who always ate superbly) and the food that was left for the masses being mainly working class in origin, the food culture in the UK was "eat to live" rather than "live to eat" as it became in the US. We still have that mentality, ie. we like food but it is still mainly considered a fuel so we can do other things. The mindset is that we don't have to eat well, we just have to eat enough. It is now engrained in our culture. You'll see people going on holiday to eat well abroad then coming home and eating the same old crap.

    Despite that, British food is now some of the best in the world (see the number of British chefs on TV and the French chefs migrating to the UK) and of course the old country dishes (pies, roasts &c) just won't die, practically every house in the country eats a roast every Sunday.

    For the last 20-25 years we have been starting to love our food again and you can now eat really well here. Of course we've always had the best curries in the world! Except for India...
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  16. #896
    PowerPoster ChrisE's Avatar
    Join Date
    Jun 2017
    Location
    Frankfurt
    Posts
    3,048

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by szlamany View Post
    Who else likes taking pictures?
    I do, here some of the baby tiger( 6weeks old) with my wife and
    cat.
    she took bark of that Tree in 1 dayName:  tiger1.jpg
Views: 385
Size:  71.6 KB


    Name:  tiger2.jpg
Views: 385
Size:  72.0 KB
    to hunt a species to extinction is not logical !
    since 2010 the number of Tigers are rising again in 2016 - 3900 were counted. with Baby Callas it's 3901, my wife and I had 2-3 months the privilege of raising a Baby Tiger.

  17. #897
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,123

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Guys, how did you upload your images? Did you just use the "Insert Image"?
    Regards,

    â„¢

    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  18. #898
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    I first take a screen shot with "Snipping Tool" - this makes tiny jpgs - and use those under GO ADVANCED, MANAGE ATTACHMENTS, UPLOAD - and you can only do 1 image if you want it to be INLINE with the POST like this. I might be wrong about the 1 image after seeing the multi-pic post of those tigers!
    Attached Images Attached Images  
    Last edited by szlamany; Nov 12th, 2021 at 10:13 AM.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  19. #899
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,251

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by dee-u View Post
    Guys, how did you upload your images? Did you just use the "Insert Image"?
    No, go to imgur/upload, load an image. Wait until it renders, then hover the mouse on the image and a "copy link" option will appear, click on the three dots ... choose "get share links".

    Choose the option that suits your needs. I typically choose BBCode and paste that text straight into a post.

    I never trust the forum's image attachment method as it is untrustworthy.
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  20. #900
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,043

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    The other advantage of that last technique is that you have limited uploads on the site, which means that eventually you will either run out of room, or need to remove some.
    My usual boring signature: Nothing

  21. #901
    Fanatic Member Episcopal's Avatar
    Join Date
    Mar 2019
    Location
    Brazil
    Posts
    547

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Why is VB.Net/C#/XAML + VS2019 is better than VB6?

    It sure is....but why does VB.NET need XAML?

    By logical comparison it should be VB.NET/C#/XAML is better than VB6/XAML (here assuming there is a xaml for vb6).

    Sorry for my ignorance.

  22. #902
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by yereverluvinuncleber View Post
    No, go to imgur/upload, load an image. Wait until it renders, then hover the mouse on the image and a "copy link" option will appear, click on the three dots ... choose "get share links".

    Choose the option that suits your needs. I typically choose BBCode and paste that text straight into a post.

    I never trust the forum's image attachment method as it is untrustworthy.
    Thanks for that info!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  23. #903
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,906

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by Episcopal View Post
    Why is VB.Net/C#/XAML + VS2019 is better than VB6?

    It sure is....but why does VB.NET need XAML?

    By logical comparison it should be VB.NET/C#/XAML is better than VB6/XAML (here assuming there is a xaml for vb6).

    Sorry for my ignorance.
    What does your question has to do with cooking and/or food in general?

  24. #904
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,538

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by Episcopal View Post
    Why is VB.Net/C#/XAML + VS2019 is better than VB6?

    It sure is....but why does VB.NET need XAML?

    By logical comparison it should be VB.NET/C#/XAML is better than VB6/XAML (here assuming there is a xaml for vb6).

    Sorry for my ignorance.
    Found the guy who brought the cool-whip fruit salad!

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  25. #905
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,043

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by Episcopal View Post
    It sure is....but why does VB.NET need XAML?
    As far as I know, it does not. WPF needs XAML, but I don't believe XAML can even be used for programs that either A) Don't have a user interface, or 2) Are Windows Forms programs or iii) Are web applications of any sort.
    My usual boring signature: Nothing

  26. #906

    Thread Starter
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,600

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by Episcopal View Post
    Why is VB.Net/C#/XAML + VS2019 is better than VB6?

    It sure is....but why does VB.NET need XAML?

    By logical comparison it should be VB.NET/C#/XAML is better than VB6/XAML (here assuming there is a xaml for vb6).

    Sorry for my ignorance.
    Just like in VB6 where you have different project templates, for example ActiveX EXE, ActiveX DLL etc....Modern versions of Visual Studio also have different templates all backed by .Net. Some of these templates use some flavor of XAML for defining UIs. For example, Xamarin, UWP and WPF projects all use a different flavor of XAML for designing UIs.

    As for why VB.Net needs it......Well it doesn't. WinForms and Console projects don't use XAML. I'm guessing that XAML itself is inspired by HTML which allows you design user interfaces declaratively. There are a lot of advantages to designing a user interface declaratively as opposed to doing it by code like you would in WinForms or with Win32 CreateWindow calls.

    Interestingly enough, VB6 also uses a declarative syntax behind the scenes in Frm files for defining UIs. The only difference to XAML based projects in .Net is that it's not exposed through the IDE nor did Microsoft provide any tooling for directly using it for manipulating the UI. They probably should have though. Might be a fun little side project to write something like that.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  27. #907
    Fanatic Member Episcopal's Avatar
    Join Date
    Mar 2019
    Location
    Brazil
    Posts
    547

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by Niya View Post
    As for why VB.Net needs it......Well it doesn't. WinForms and Console projects don't use XAML.
    Niya... here's the move... Is pure VB.NET not enough to get into this post? VB6 is a type of winform, although vb6 can work with IIS and activex for web.

  28. #908
    Fanatic Member Episcopal's Avatar
    Join Date
    Mar 2019
    Location
    Brazil
    Posts
    547

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by Arnoutdv View Post
    What does your question has to do with cooking and/or food in general?
    It's true kkkkkk. What I lose? Too bad I'm on a diet ....

  29. #909

    Thread Starter
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,600

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by szlamany View Post
    Thanks for that info!
    I would add that you should probably create an account on one of these image sites. While some image hosts do allow you to post images without an account, they are prone to being deleted when the site decides to do some clean up. I don't think they would be so eager to delete images uploaded by registered users. I myself use Imgur.com. Very good site that's very easy to use. I highly recommend.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  30. #910

    Thread Starter
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,600

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by Episcopal View Post
    Niya... here's the move... Is pure VB.NET not enough to get into this post?
    When I think of VB6, I think of more than just the language. I think of the IDE, runtime, compiler and any libraries made for VB6 applications. A fair comparison to .Net needs to consider all the development tools in the .Net ecosystem which includes the VB.Net and C# languages, UI mark-up languages like XAML, IDEs like Visual Studio 2019 and libraries like .Net 5 or the .Net Framework. All of these together can cover all the ground VB6 can.

    Quote Originally Posted by Episcopal View Post
    VB6 is a type of winform
    Yes. The underlying technology is very different but it is almost exactly the same on the surface.

    Quote Originally Posted by Episcopal View Post
    although vb6 can work with IIS and activex for web.
    ActiveX is dead tech. No one should be using that anymore.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  31. #911
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,251

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Cheese!
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  32. #912
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,452

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by yereverluvinuncleber View Post
    Cheese!
    Ug! Well now I have to post this again:


  33. #913

    Thread Starter
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,600

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    I find British humor extremely appealing for some reason. Yes Minister was one of the funniest shows I have ever seen in my life to this day.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  34. #914

    Thread Starter
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,600

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by PlausiblyDamp View Post
    One reason it is better.... https://devblogs.microsoft.com/visua...now-available/ a new version is available
    Finally doing it. I just did a system reset because I needed to clean out a bunch of crap installed on my PC over the years. Decided to give to VS-2022 a try instead of going back to VS-2019. Installing it right now...
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  35. #915

    Thread Starter
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,600

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    While I have no real interest anymore in reviving this discussion, this one aroused my interest in comparing VB6 and .Net.

    Here is the problem. Guy wants to shuffle an array into a random order:-
    I search since 2 hours without success (found topics that not matching with what I want to do).

    I have a function that list files from folder and its subfolder and add each of them itoo an array.

    I need to shuffle items before list (shuffled) 30 items max.

    Limit to 30 will probably not a problem but shuffle items before that is a problem for me


    Is there something equivcalent to php shuffle() function ?

    Code:
    $my_array = array("red","green","blue","yellow","purple");
    shuffle($my_array);
    print_r($my_array);
    Thanks
    Couin
    What struck me was how verbose a lot of the suggestions are. I'll just post one example from the thread:-
    Code:
    Option Explicit
    
    Private Declare Function GetMem4 Lib "msvbvm60" (ByRef Source As Any, ByRef Dest As Any) As Long ' Always ignore the returned value, it's useless.
    
    
    Private Sub Form_Load()
        Dim sa() As String
    
        sa = Split("red|green|blue|yellow|purple", "|")
    
        StrArrShuffle sa
    
        Debug.Print Join(sa, "|")
    
        StrArrShuffle sa
    
        Debug.Print Join(sa, "|")
    
    End Sub
    
    Public Sub StrArrShuffle(sa() As String)
        Dim i As Long, j As Long, k As Long
        Randomize
        For i = LBound(sa) To UBound(sa)
            j = Int((UBound(sa) + 1) * Rnd)
            GetMem4 ByVal VarPtr(sa(i)), k
            GetMem4 ByVal VarPtr(sa(j)), ByVal VarPtr(sa(i))
            GetMem4 k, ByVal VarPtr(sa(j))
        Next
    End Sub
    In comparison, this is how it could be done in VB.Net:-
    Code:
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
            Dim r As New Random
            Dim s = {"red", "green", "blue", "yellow", "purple"}
    
            Debug.WriteLine(String.Join("|", s))
    
            s = (From num In Enumerable.Range(0, s.Length)
                 Order By r.Next
                 Select s(num)).ToArray
    
    
            Debug.WriteLine(String.Join("|", s))
        End Sub
    I'm not looking to start up all this drama again but I'd actually be curious to see if this could be done as concisely in VB6.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  36. #916
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,043

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    It can't, but it can certainly be written faster. LINQ is very concise, but it is not very efficient. That's a trade off that often doesn't matter. Still a trade off, though.
    My usual boring signature: Nothing

  37. #917
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,255

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by Niya View Post
    ...I'd actually be curious to see if this could be done as concisely in VB6.
    Code:
    Private Sub Form_Load()
      Dim a: Set a = New_c.ArrayList(vbString, "A", "B", "C", "D", "E")
      
      Debug.Print a.Join("|")
      
      Dim b: Set b = New_c.ArrayList(vbString)
      Dim v: For Each v In a: b.Add v, Rnd * b.Count: Next
      
      Debug.Print b.Join("|")
    End Sub
    Olaf

  38. #918

    Thread Starter
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,600

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by Shaggy Hiker View Post
    It can't, but it can certainly be written faster. LINQ is very concise, but it is not very efficient. That's a trade off that often doesn't matter. Still a trade off, though.
    Well, I don't think anyone should be using LINQ for performance. It should be used for it's convenience in places where high performance doesn't matter. However it's very easy to get seduced by it's elegance and flexibility which can lead one to use it everywhere, including places where it shouldn't be used. I used to be guilty of this when I started using it.

    Quote Originally Posted by Schmidt View Post
    Code:
    Private Sub Form_Load()
      Dim a: Set a = New_c.ArrayList(vbString, "A", "B", "C", "D", "E")
      
      Debug.Print a.Join("|")
      
      Dim b: Set b = New_c.ArrayList(vbString)
      Dim v: For Each v In a: b.Add v, Rnd * b.Count: Next
      
      Debug.Print b.Join("|")
    End Sub
    Olaf
    Ah ok. That's pretty concise. I really wish I'd known about RC5/6 back when I was in VB6. It would have been a whole lot less painful solving simple problems like this.

    I find the behavior of your ArrayList interesting though. It seems you can add elements to it at any index without knowing or setting the size of the ArrayList which quite handy but also quite odd. I can't find any precedent for this behavior. Did you come up with that on your own or is there some "prior art" upon which that behavior is based? Perhaps some collection class in a JavaScript or Python library somewhere?
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  39. #919
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,255

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by Niya View Post
    I find the behavior of your ArrayList interesting though.
    It seems you can add elements to it at any index without knowing or setting the size of the ArrayList...
    Not exactly "without knowing the size",
    because the second param of the Add-method does respect "the current ListCount".

    Quote Originally Posted by Niya View Post
    Did you come up with that on your own or is there some "prior art" upon which that behavior is based?
    Perhaps some collection class...
    Yes, the VB6/VBA-Collection has similar support in its Add-method -
    but prior to the introduction of the VB-Collection-object into the VB-runtime,
    such an optional second param was present also on a "Visual-Control" (VB.ListBox):

    The following code produces the same "shuffled output-sequence" of A,E,D,C,B as the RC.cArrayList-example:
    Code:
    Private Sub Form_Load()
      Dim lb As VB.ListBox, v
      Set lb= Controls.Add("VB.ListBox", "lb")
          lb.Visible = True: lb.Height = ScaleHeight
     
      For Each v In Array("A", "B", "C", "D", "E")
        lb.AddItem v, Rnd * lb.ListCount
      Next
    End Sub
    HTH

    Olaf

  40. #920
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,163

    Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Quote Originally Posted by Niya View Post
    In comparison, this is how it could be done in VB.Net: <<big snip>>
    Btw, the VB6 sample code does *not* even copy strings because it swaps pointers which is an optimization of the straight-forward VB6 solution.

    I mean you could have tried to show some optimized attempt and wrap it in a reusable function (the VB6 code shuffles twice BTW). Doubt any optimization would have been shorter in VB.Net

    How do you swap strings without copying their content? Is it possible in .Net at all? This next episode of the saga might turn into a *big* counter-example IMO :-))

    cheers,
    </wqw>

Page 23 of 24 FirstFirst ... 132021222324 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