SlideShare a Scribd company logo
2013年
プログラムの講義 2
丹野 嘉信
tannoyoshinobu@gmail.com
目次
• ファイル操作
• WindowsForm操作
• 課題
ファイル操作 読み込み
ファイル操作 書き込み
利用例 CSVの読み込み
WindowsForm
• コンソールと同様にして開始
ラベル、ボタンの配置
• ドラックアンドドロップでFormに貼り付ける
プロパティの変更
• 変更したいオブジェクト選択 → 右クリック → プロパティ
• 例 LabelのTextを変更
イベントの追加
• プロパティから雷マークをクリック → 名前をつけてエンター
• ボタンにClickイベントを「ClickButton」という名前で追加
イベントの中身
• イベント後のアクションを書く
• 例 ボタンが押されたらLableのTextを変更する
Picturebox
• Picturebox を貼り付ける
• Bitmapを読み込み、picturebox.Imageに入れる
課題 落書き帳
• ボタンでペンの色変更
• 消去ボタンで白紙
• 枠の中でマウスを押している間、指定したペンの色で塗りつぶす
• 動画URL
• http://www.youtube.com/watch?v=SG-QhrjPnYM&feature=youtu.be
ヒント
Bitmap.SetPixcel
MouseDown MouseUp MouseMove
グローバル変数

More Related Content

Viewers also liked

Be project
Be projectBe project
Be project
sneha94
 
Reflexion modulo 2
Reflexion modulo 2Reflexion modulo 2
Reflexion modulo 2
Miguel Angel Juarez Ordoñez
 
2012 kanemotolablecture2
2012 kanemotolablecture22012 kanemotolablecture2
2012 kanemotolablecture2ytanno
 
C# でブラウザ操作
C# でブラウザ操作C# でブラウザ操作
C# でブラウザ操作
ytanno
 
K-means and X-means
K-means and X-meansK-means and X-means
K-means and X-means
ytanno
 
First Step SVM
First Step SVMFirst Step SVM
First Step SVM
ytanno
 
Betcalier_Logo_MODIFIED
Betcalier_Logo_MODIFIEDBetcalier_Logo_MODIFIED
Betcalier_Logo_MODIFIEDMichel Tylbor
 
Lavacon preso-2015-miranda-meyers
Lavacon preso-2015-miranda-meyersLavacon preso-2015-miranda-meyers
Lavacon preso-2015-miranda-meyers
Joe Meyers
 
Certificacion de uso de tecnologias ii
Certificacion de uso de tecnologias iiCertificacion de uso de tecnologias ii
Certificacion de uso de tecnologias ii
Richard Anthony Dominguez Nizama
 
Coincidir e indice
Coincidir e indiceCoincidir e indice
Coincidir e indice
Ricardo Minaya Cañari
 
Event Supervisor
Event SupervisorEvent Supervisor
Event Supervisor
Cheridah Best
 
Ortiz J.mapas mentales
Ortiz J.mapas mentalesOrtiz J.mapas mentales
Ortiz J.mapas mentales
ortizjohn
 
Proceso creativo 2015
Proceso creativo 2015Proceso creativo 2015
Proceso creativo 2015
Matias Cas Cen
 
Investigación 1 evolución web
Investigación 1 evolución web Investigación 1 evolución web
Investigación 1 evolución web
Ne95
 

Viewers also liked (14)

Be project
Be projectBe project
Be project
 
Reflexion modulo 2
Reflexion modulo 2Reflexion modulo 2
Reflexion modulo 2
 
2012 kanemotolablecture2
2012 kanemotolablecture22012 kanemotolablecture2
2012 kanemotolablecture2
 
C# でブラウザ操作
C# でブラウザ操作C# でブラウザ操作
C# でブラウザ操作
 
K-means and X-means
K-means and X-meansK-means and X-means
K-means and X-means
 
First Step SVM
First Step SVMFirst Step SVM
First Step SVM
 
Betcalier_Logo_MODIFIED
Betcalier_Logo_MODIFIEDBetcalier_Logo_MODIFIED
Betcalier_Logo_MODIFIED
 
Lavacon preso-2015-miranda-meyers
Lavacon preso-2015-miranda-meyersLavacon preso-2015-miranda-meyers
Lavacon preso-2015-miranda-meyers
 
Certificacion de uso de tecnologias ii
Certificacion de uso de tecnologias iiCertificacion de uso de tecnologias ii
Certificacion de uso de tecnologias ii
 
Coincidir e indice
Coincidir e indiceCoincidir e indice
Coincidir e indice
 
Event Supervisor
Event SupervisorEvent Supervisor
Event Supervisor
 
Ortiz J.mapas mentales
Ortiz J.mapas mentalesOrtiz J.mapas mentales
Ortiz J.mapas mentales
 
Proceso creativo 2015
Proceso creativo 2015Proceso creativo 2015
Proceso creativo 2015
 
Investigación 1 evolución web
Investigación 1 evolución web Investigación 1 evolución web
Investigación 1 evolución web
 

More from ytanno

How to be friend with Attiny202 which is small microcontroller
How to be friend with Attiny202 which is small microcontrollerHow to be friend with Attiny202 which is small microcontroller
How to be friend with Attiny202 which is small microcontroller
ytanno
 
