This sample demonstrates how to use Visual Basic to write grain code. The sample consists of three projects: HelloWorldInterfaces: a C# project containing a grain interface,IHelloGrain. Grains: an Visual Basic projects implementingIHelloGrain. ...
This code will create a Workbook_Open event procedure. When creating an event procedure, you should use the CreateEventProc method so that the correct procedure declaration and parameter list is used. This code will create the declaration line and the end of procedure line. It returns the line...
Browse code This sample demonstrates a simple memory game where you try to match tiles in the fewest amount of moves possible. This sample was migrated from the .NET Framework version.PrerequisitesVisual Studio 2019 version 16.8 Enable the Visual Studio Desktop workload. Enable the .NET 5 ...
calculator named SimpleCalculator. The goal of SimpleCalculator is to create a console application that accepts basic arithmetic commands, in the form "5+3" or "6-2", and returns the correct answers. Using MEF, you will be able to add new operators without changing the application code. ...
For the most current samples, see the Visual Basic Samples Web site. Expand table Security Note Microsoft provides the included samples "AS IS" with no warranties. The code in the samples is provided just to illustrate concepts. The provided code may not meet security requirements for any spe...
The following Visual Basic code provides examples of how to query a data source using the Query API. VB 複製 Imports System Imports System.Net Imports System.Xml Imports Microsoft.VisualBasic ''' <summary> ''' Using the Spatial Data Services Query API to query the test data source FourthCo...
' There is not a Proper function in Visual Basic for Applications. ' So, you must use the worksheet function in the following form: x.Value = Application.Proper(x.Value) Next End Sub Testing the Sample Macros To test the sample macros, follow these steps: ...
The ExcelAuto sample application demonstrates how to use Visual Basic to start Excel, create a workbook from a template, and update cells in a worksheet that then populate graphs in the workbook. The sample also shows how to send the workbook to an e-mail address, either one time or on ...
Browse code This repository contains an introductory sample project for Microsoft Azure Service Fabric. The sample project contains a single application with multiple services demonstrating the basic concepts needed to get you started building highly-available, scalable, distributed applications. Looking for...
Enhance the visual quality of your games and apps using curves with Metal ray tracing. This sample implements ray-traced rendering using GPU-based parallel processing. macOSiOS View sample code Basic Tessellation Tessellate a triangle or quad patch with adjustable per-patch tessellation factors. This...