Tag Archives: Visual Studio 2015

Tool for coding patterns into Visual Studio.

Coding patterns change over the years and most common are Pascal Case and Camel Case.
What is this patterns? The simple way: PascalCase means the first char should be capitalized, while camelCase means the first char should be lowercased.
Example:

This tool is a simple visual studio extension and can help you to deal with this type of patterns.
It converts a selected text between snake_case, camelCase and PascalCase.
About snake case (or snake_case) this patterns is the practice of writing compound words or phrases in which the elements are separated with one underscore character (_) and no spaces.
Download it and start install this tool with douoble click.
Under Visual Studio you can use from menu file I.D.E. EditAdvancesConvert Case or use the keys:
Ctrl + Shift + K or Ctrl + Shift + C.
The keys not worked with Visual Studio 2017 just from menu.
Another problem with this tool: you need to select just the word to make change.
If you want to change word cases and order the conversion pattern, set this option from ToolsOptionsCase Converter.
If you select a block of source code the entire source text will be changed.However, it’s the only tool I’ve ever found to solve this problem.
I’ve never worked with visual studio extension. I do not know the security issues that can arise when implementing such a tool in your I.D.E.

Posted in All, Visual Studio, Windows 10. Tagged with , , , , , , .

Using C # and Visual Studio 2015 to make additional form.

Today I will told you about how to use additional form into C# source code without using Form Design.
First you need to open under Visual Studio 2015 a new project Windows Form Application.
This project will come with a windows form.
Press Ctr+Alt+X keys and will see the Toolbox with all Windows controls.
Add one button to your window form with double left click.
Use double left click to your button and will see the source code of your form.
The C# script will be Form1.cs and for your button will have this:

If you want to open a new form with your button then you need to add source code:

This source code will make a new form named fInfo with this text: Info and about !.
Into this form will have a label named myText with this text: This software is created by the website: free-tutorials.org!.
The form fInfo add the label myText and finally show this form.
The source code come with size, height , weight and location to show the form and label to design form.
The StartPosition is used to put the form into center of your screen.

Posted in All, C#, Programming, Visual Studio, Windows 10. Tagged with , , , , , , .

Using C# with twilio to send SMS – part 001.

You need to have a account at twilio.com.
I used a free trial account to make this demo application.
You need to take for you a number on that support Twilio SMS. I got one in the US to send SMS to my country.
Open your Visual Studio and create a new Project with Windows Form Application.
This will make your Windows Form with Form1.cs and Form1.cs [Design] .
You need to install with Visual Studio the twilio-csharp library.
This library lets you write C# code – go to Visual Studio menu:
Tools > NuGet Package Manager > Package Manager Console and use this command to install twilio-csharp library.

Find the Toolbox ( Ctrl+Alt+X keys ) and add one button to your Windows Form.
Under Form1.cs [Design] press double left click with the mouse on Button ( is named button1 ).
This will open the Form1.cs and add this source code:

Fill with your accountSid, authToken and your number mobile phone from your twilio account console.
Save the file Form1.cs and then Build and Run the application.
Press the button to send the SMS message and you will see this output:

Posted in All, C#, Programming, Visual Studio, Windows 10. Tagged with , , , , .

How to see and understanding the shaders with Microsoft Visual Studio.

You need Visual Studio from Microsoft from Visual Studio 2015 website .
The shaders used by Microsoft Visual Studio 2015 come like DGSL file.
This extension is associated with the Microsoft Visual Studio integrated development environment that allows programmers to create applications for Microsoft Windows, Windows Phone, web etc.
Also , the .dgsl file stores definitions of 3D surfaces.
Any of the dgsl file type can be found here: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\VsGraphics\Assets\Effects\;
You can see one screenshot of visual one shaders.shaders

Posted in All, Visual Studio, Windows 10. Tagged with , , , .

Unity 3D with Visual Studio 2015 IDE.

Most of the time I used Mono IDE for Unity 3D.
Today I show you how to use Unity 3D with Visual Studio 2015.
You need to know this solution it’s a little slow but can solve another issues for development.
Some settings we make from start to the end will come with restart of both IDE.
Let’s start with the first step:
First install Visual Studio 2015 from here.
You need to know about the the Visual Studio : it’s on Windows OS only.
Now download Visual Studio Tools for Unity from Unitytools Visual Studio and install this download.
If your instalation will come with Repair just repair it.
This repair option it’s show you when the Visual Studio it’s install with Unity 3D package.
Open your Unity software and make this settings from Unity Preferences ( first menu of Unity 3D software).
Unity_Visual_Studio_tutorial_001
Duble left click to run the Visual Studio Tools for Unity from folder where you put the download.
Unity_Visual_Studio_tutorial_002
Select all and then accept this settings.
Unity_Visual_Studio_tutorial_003
You have one new folder add Assets into your project. You need to make more settings because will not working yet.
Make one new C# script and named it. I used the name : test. Start to develop your script by open this script.
Unity_Visual_Studio_tutorial_004
When you start your development of this script the Visual Studio 2015 start also.
Unity_Visual_Studio_tutorial_005
Now use right click mouse button to add Existing Item… or use the short key.
Unity_Visual_Studio_tutorial_006
Add the DLL files from your Unity 3D project ( Assets -> UnityVS folders).
Unity_Visual_Studio_tutorial_007
Try to build your solution from Visual Studio. Also check the settings of thise two DLL from Unity 3D by left click and check your options. If you got errors then restart both IDE: Visual Studio 2015 and Unity 3D.
This will fix all your imports and settings files.

Posted in 3D, All, Unity 3D, Visual Studio, Windows 10. Tagged with , , , , , .