Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Mohammad Hamdy Ghanem
    @VBAndCs
    So, it seems there is no way to write a generic code to handle both.
    The last fall back is to use late binding, but it doesn't work for events! Why?
    I made sure to turn off vb options but nothing changes.
    CyrusNajmabadi
    @CyrusNajmabadi
    what's an 'ecents'?
    Mohammad Hamdy Ghanem
    @VBAndCs
    events
    CyrusNajmabadi
    @CyrusNajmabadi
    ah
    Mohammad Hamdy Ghanem
    @VBAndCs
    :)
    CyrusNajmabadi
    @CyrusNajmabadi
    not sure. does the VB spec allow for late bound events?
    Mohammad Hamdy Ghanem
    @VBAndCs
    I have no idea
    CyrusNajmabadi
    @CyrusNajmabadi
    might be by design. i've never tried late bound events
    Mohammad Hamdy Ghanem
    @VBAndCs
    I solved the issue as it is related to MouseDoubleClick (in my code) and rest of events works fine with frameworkElement , so I used MouseLeftDown instead and checked for e.ClickCount
    But still strange not to have late binding with events in Addhandler statement
    John Moreno
    @jrmoreno1
    What does your addhandler code look like. You should be casting to the right type and then doing it
    Jeff Bowman
    @InteXX
    Weren't you working on a port of Microsoft.VisualBasic to .NET Standard? I've been looking here, but I haven't found anything yet. | @DualBrain
    Cory Smith
    @DualBrain
    @InteXX Yes... you can find it at https://github.com/DualBrain/Community.VisualBasic
    Jeff Bowman
    @InteXX
    Perfect, thank you very much. It looks pretty good... you obviously have done a lot of work on it. | @DualBrain
    Cory Smith
    @DualBrain
    @InteXX If you find anything that doesn't work (or is lacking), please let me know.
    pjbdigitalservices
    @pjbdigitalservices
    @DualBrain Thank you so much for everything you do to support the VB Community. I have been a long time reader of this thread but not contributed before. I code in VB every day. Mostly VB.Net but also VBA and VBScript. When I want to get stuff done - fast - I always turn to VB. It worries me that one day MS will pull the plug and many years of custom solutions will become obsolete but until then I am very happy in VB. I have looked at alternative languages - C++, Go, Python, Javascript, Typescript (which I like), C#, but none of them feel as nice as VB. Maybe it is just that I am (and always have been) a VB guy so some of their (language design) ideas feel a little strange.
    Cory Smith
    @DualBrain
    @pjbdigitalservices Thanks! As for any worries about the future of VB... I have great confidence that Microsoft isn't going to outright abandon VB; I also expect that improvements will still take place. On the other hand, even if such a thing were to occur... it being open-source using the MIT license, I'm not too worried. πŸ˜‰With that out of the way, the evidence is strong that Microsoft is truly continuing to support (and invest heavily) in VB; the reality is that they aren't going to do "everything" "everyone" wants, so many people are upset that what they want Microsoft to focus on (re: VB and other technologies) isn't what Microsoft feels they should focus on. For example, right now that major focus re: VB is on Windows Forms. A ton of work is taking place there and I can't stress enough how much effort it is actually taking to bring VB over to .NET 5+ related to WinForms given that VB has many "enhancements" that other languages simply do not have. What will take place next? Who knows. On another hand, several things have taken place over the past 12 months as they relate to .NET (core) and/or Roslyn to fix issues related to "just VB" and interop with other languages. The evidence is clear that the support and desire to further VB is there from those on the Microsoft side. Now that that has been said, it is also important to remember that there is a general shift in the developer world that requires that we all transition "or die". What I mean by this is that we have to take ownership of some of what it is we want... thus some of the work I've (and several others have) been doing. 😊
    Cristian FRC
    @cristianlt23
    @DualBrain
    your words about the future of VB are like music to me!
    You are my hero
    Hello guys!
    Tomorrow is the last Sunday of the month, and guess what happens on that day? DISCLOSURE hahahaha
    Anyone would like to suggest something?
    Adam Speight
    @AdamSpeight2008
    Not how long I've programmed with BASIC, how have I only just learnt about Shadow being an valid modifier for Class ?
    Cory Smith
    @DualBrain
    @AdamSpeight2008 It constantly amazes me how I continue to discover things I never knew within the language. 😎To me it's kind of refreshing in some ways; in other ways, it makes you wonder "what else don't I know". πŸ€” On a semi-related note: This is one of the main reasons why, at this point, I tend to take a very cautious point of view on anything new/change as it seems like it is almost impossible to know the entire surface areas at this point. πŸ˜‰
    Mohammad Hamdy Ghanem
    @VBAndCs
    I never heard of it, nor need it. It is unlikely that I will need a base class A with an internal class Test and a child class B that inherits A, and has an internal class Test that shadows A.Test! This doesn't seem a practical design.
    Adam Speight
    @AdamSpeight2008
    @VBAndCs Me neither but the surprise the language allowed it. The modified Shadowson inherited members I can understand but the inner class that threw me. I don't think I've seen a example of the warning documented any where. Maybe i missed in the vb.net language reference?
    elmagekmosaad
    @elmagekmosaad
    hi
    i want help

    i got source code but send file with error bytes

    if file have 40 mb after sent is 237 mb

    if you can fix this
    https://anonfiles.com/Vcwbi6M0u5/File_Transfer_update_zip

    Cory Smith
    @DualBrain
    Do you have this code in a repo (https://github.com) or possibly as a gist (https://gist.github.com)?