Is it better to use virtual or public forms in vb.net? What are the benefits of each?
I notice when you import a vb6 project, the forms come in as a friend, but when you add a new form to vb.net, it is publicly available. I did not see any difference in how they work, so I have to miss something.
VB6 did not support exporting forms from the class library. The natural mapping for the converted code is Friend. However, VB.NET has no such problems. Using Public is fine, assuming any public types in the public method arguments are also Public. Easy to find, the compiler will tell you.
-, Friend (aka internal #), . private , , VB . , / , . , - (, ..).
Friend
internal
, , . . InternalsVisibleToAttribute.
Public, (.exe). Friend, . VB.NET.
Public
Winforms, , , . , , .
, Microsoft, , "", , Visual Studio ( ) Public, .NET . .
Source: https://habr.com/ru/post/1729027/More articles:SQL Server query: SELECT 1 WHERE EXISTS and SELECT TOP 1 1 - sqlRails find - the order of presence of the Paperclip application, and then the datetime creation record - ruby-on-railsImplementing an "excellent" choice in an existing query - sqlIn Access97 SQL, how do I return a row of rows? - sqlBacklighting - openglThe Android calendar application is not visible in the emulator. - androidReverse engineering to get answers - reverse-engineeringhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1729030/passing-arrays-vs-structures-to-functions&usg=ALkJrhiM6E7rQgZJ3glwA-PcB5Atx6-dyAНеподтвержденное исключение Java - javaКак изящно писать SQL ORDER BY (что недопустимо во встроенном запросе), но необходимо для агрегации GROUP BY? - sql-serverAll Articles