Click here to Skip to main content
15,908,768 members
Home / Discussions / Graphics
   

Graphics

 
Questionhelp Pin
Miss_ Petrovna27-Apr-07 7:28
Miss_ Petrovna27-Apr-07 7:28 
AnswerRe: help Pin
Christian Graus29-Apr-07 0:48
protectorChristian Graus29-Apr-07 0:48 
AnswerRe: Thanx, Christian Graus Pin
Miss_ Petrovna30-Apr-07 11:04
Miss_ Petrovna30-Apr-07 11:04 
GeneralRe: Thanx, Christian Graus Pin
David Crow1-May-07 6:52
David Crow1-May-07 6:52 
AnswerRe: Thanx, DavidCrow Pin
Miss_ Petrovna1-May-07 8:35
Miss_ Petrovna1-May-07 8:35 
Questionzoom in/out ..using v.s 2003..?? Pin
mr jets26-Apr-07 5:34
mr jets26-Apr-07 5:34 
AnswerRe: zoom in/out ..using v.s 2003..?? Pin
Richard Blythe28-Apr-07 18:37
Richard Blythe28-Apr-07 18:37 
Questionsave file as atext... Pin
mr jets25-Apr-07 17:54
mr jets25-Apr-07 17:54 
i wanna to make aprogram that can draw (ellips , line,..) but i have problems with the save & open ..thats apart of the code:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization;

namespace graphics_practis
{
///
/// Summary description for Form1.
///

public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Button line;
private System.Windows.Forms.Button square;
private System.Windows.Forms.Button circle;
private System.Windows.Forms.Button ellipse;
private System.Windows.Forms.Button polygon;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button ok;
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.MenuItem menuItem4;
private System.Windows.Forms.MenuItem menuItem5;

private BinaryFormatter formtter = new BinaryFormatter();
private FileStream str_reader;

private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;

private System.Windows.Forms.SaveFileDialog saveFileDialog1;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
///
/// Required designer variable.
///

private System.ComponentModel.Container components = null;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
dr = new draw(this.pictureBox1);
}
static void Main()
{
Application.Run(new Form1());
}

private void menuItem4_Click(object sender, System.EventArgs e)
{
//saving
FileStream outStream=File.Create(saveFileDialog1.FileName);//To create text file
Stream streamWriter=new StreamWriter(outStream);
}
private void menuItem3_Click(object sender, System.EventArgs e)
{
//opening
FileStream outStream=File.Create(saveFileDialog1.FileName);//To create text file
StreamWriter streamWriter=new StreamWriter(outStream);
}

the error...>>(cannot implicity convert type 'System.IO.StreamWritet'to 'System.IO.Stream'.
AnswerRe: save file as atext... Pin
Dave Kreskowiak26-Apr-07 6:13
mveDave Kreskowiak26-Apr-07 6:13 
GeneralRe: save file as atext... Pin
mr jets26-Apr-07 7:28
mr jets26-Apr-07 7:28 
GeneralRe: save file as atext... Pin
Dave Kreskowiak26-Apr-07 8:19
mveDave Kreskowiak26-Apr-07 8:19 
GeneralRe: save file as atext... Pin
mr jets26-Apr-07 8:51
mr jets26-Apr-07 8:51 
GeneralRe: save file as atext... Pin
Dave Kreskowiak26-Apr-07 14:18
mveDave Kreskowiak26-Apr-07 14:18 
GeneralRe: save file as atext... Pin
mr jets26-Apr-07 15:14
mr jets26-Apr-07 15:14 
GeneralRe: save file as atext... Pin
Dave Kreskowiak26-Apr-07 15:24
mveDave Kreskowiak26-Apr-07 15:24 
GeneralRe: save file as atext... Pin
mr jets26-Apr-07 7:29
mr jets26-Apr-07 7:29 
GeneralRe: save file as atext... Pin
Dave Kreskowiak27-Apr-07 10:35
mveDave Kreskowiak27-Apr-07 10:35 
GeneralRe: save file as atext... Pin
Dave Kreskowiak28-Apr-07 7:36
mveDave Kreskowiak28-Apr-07 7:36 
GeneralRe: save file as atext... Pin
Dave Kreskowiak28-Apr-07 13:09
mveDave Kreskowiak28-Apr-07 13:09 
Questionsave & open file... Pin
mr jets25-Apr-07 15:23
mr jets25-Apr-07 15:23 
AnswerRe: save & open file... Pin
Richard Blythe28-Apr-07 18:47
Richard Blythe28-Apr-07 18:47 
GeneralRe: save & open file... Pin
mr jets2-May-07 13:58
mr jets2-May-07 13:58 
Questionscreen view Pin
instalator25-Apr-07 2:00
instalator25-Apr-07 2:00 
AnswerRe: screen view Pin
Christian Graus29-Apr-07 0:49
protectorChristian Graus29-Apr-07 0:49 
QuestionColor Eraser..! Pin
mr jets24-Apr-07 16:17
mr jets24-Apr-07 16:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.