サンプル
 

■このサンプルでは、フルスクリーン表示させます。

FullScreen

■まず、Cyber Libraryをダウンロードしてください。

■Visual C#を起動し、Cyberソリューションファイルを開いてください。

■[表示>ソリューションエクスプローラ]メニューを選択し、ソリューションエクスプローラで、「Cyber.cs」を右クリックして[コード表示]メニューを選択します。

キャラクターのコードに、以下の赤字の部分を追加します。

namespace Cyber
{


(中略)

private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Cyber));
this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
this.ClientSize = new System.Drawing.Size(640, 480);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Cyber";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Cyber Library";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnPrivateKeyDown);

this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
}

(後略)

■スクリーンサイズは現在の「画面のプロパティ」の「設定」の「画面の解像度」になります。640x480などの画面サイズに強制的に変更できません。そうしたいならVersion0.7をダウンロードしてください。



戻る