Print this page
Monday, 17 December 2012 15:51

A simple string example for dot net beginners

Written by 
Rate this item
(0 votes)

code behind file codes -

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Mridul
{
static class Entry
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MridulForm());
}
}
}

form codes -

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Mridul
{
public partial class MridulForm : Form
{
public MridulForm()
{
InitializeComponent();
}
private void MridulForm_Load(object sender, EventArgs e)
{
stringTextBox.Text = @"""Hello World""";
}

}
}

Read 3478 times
Super User

Email This email address is being protected from spambots. You need JavaScript enabled to view it.
7