{"id":24990038,"url":"https://github.com/rubenhortas/vb_examples","last_synced_at":"2026-01-07T10:51:26.678Z","repository":{"id":38825294,"uuid":"277885784","full_name":"rubenhortas/vb_examples","owner":"rubenhortas","description":"Small examples of Visual Basic (VB.NET) code.","archived":false,"fork":false,"pushed_at":"2023-02-16T23:03:12.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T13:04:19.982Z","etag":null,"topics":["examples","samples","snippets","vb","vbnet","visual-basic-net"],"latest_commit_sha":null,"homepage":"","language":"Visual Basic .NET","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubenhortas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-07T17:52:08.000Z","updated_at":"2024-10-25T21:51:38.000Z","dependencies_parsed_at":"2023-01-29T01:00:55.670Z","dependency_job_id":null,"html_url":"https://github.com/rubenhortas/vb_examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenhortas%2Fvb_examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenhortas%2Fvb_examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenhortas%2Fvb_examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenhortas%2Fvb_examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubenhortas","download_url":"https://codeload.github.com/rubenhortas/vb_examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246180922,"owners_count":20736460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["examples","samples","snippets","vb","vbnet","visual-basic-net"],"created_at":"2025-02-04T13:04:29.437Z","updated_at":"2026-01-07T10:51:21.659Z","avatar_url":"https://github.com/rubenhortas.png","language":"Visual Basic .NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vb examples\nSmall examples of Visual Basic (VB.NET) code\n\n## VB naming conventions\n\n### General Rules\n\n* Begin each separate word in a name with a capital letter: **WriteExample**\n* When you name an element in your Visual Basic application, the first character of that name must be an alphabetic character or an underscore. \n* An element name must only contain alphabetic characters, decimal digits, and underscores.  \n* An element name must contain at least one alphabetic character or decimal digit if it begins with an underscore.\n* An element name must not be more than 1023 characters long.\n* If an event has a concept of \"before\" or \"after,\" use a suffix in present or past tense: **ControlAdd** or **ControlAdded**\n* For long or frequently used terms, use abbreviations to keep name lengths reasonable.\n* Variable names greater than 32 characters are difficult to read on a monitor set to a low resolution.\n* Make sure your abbreviations are consistent throughout the entire application.\n* Avoid using names in an inner scope that are the same as names in an outer scope. If a conflict occurs between a variable and the keyword of the same name, you must identify the keyword by preceding it with the appropriate type library. For example, if you have a variable called *Date*, you can use the intrinsic *Date* function only by calling *DateTime.Date*.\n* Do not use \"My\" or \"my\" as part of a variable name\n\n| Element         | Notation                    | Example                  | Notes                                                                                  |\n|-----------------|-----------------------------|--------------------------|----------------------------------------------------------------------------------------|\n| Class           | PascalCase (UpperCamelCase) | ClassName                | Begin with a noun. In names of event argument classes, include the \"EventArgs\" suffix. |\n| Constant        | camelCase (lowerCamelCase)  | constName                |                                                                                        |\n| Event handler   | PascalCase (UpperCamelCase) | MouseEventHandler        | Begin names with a noun describing the type of event followed by the \"Handler\" suffix. |\n| Function/Method | PascalCase (UpperCamelCase) | RunFunction              | Begin function and method names with a verb.                                           |\n| Interface       | PascalCase (UpperCamelCase) | IComponent, IPersistable | Begin interface names with the prefix \"I\", followed by a noun or a noun phrase, or with an adjective describing the interface's behavior. Do not use the underscore, and use abbreviations sparingly because abbreviations can cause confusion. |\n| Module          | PascalCase (UpperCamelCase) | ModuleName               | Begin with a noun.                                                                     |\n| Property        | PascalCase (UpperCamelCase) | PropertyName()           | Begin with a noun.                                                                     |\n| Structure       | PascalCase (UpperCamelCase) | StructureName            | Begin with a noun.                                                                     |\n| Variable        | camelCase (lowerCamelCase)  | variableName             |                                                                                        |\n\n\n### Comment conventions\n\n* Put comments on a separate line instead of at the end of a line of code.  \n* Start comment text with an uppercase letter, and end comment text with a period.  \n* Insert one space between the comment delimiter (') and the comment text.  \n\n```vbnet\n' Here is a comment.\n```\n\n## Sources\n\n* [Microsoft docs: Visual Basic Naming conventions](https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/program-structure/naming-conventions)\n* [Microsoft docs: Visual Basic Coding conventions](https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/program-structure/coding-conventions)\n* [Microsoft docs: Declaring constants](https://docs.microsoft.com/en-us/office/vba/language/concepts/getting-started/declaring-constants)\n* [Microsoft docs: Declaring variables](https://docs.microsoft.com/en-us/office/vba/language/concepts/getting-started/declaring-variables)\n\n## Support\nIf you find these examples useful you can star this repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenhortas%2Fvb_examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubenhortas%2Fvb_examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenhortas%2Fvb_examples/lists"}