Posts

Showing posts from December, 2010

Error using fonts in the VisualStudio.NET - "Only TrueType fonts are supported and this is not a TrueType font"

Solution 1: After selecting the font in the properties window of the VS.NET IDE, the error message " Only True-type fonts are supported and this is not a True Type font " will be reported. Click OK, and then close VS.NET. Re-open VS.NET, followed by the project; select the font in the properties window, the error will no longer be generated. Solution 2: In the Visual Studio.NET application, reference and apply the fonts through the code window of the application. The following example assigns the evaluation version of IDAutomation's Code 39 Font with the human readable text displayed on a label in a form during the Form_Load event. C#: private void Form1_Load(object sender, System.EventArgs e) {      label1.Font = new Font("IDAutomationSHC39S", 12, FontStyle.Regular); }

Creating a Csharp Console Application

Follow me Open Notepad Write the following code in Notepad Or you can use Visual Studio  using System; namespace Blog1 {     class FootballPlayer     {         string FootballPlayerName;         int Rank;         public void PrintPlayerDetails()         {             Console.WriteLine("The Details of the Player are :");             Console.WriteLine(" Name:");             Console.WriteLine(FootballPlayerName);             Console.WriteLine("Rank");             Console.WriteLine(Rank);       ...

How to Create Windows Application

how to create a windows application ? well if your new to programming language this will  be bit difficult .but not that hard .so i suggest you to check out some reference about Microsoft C sharp language . check out click here first you will need a Microsoft visual studio .there's a free version download it . if you have already downloaded visual studio , open visual studio select from installed templates windows application .there you go it will open with a windows form with one button.double click to button .the code page will open write this MessageBox.Show("Hello world"); now hit f5 or find a debug button from toolbar . that's it you have created a windows application . i