visual studio手机版 visual c++ 2008,应该下载什么呢?它的开发环境是啥?是visual studio 2008里面的一个吗?
visual c++ 2008,应该下载什么呢?它的开发环境是啥?是visual studio 2008里面的一个吗?
visual c++ 2008,应该下载什么呢?它的开发环境是啥?是visual studio 2008里面的一个吗?
Visual Studio2008整合开发环境,可以用于多种程式语言开发(C++,VB,C#等)。Visual C++2008内置于Visual Studio2008中。
现在一般都用Visual Studio 2012了。。。。。。。。
Visual Basic 2008 开发环境怎么切换
新建专案的时候,左边有一个TreeView,你可以在那边选择。
预设的是你的首选语言。
在visual stdio C#2008的开发环境下怎样做图示
做图示?
那重新绘图啊
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Drawing.Drawing2D;
namespace Project01_建立画布_
{
/ <summary>
/ Form1 的摘要说明。
/ </summary>
public class FrmShape : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btnLine;
private System.Windows.Forms.Button btnCircle;
private System.Windows.Forms.Button btnEllipse;
private System.Windows.Forms.Button btnRectangle;
private System.Windows.Forms.Button btnArc;
private System.Windows.Forms.Button btnDPolygon;
private System.Windows.Forms.Button btnCurve;
private System.Windows.Forms.Button btnPie;
private System.Windows.Forms.Button btnClear;
private System.Windows.Forms.Button btnBrush;
private System.Windows.Forms.CheckBox chkFlip;
private System.Windows.Forms.Button btnHatch;
private System.Windows.Forms.Button btnTexture;
/ <summary>
/ 必需的设计器变数。
/ </summary>
private System.ComponentModel.Container ponents = null;
public FrmShape()
{
Windows 窗体设计器支援所必需的
InitializeComponent();
TODO: 在 InitializeComponent 呼叫后新增任何建构函式程式码
}
/ <summary>
/ 清理所有正在使用的资源。
/ </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (ponents != null)
{
ponents.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的程式码
/ <summary>
/ 设计器支援所需的方法 - 不要使用程式码编辑器修改
/ 此方法的内容。
/ </summary>
private void InitializeComponent()
{
this.btnLine = new System.Windows.Forms.Button();
this.btnCircle = new System.Windows.Forms.Button();
this.btnEllipse = new System.Windows.Forms.Button();
this.btnRectangle = new System.Windows.Forms.Button();
this.btnArc = new System.Windows.Forms.Button();
this.btnDPolygon = new System.Windows.Forms.Button();
this.btnCurve = new System.Windows.Forms.Button();
this.btnPie = new System.Windows.Forms.Button();
this.btnClear = new System.Windows.Forms.Button();
this.btnBrush = new System.Windows.Forms.Button();
this.chkFlip = new System.Windows.Forms.CheckBox();
this.btnHatch = new System.Windows.Forms.Button();
this.btnTexture = new System.Windows.Forms.Button();
this.SuspendLayout();
btnLine
this.btnLine.Location = new System.Drawing.Point(448, 16);
this.btnLine.Name = "btnLine ";
this.btnLine.TabIndex = 0;
this.btnLine.Text = "画线 ";
this.btnLine.Click += new System.EventHandler(this.btnLine_Click);
btnCircle
this.btnCircle.Location = new System.Drawing.Point(448, 48);
this.btnCircle.Name = "btnCircle ";
this.btnCircle.TabIndex = 0;
this.btnCircle.Text = "画圆 ";
this.btnCircle.Click += new System.EventHandler(this.btnCircle_Click);
btnEllipse
this.btnEllipse.Location = new System.Drawing.Point(448, 80);
this.btnEllipse.Name = "btnEllipse ";
this.btnEllipse.TabIndex = 0;
this.btnEllipse.Text = "画椭圆 ";
this.btnEllipse.Click += new System.EventHandler(this.btnEllipse_Click);
btnRectangle
this.btnRectangle.Location = new System.Drawing.Point(448, 112);
this.btnRectangle.Name = "btnRectangle ";
this.btnRectangle.TabIndex = 0;
this.btnRectangle.Text = "画矩形 ";
this.btnRectangle.Click += new System.EventHandler(this.btnRectangle_Click);
btnArc
this.btnArc.Location = new System.Drawing.Point(448, 144);
this.btnArc.Name = "btnArc ";
this.btnArc.TabIndex = 0;
this.btnArc.Text = "画圆弧 ";
this.btnArc.Click += new System.EventHandler(this.btnArc_Click);
btnDPolygon
this.btnDPolygon.Location = new System.Drawing.Point(448, 176);
this.btnDPolygon.Name = "btnDPolygon ";
this.btnDPolygon.TabIndex = 0;
this.btnDPolygon.Text = "画多边形 ";
this.btnDPolygon.Click += new System.EventHandler(this.btnDPolygon_Click);
btnCurve
this.btnCurve.Location = new System.Drawing.Point(448, 208);
this.btnCurve.Name = "btnCurve ";
this.btnCurve.TabIndex = 0;
this.btnCurve.Text = "画曲线 ";
this.btnCurve.Click += new System.EventHandler(this.btnCurve_Click);
btnPie
this.btnPie.Location = new System.Drawing.Point(448, 240);
this.btnPie.Name = "btnPie ";
this.btnPie.TabIndex = 0;
this.btnPie.Text = "画饼图 ";
this.btnPie.Click += new System.EventHandler(this.btnPie_Click);
btnClear
this.btnClear.Location = new System.Drawing.Point(552, 16);
this.btnClear.Name = "btnClear ";
this.btnClear.Size = new System.Drawing.Size(32, 248);
this.btnClear.TabIndex = 0;
this.btnClear.Text = "清除 ";
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
btnBrush
this.btnBrush.Location = new System.Drawing.Point(344, 56);
this.btnBrush.Name = "btnBrush ";
this.btnBrush.TabIndex = 0;
this.btnBrush.Text = "渐变画刷 ";
this.btnBrush.Click += new System.EventHandler(this.btnBrush_Click);
chkFlip
this.chkFlip.Location = new System.Drawing.Point(344, 96);
this.chkFlip.Name = "chkFlip ";
this.chkFlip.Size = new System.Drawing.Size(88, 24);
this.chkFlip.TabIndex = 1;
this.chkFlip.Text = "平滑效果 ";
btnHatch
this.btnHatch.Location = new System.Drawing.Point(344, 16);
this.btnHatch.Name = "btnHatch ";
this.btnHatch.TabIndex = 0;
this.btnHatch.Text = "网格画刷 ";
this.btnHatch.Click += new System.EventHandler(this.btnHatch_Click);
btnTexture
this.btnTexture.Location = new System.Drawing.Point(344, 136);
this.btnTexture.Name = "btnTexture ";
this.btnTexture.TabIndex = 0;
this.btnTexture.Text = "画纹画刷 ";
this.btnTexture.Click += new System.EventHandler(this.btnTexture_Click);
FrmShape
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.AutoScroll = true;
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(608, 302);
this.Controls.Add(this.chkFlip);
this.Controls.Add(this.btnLine);
this.Controls.Add(this.btnCircle);
this.Controls.Add(this.btnEllipse);
this.Controls.Add(this.btnRectangle);
this.Controls.Add(this.btnArc);
this.Controls.Add(this.btnDPolygon);
this.Controls.Add(this.btnCurve);
this.Controls.Add(this.btnPie);
this.Controls.Add(this.btnClear);
this.Controls.Add(this.btnBrush);
this.Controls.Add(this.btnHatch);
this.Controls.Add(this.btnTexture);
this.Name = "FrmShape ";
this.Text = "绘制图形 ";
this.Load += new System.EventHandler(this.FrmMain_Load);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.FrmMain_Paint);
this.ResumeLayout(false);
}
#endregion
/ <summary>
/ 应用程式的主入口点。
/ </summary>
[STAThread]
static void Main()
{
Application.Run(new FrmShape());
}
/ <summary>
/ 窗体载入
/ </summary>
/ <param name= "sender "> </param>
/ <param name= "e "> </param>
private void FrmMain_Load(object sender, System.EventArgs e)
{
自动显示滚动条的最小范围
this.AutoScrollMinSize = new Size ( this.Width, this.Height );
}
/ <summary>
/ 窗体绘制
/ </summary>
/ <param name= "sender "> </param>
/ <param name= "e "> </param>
private void FrmMain_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
得到一个画布物件
Graphics g = e.Graphics;
建立一个画笔物件
Pen pen = new Pen ( Color.Red , 3);
画一条直线
g.DrawLine ( pen, new Point(0,0), new Point(500,400));
释放画布
g.Dispose();
}
/ <summary>
/ 画线
/ </summary>
/ <param name= "sender "> </param>
/ <param name= "e "> </param>
private void btnLine_Click(object sender, System.EventArgs e)
{
建立一个画布物件
Graphics g = this.CreateGraphics();
建立一个画笔物件
Pen pen = new Pen ( Color.Red , 3);
画一条直线
g.DrawLine ( pen, 0,0,1000,1000);
g.DrawLine ( pen, new Point(0,0), new Point(500,400));
释放画布
g.Dispose();
}
/ <summary>
/ 圆
/ </summary>
/ <param name= "sender "> </param>
/ <param name= "e "> </param>
private void btnCircle_Click(object sender, System.EventArgs e)
{
建立一个画布物件
Graphics g = this.CreateGraphics();
建立一个画笔物件
Pen pen = new Pen ( Color.Red , 3);
画圆
g.DrawRectangle ( pen,50,50,100,100);
g.DrawEllipse ( pen, 50,50,100,100);
建立一个Rectangle物件
Rectangle rect = new Rectangle(20,50,100,100);
画圆
g.DrawEllipse ( pen, rect );
建立一个画刷
SolidBrush brush = new SolidBrush ( Color.Red );
填充圆
g.FillEllipse ( brush , 50,50,100,100 );
g.FillEllipse ( brush , rect );
释放画布
g.Dispose();
}
/ <summary>
/ 椭圆
/ </summary>
/ <param name= "sender "> </param>
/ <param name= "e "> </param>
private void btnEllipse_Click(object sender, System.EventArgs e)
{
建立一个画布物件
Graphics g = this.CreateGraphics();
建立一个画笔物件
Pen pen = new Pen ( Color.Red , 3);
建立一个Rectangle物件
Rectangle rect = new Rectangle(20,50,100,200);
画椭圆
g.DrawEllipse ( pen, rect );
释放画布
g.Dispose();
}
/ <summary>
/ 矩形
/ </summary>
/ <param name= "sender "> </param>
/ <param name= "e "> </param>
private void btnRectangle_Click(object sender, System.EventArgs e)
{
建立一个画布物件
Graphics g = this.CreateGraphics();
建立一个画笔物件
Pen pen = new Pen ( Color.Red , 3);
建立一个Rectangle物件
Rectangle rect = new Rectangle(20,50,100,100);
画矩形
g.DrawRectangle ( pen, rect );
建立一个Rectangle物件阵列
Rectangle[] rects = new Rectangle[] {new Rectangle(30,30,100,200),new Rectangle(40,50,200,100)};
一次性画多个矩形
g.DrawRectangles ( pen, rects );
释放画布
g.Dispose();
}
/ <summary>
/ 圆弧
/ </summary>
/ <param name= "sender "> </param>
/ <param name= "e "> </param>
private void btnArc_Click(object sender, System.EventArgs e)
{
建立一个画布物件
Graphics g = this.CreateGraphics();
建立一个画笔物件
Pen pen = new Pen ( Color.Blue, 3);
建立一个Rectangle物件
Rectangle rect = new Rectangle(50,50,100,100);
画圆弧
g.DrawArc ( pen, rect,0f,-90f);
g.DrawArc ( pen, rect,0f,90f);
释放画布
g.Dispose();
}
/ <summary>
/ 多边形
/ </summary>
/ <param name= "sender "> </param>
/ <param name= "e "> </param>
private void btnDPolygon_Click(object sender, System.EventArgs e)
{
建立一个画布物件
Graphics g = this.CreateGraphics();
建立画刷
SolidBrush brush = new SolidBrush( Color.Pink );
建立一个的画笔物件
Pen pen = new Pen ( brush );
建立一个Point物件阵列
Point[] points = new Point[] {new Point(10,10), new Point(100,10), new Point(100,150), new Point(10,150)};
画多边形(4边)
g.DrawPolygon ( pen, points);
重新定义阵列
points = new Point[6];
points[0].X = 20; points[0].Y = 200;
points[1].X = 80; points[1].Y = 250;
points[2].X = 140; points[2].Y = 250;
points[3].X = 200; points[3].Y = 200;
points[4].X = 140; points[4].Y = 130;
points[5].X = 80; points[5].Y = 130;
画多边形(6边)
g.DrawPolygon ( pen, points);
填充多边形
g.FillPolygon ( brush, points );
释放画布
g.Dispose();
}
/ <summary>
/ 曲线
/ </summary>
/ <param name= "sender "> </param>
/ <param name= "e "> </param>
private void btnCurve_Click(object sender, System.EventArgs e)
{
建立一个画布物件
Graphics g = this.CreateGraphics();
建立一个红色画笔
Pen penRed = new Pen( Color.Red, 2 );
建立一个绿色画笔
Pen penGreen = new Pen( Color.Green, 2 );
建立一个蓝色画笔
Pen penBlue = new Pen( Color.Blue, 2 );
建立一个Point物件阵列
Point[] points = new Point[6];
设定阵列的值
points[0]= new Point(50,30);
points[1]= new Point(100,100);
points[2]= new Point(150,30);
points[3]= new Point(200,100);
points[4]= new Point(250,30);
points[5]= new Point(300,100);
画曲线(1,-1,0用于控制曲线的张力)
g.DrawCurve ( penRed, points,1);
g.DrawCurve ( penGreen, points, -1 );
g.DrawCurve ( penBlue, points, 0 );
释放画布
g.Dispose();
}
/ <summary>
/ 饼图
/ </summary>
/ <param name= "sender "> </param>
/ <param name= "e "> </param>
private void btnPie_Click(object sender, System.EventArgs e)
{
建立一个画布物件
Graphics g = this.CreateGraphics();
建立画笔
Pen p = new Pen ( Color.Plum, 2 );
建立绘图范围
Rectangle rect = new Rectangle( 40,40,200,200);
画圆
g.DrawEllipse ( p, rect );
建立绿色画刷
SolidBrush brushGreen = new SolidBrush ( Color.Green );
填充
g.FillPie ( brushGreen, rect, 0f, -90f );
建立黄色画刷
SolidBrush brushYellow = new SolidBrush ( Color.Yellow );
填充
g.FillPie ( brushYellow, rect, -90f, -120f );
建立红色画刷
SolidBrush brushRed = new SolidBrush ( Color.Red );
填充
g.FillPie ( brushRed, rect, -210f, -150f );
释放画布
g.Dispose();
}
请问下用C# 2.0开发,其开发环境可以用visual studio 2008吗?还是一定要用visual studio 2005?谢谢
都可以。类库版本要可以改的,在专案属性里面。
Visual Studio 里面怎么退出原来的开发环境哦
工具——汇入和汇出设定
怎么把Visual Studio 2005 把预设的开发环境C#改为C++?
tools -> import and export settings... -> reset all settings
点工具选单,点选下面的汇入汇出设定,选择最后一项重置所有设定,就可以重新设定为C++开发环境了
visual C++ 2008 Express Edition是 Visual studio 2008的一个元件么?
Visual C++ 2008 Express Edition是一个微软提供的简化版本,Express Edition 中没有提供整合开发环境的大部分专业功能。
Visual studio 2017怎么切换开发环境
先在当前的开发环境中单击选单栏上的“工具”。
Visual studio 2017怎么切换开发环境
在弹出的下拉选单中选择“汇入和汇出设定”。
Visual studio 2017怎么切换开发环境
在“汇入和汇出设定”中选择”重置所有设定“,点选”下一步“。
Visual studio 2017怎么切换开发环境
在储存当前设定中可以将现在的设定进行储存,也可以不储存。设定完成后点选”下一步”。
Visual studio 2017怎么切换开发环境
接下来选择要切换到的整合开发环境,比如我之前是vc++,现在要使用vb开发环境。直接选择visual basic,然后点选完成即可。
Visual studio 2017怎么切换开发环境
退出汇入汇出设定向导后,点选“帮助”——“关于Microsoft Visual studio"。
Visual studio 2017怎么切换开发环境
7
看一下,已经切换到visual basic开发环境。
Visual studio 2017怎么切换开发环境
