KyletheSeal's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 2 (0.01 per day)
- Joined:
- 08-September 12
- Profile Views:
- 31
- Last Active:
Sep 08 2012 03:37 PM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: I can't figure out how to fix these 2 errors
Posted 8 Sep 2012
C:\Users\Radio Shack
That is just the name of my user on this computer.
production release application?
The script I am trying to make is:
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; public partial class Form1 : Form { string[] text = { "Seals are awesome" }; PictureBox pb; Bitmap surface; Graphics device; Random rand; public Form1() { IntitializeComponent(); } private void IntitializeComponent() { throw new NotImplementedException(); } private void Form1_Load(object sender, EventArgs e) { //intilize this.Text = "Text Drawing Demo"; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.Size = new Size(600, 500); rand = new Random(); //create grahpics device pb = new PictureBox(); pb.Parent = this; pb.Dock = DockStyle.Fill; pb.BackColor = Color.Black; //create graphics device surface = new Bitmap(this.Size.Width, this.Size.Height); pb.Image = surface; device = Graphics.FromImage(surface); //make new font Font font = new Font("Times New Roman", 26, FontStyle.Regular, GraphicsUnit.Pixel); //draw the text for (int n = 0; n < text.Length; n++) { device.DrawString(text[n], font, Brushes.Red, 10, 10 + n * 28); } //refresh the drawing surface pb.Image = surface; } private void Form1_FormClosed(object sender, FormClosedEventArgs e) { device.Dispose(); surface.Dispose(); } }
The script that the error is in is from the format that was already in visual studio 2010 edition. I am using a book but it doesn't explain if i need to create my own format so I just went with one that was already in visual studio.
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Click here to e-mail me
Friends
KyletheSeal hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
KyletheSeal has no profile comments yet. Why not say hello?