Click here to Skip to main content
15,881,709 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
JokeRe: So... Is Visual Basic officially dead? Pin
FreedMalloc3-Jun-22 5:49
FreedMalloc3-Jun-22 5:49 
AnswerRe: So... Is Visual Basic officially dead? Pin
Choroid3-Jun-22 8:02
Choroid3-Jun-22 8:02 
AnswerRe: So... Is Visual Basic officially dead? Pin
pvmarshall3-Jun-22 7:59
pvmarshall3-Jun-22 7:59 
GeneralRe: So... Is Visual Basic officially dead? Pin
Sander Rossel3-Jun-22 22:04
professionalSander Rossel3-Jun-22 22:04 
GeneralRe: So... Is Visual Basic officially dead? Pin
pvmarshall4-Jun-22 19:40
pvmarshall4-Jun-22 19:40 
GeneralRe: So... Is Visual Basic officially dead? Pin
Sander Rossel5-Jun-22 3:07
professionalSander Rossel5-Jun-22 3:07 
AnswerRe: So... Is Visual Basic officially dead? Pin
Charlie Bill3-Jun-22 12:16
Charlie Bill3-Jun-22 12:16 
AnswerRe: So... Is Visual Basic officially dead? Pin
Brian L Hughes3-Jun-22 12:37
Brian L Hughes3-Jun-22 12:37 
Public Sub btnOK_Click(s as Object, e as EventArgs) handles btnOK.Click

End Sub

versus

btnOK.Click +=new eventhandler(btnOK_Click); // always miles away from the code, if you hand code it and accidentally make VS handle it for you in the GUI you can break your form until you fix it by hand in designer.cs

You can even declare this in VB

Public m_OK as Button WithEvents ' and the above vb code still works fine.

So I think in general VB.Net handles events much more elegant than C#. I've got a huge c# app that has only hand coded "+= new eventhandlers, none were established with the crazy c# GUI. I think it's just too much of a PITA to maintain the code base with the GUI because I have both GUI drag drop controls on forms and many, quite a few, of the embedded form controls where in VB I used to get to say "withevents" with ease. This app was originally written in VB.Net and it was a PITA to convert it! Most of my other c# apps use a combination of hand written events and GUI maintained ones.

I coded in VB for the Navy starting in 1995 up until 2017 and only after retiring did I start using C#.

I absolutely depend now on C# syntax being close to my old friend c && c++ which I have been using since 1987. VB requires so much typing...

Coding in Assembler was like running naked on a tropical island! We can only dream about such unbound less freedom.
GeneralRe: So... Is Visual Basic officially dead? Pin
Sander Rossel3-Jun-22 21:58
professionalSander Rossel3-Jun-22 21:58 
GeneralWSO CCC OTD 2021-06-02 Pin
OriginalGriff1-Jun-22 21:34
mveOriginalGriff1-Jun-22 21:34 
GeneralRe: WSO CCC OTD 2021-06-02 Pin
Peter_in_27801-Jun-22 21:48
professionalPeter_in_27801-Jun-22 21:48 
GeneralRe: WSO CCC OTD 2021-06-02 - we have a winner! Pin
OriginalGriff1-Jun-22 21:50
mveOriginalGriff1-Jun-22 21:50 
GeneralWordle 348 Pin
Amarnath S1-Jun-22 14:39
professionalAmarnath S1-Jun-22 14:39 
GeneralRe: Wordle 348 Pin
Peter_in_27801-Jun-22 17:13
professionalPeter_in_27801-Jun-22 17:13 
GeneralRe: Wordle 348 Pin
Vivi Chellappa1-Jun-22 18:03
professionalVivi Chellappa1-Jun-22 18:03 
GeneralRe: Wordle 348 Pin
OriginalGriff1-Jun-22 19:03
mveOriginalGriff1-Jun-22 19:03 
GeneralRe: Wordle 348 Pin
Sander Rossel1-Jun-22 19:56
professionalSander Rossel1-Jun-22 19:56 
GeneralRe: Wordle 348 Pin
pkfox1-Jun-22 20:25
professionalpkfox1-Jun-22 20:25 
GeneralRe: Wordle 348 Pin
0x01AA1-Jun-22 20:53
mve0x01AA1-Jun-22 20:53 
GeneralRe: Wordle 348 Pin
dan!sh 1-Jun-22 21:06
professional dan!sh 1-Jun-22 21:06 
GeneralRe: Wordle 348 Pin
ChandraRam1-Jun-22 23:39
ChandraRam1-Jun-22 23:39 
GeneralRe: Wordle 348 Pin
Greg Utas2-Jun-22 0:33
professionalGreg Utas2-Jun-22 0:33 
GeneralRe: Wordle 348 Pin
Cp-Coder2-Jun-22 4:17
Cp-Coder2-Jun-22 4:17 
GeneralWin10 is it your mouse or did computer crash? Pin
raddevus1-Jun-22 5:18
mvaraddevus1-Jun-22 5:18 
GeneralRe: Win10 is it your mouse or did computer crash? Pin
RedDk1-Jun-22 7:26
RedDk1-Jun-22 7:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.