Process of Interval Photograph System
Process of Interval Photograph SystemProcess of Interval Photograph System
Process of Interval Photograph System
ytanno
 
How to make an effort for good job
How to make an effort for good jobHow to make an effort for good job
How to make an effort for good job
ytanno
 
How To Bind Cuda And OpenCV
How To Bind Cuda And OpenCV How To Bind Cuda And OpenCV
How To Bind Cuda And OpenCV
ytanno
 
How to autorun graphic application
How to autorun graphic applicationHow to autorun graphic application
How to autorun graphic application
ytanno
 
How to setup 3D printer (Ender 3 pro)
How to setup 3D printer (Ender 3 pro)How to setup 3D printer (Ender 3 pro)
How to setup 3D printer (Ender 3 pro)
ytanno
 
How to set https server
How to set https serverHow to set https server
How to set https server
ytanno
 
How to write code in Attiny10
How to write code in Attiny10How to write code in Attiny10
How to write code in Attiny10
ytanno
 
How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841
ytanno
 
How to write code on MachXO2
How to write code on MachXO2How to write code on MachXO2
How to write code on MachXO2
ytanno
 
さるでも分かりたい9dofで作るクォータニオン姿勢
さるでも分かりたい9dofで作るクォータニオン姿勢さるでも分かりたい9dofで作るクォータニオン姿勢
さるでも分かりたい9dofで作るクォータニオン姿勢
ytanno
 
PI制御を作ってみた
PI制御を作ってみたPI制御を作ってみた
PI制御を作ってみた
ytanno
 
CharpTwitter
CharpTwitterCharpTwitter
CharpTwitter
ytanno
 
MongoDBCSharp
MongoDBCSharpMongoDBCSharp
MongoDBCSharp
ytanno
 
VisualStudinoの役に立ちそうな拡張機能をまとめてみた
VisualStudinoの役に立ちそうな拡張機能をまとめてみたVisualStudinoの役に立ちそうな拡張機能をまとめてみた
VisualStudinoの役に立ちそうな拡張機能をまとめてみた
ytanno
 
ステレオカメラ作成の道
ステレオカメラ作成の道ステレオカメラ作成の道
ステレオカメラ作成の道
ytanno
 
ReSharperを使ってみた
ReSharperを使ってみたReSharperを使ってみた
ReSharperを使ってみた
ytanno
 
Power shellmemo
Power shellmemoPower shellmemo
Power shellmemoytanno
 
Type scriptmemo
Type scriptmemoType scriptmemo
Type scriptmemoytanno
 
Sharing image prototype system
Sharing image prototype systemSharing image prototype system
Sharing image prototype system
ytanno
 

More from ytanno (20)

How to be friend with Attiny202 which is small microcontroller
How to be friend with Attiny202 which is small microcontrollerHow to be friend with Attiny202 which is small microcontroller
How to be friend with Attiny202 which is small microcontroller
 
Process of Interval Photograph System
Process of Interval Photograph SystemProcess of Interval Photograph System
Process of Interval Photograph System
 
How to make an effort for good job
How to make an effort for good jobHow to make an effort for good job
How to make an effort for good job
 
How To Bind Cuda And OpenCV
How To Bind Cuda And OpenCV How To Bind Cuda And OpenCV
How To Bind Cuda And OpenCV
 
How to autorun graphic application
How to autorun graphic applicationHow to autorun graphic application
How to autorun graphic application
 
How to setup 3D printer (Ender 3 pro)
How to setup 3D printer (Ender 3 pro)How to setup 3D printer (Ender 3 pro)
How to setup 3D printer (Ender 3 pro)
 
How to set https server
How to set https serverHow to set https server
How to set https server
 
How to write code in Attiny10
How to write code in Attiny10How to write code in Attiny10
How to write code in Attiny10
 
How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841
 
How to write code on MachXO2
How to write code on MachXO2How to write code on MachXO2
How to write code on MachXO2
 
さるでも分かりたい9dofで作るクォータニオン姿勢
さるでも分かりたい9dofで作るクォータニオン姿勢さるでも分かりたい9dofで作るクォータニオン姿勢
さるでも分かりたい9dofで作るクォータニオン姿勢
 
PI制御を作ってみた
PI制御を作ってみたPI制御を作ってみた
PI制御を作ってみた
 
CharpTwitter
CharpTwitterCharpTwitter
CharpTwitter
 
MongoDBCSharp
MongoDBCSharpMongoDBCSharp
MongoDBCSharp
 
VisualStudinoの役に立ちそうな拡張機能をまとめてみた
VisualStudinoの役に立ちそうな拡張機能をまとめてみたVisualStudinoの役に立ちそうな拡張機能をまとめてみた
VisualStudinoの役に立ちそうな拡張機能をまとめてみた
 
ステレオカメラ作成の道
ステレオカメラ作成の道ステレオカメラ作成の道
ステレオカメラ作成の道
 
ReSharperを使ってみた
ReSharperを使ってみたReSharperを使ってみた
ReSharperを使ってみた
 
Power shellmemo
Power shellmemoPower shellmemo
Power shellmemo
 
Type scriptmemo
Type scriptmemoType scriptmemo
Type scriptmemo
 
Sharing image prototype system
Sharing image prototype systemSharing image prototype system
Sharing image prototype system
 

2013 kougi2