Visual C# 2005程式設計

Size: px
Start display at page:

Download "Visual C# 2005程式設計"

Transcription

1 Visual Basic 2005 程式設計 第 14 章 Windows Forms 控制項

2 14-1 認識 Windows Forms Windows Forms 是全新的視窗應用程式介面 Web Forms 與 Web Services 組成全新的網際網路應用程式介面,.NET Framework 將之統稱為 ASP.NET System.Windows.Forms 命名空間提供的成員

3 14-2 Windows Forms 與控制項的新增功能 預設的表單物件 舊版 ( 需要宣告 ): sub Main() Dim f As New Form1 f.show() End Sub 新版 ( 預設 ): Form1.Show() 或 My.Forms.Form1.Show()

4 取代舊有的 Windows Forms 控制項提供增強型 :MenuStrip ToolStrip ContextMenuStrip. 取代 : MainMenu ToolBar ContextMenu 欲使用舊有控制項可在工具箱上按滑鼠右鍵再從 [ 選擇項目 ] 的 [ 選擇工具項目 ] 中選取 新增的控制項 : WebBrowser: 顯示 HTML 及瀏覽網站 MaskedTextBox: 透過遮罩驗證使用者輸入資料須符合規劃既有控制項的改變增加既有控制項之屬性

5 14-3 設計階段的表單 建立表單 1. 啟動 Visual Studio 選取 [ 檔案 ] \ [ 新增專案 ] 3. 選擇 [Visual Basic 專案 ] 類型及 [Windows 應用程 式 ] 範本, 並輸入專案名稱, 然後按 [ 確定 ]

6 如果您想要在專案內加入其它表單, 那麼可以從功能表列選取 [ 專案 ] \ [ 加入 Windows Form], 然後依照下圖操作 :

7 如果您想要在專案內加入其它表單, 但這個表單必須繼承自之前建立的表單, 而不是繼承自 System.Windows.Forms.Form 類別, 那麼可以從功能表列選取 [ 專案 ] \ [ 加入 Windows Form], 然後依照下圖操作 :

8 設定起始表單

9 設定表單的屬性

10 表單的外觀屬性 BackColor BackgroundImage BackgroundImageLayout Cursor ForeColor RightToLeft Text UseWaitCursor Font FormBorderStyle

11 表單的視窗樣式屬性 ControlBox HelpButton Icon IsMdiContainer MainMenuStrip MaximizeBox MaximizeBox Opacity

12 ShowIcon ShowInTaskBar SizeGripStyle TopMost TransparencyKey

13 表單的配置方式 單一文件介面 (SDI) 多重文件介面 (MDI) 總管樣式介面 (Explorer-Style Interface) 表單的配置屬性 AutoScaleMode AutoSizeMode AutoScroll AutoScrollMargin AutoScrollMinSize

14 Location MaximumSize MinimumSize Padding Size StartPosition WindowState 表單的配置屬性 Name

15 表單的行為屬性 AllowDrop ContextMenuStrip Enabled ImeMode 表單的其他屬性 AcceptButton CancelButton KeyPreview

16 14-4 執行階段的表單 相關的控制項事件 :Activated BackcolorChanged Click Closed Closing FormClosed FormClosing ControlAdded ControlRemoved CursorChanged Deactivate DoubleClick DragDrop DragEnter DragLeave DragOver Eeter GotFocus HandleCreated HandleDestroyed HelpRequested KeyDown KeyPress KeyUp Layout Leave Load LocationChanged LostFocus MenuComplete MenuStart Move MouseDown MouseEnter MouseHover MouseLeave MouseMove MouseUp MouseWheel MouseCaptureChanged MouseClick MouseDoubleClick Paint Resize SizeChanged TextChanged Validated Validating VisibleChanged

17 14-5 文字編輯控制項 TextBox ( 文字方塊 ) 文字方塊的外觀屬性 BackColor BorderStyle Cursor Font ForeColor ScrollBars Text TextAlign UseWaitCursor

18 文字方塊的行為屬性 AcceptsReturn AcceptsTab AllowDrop CharacterCasting ContextMenuStrip Enabled HideSelection MaxLength

19 Multiline PasswordChar ReadOnly TabIndex TabStop Visible WordWrap UseSystemPasswordChar

20 文字方塊的配置屬性 Anchor Dock Location Size Margin MaximumSize MinimumSize

21 文字方塊的其它屬性 AutoCompleteCustomSource AutoCompleteMode AutoCompleteSource

22 RichTextBox RichTextBox 的屬性 AutoWordSelection BulletIndent DetectUrls EnableAutoDragDrop ShowSelectionMargin ZoomFactor

23 RichTextBox 的格式化屬性 SelectedText SelectionAlignment SelectionBullet SelectionCharOffset SelectionColor SelectionFont SelectionIndent SelectionHangingIndent SelectionRightIndent

24 SelectionStart SelectionLength SelectionProtected SelectionType SelectionTabs

25 MaskedTextBox MaskedTextBox 的格式化屬性 PromptChar AllowPromptAsInput AsciiOnly BeepOnError Mask

26 14-6 命令控制項 Button ( 按鈕 ) Button 的外觀屬性 BackColor BackgroundImage BackgroundImageLayout Cursor UseWaitCursor FlatStyle UseMnemonic

27 Font ForeColor Image ImageAlign ImageIndex ImageList Text TextAlign

28 Button 的行為屬性 AllowDrop ContextMenuStrip DialogResult Enabled TabIndex TabStop Visible

29 NotifyIcon ( 通知圖示 ) 比較重要的屬性有 : Icon Text BalloonTipIcon BalloonTipText BalloonTipTitle

30 14-7 文字顯示控制項 Label ( 標籤 ) Label 的外觀屬性 BackColor BorderStyle Cursor FlatStyle ForeColor Font Image

31 ImageAlign ImageIndex ImageList RightToLeft Text TextAlign UseMnemonic UseWaitCursor

32 Label 的行為屬性 AllowDrop AutoEllipsis ContextMenuStrip Enabled TabIndex UseCompatibleTextRendering Visible

33 LinkLabel ( 超連結標籤 ) LinkLabel 的屬性 ActiveLinkColor DiabledLinkColor LinkColor LinkVisited VisitedLinkColor LinkBehavior LinkArea

34 14-8 影像控制項 PictureBox ( 影像方塊 ) PictureBox 的外觀屬性 BackColor BackgroundImage BackgroundImageLayout UseWaitCursor

35 PictureBox 的行為屬性 ContextMenuStrip Enabled SizeMode Visible

36 ImageList ( 影像清單 ) ImageList 控制項可以用來儲存圖片清單, 以便稍後經由其它控制項顯示

37 ImageList 的外觀屬性 ColorDepth Images ImageList 的行為屬性 ImageSize TransparentColor

38 14-9 清單控制項 CheckBox ( 核取方塊 ) CheckBox 的屬性 Appearance CheckAlign Checked CheckState AutoCheck ThreeState

39

40 RadioButton ( 選項按鈕 )

41 ListBox ( 清單方塊 ) ListBox 的屬性 ColumnWidth HorizontalExtent HorizontalScrollBar IntegralHeight MultiColumn ScrollAlwaysVisible SelectedIndex

42 SelectedIndices SelectedItem SelectedItems SelectionMode Sorted

43

44 CheckedListBox ( 核取清單方塊 )

45 ComboBox ( 下拉式清單 )

46 DomainUpDown DomainUpDown 控制項可以用來在表單上插入一個由上下箭頭來做選擇的清單

47 NumericUpDown NumericUpDown 控制項可以用來在表單上插入一個由上下箭頭來遞增或遞減數字的清單

48 ListView ( 清單檢視 ) ListView 控制項可以用來在表單上插入清單檢視, 提供了大型圖示 小型圖示 清單 詳細資料及標題等五種檢視模式

49 ListView 的屬性 CheckBoxes CheckedIndices CheckedItems FullRowSelect GridLines View Activation AllowColumnReorder AutoArrange Columns HeaderStyle HideSelection

50 HoverSelection Items LabelEdit LabelWrap LargeImageList MultiSelect Scrollable SmallImageList Sorting StateImageList OwnerDraw BackgroundImageTiled

51

52 TreeView ( 樹狀檢視 ) TreeView 的屬性 CheckBoxes ItemHeight FullRowSelect HideSelection HotTracking Indent LabelEdit Nodes PathSeparator

53 Scrollable ShowLines ShowPlusMinus ShowRootLines Sorted DrawMode ShowNodeToolTips

54

55 14-10 日期時間控制項 DateTimePicker ( 日期時間選取器 ) DateTimePicker 的屬性如下 : Format ShowCheckBox ShowUpDown MaxDate MinDate Value

56

57 MonthCalendar ( 月曆 ) MonthCalendar 的屬性 CalendarDimentions TitleBackcolor TitleForecolor TrailingForeColor FirstDayOfWeek MaxDate MinDate MaxSelectionCount ScrollChange

58 SelectionEnd SelectionStart SelectionRange ShowToday ShowTodayCircle ShowWeekNumbers TodayDate

59

60 14-11 功能表 工具列與狀態列控制項 MenuStrip ( 功能表 )

61 ToolStripMenuItem 的屬性 Checked CheckState DisplayStyle Text TextAlign TextDirection Image ImageAlign ImageScaling ImageTransparentColor

62 ShortcutKeyDisplayString AutoSize AutoToolTip CheckOnClick Enabled ToolTipText Visible ShortcutKeys ShowShortcutKeys DropDownItems

63 ContextMenuStrip ( 快顯功能表 )

64 ToolStrip ( 工具列 )

65 StatusStrip ( 狀態列 ) StatusStripStatusLabel 的屬性 ActiveLinkColor BorderSides BorderStyle DisplayStyle Image ImageAlign ImageScaling ImageTransparentColor LinkColor LinkVisited Spring

66 Text TextAlign TextDirection AutoSize AutoToolTip Enabled VisitedLinkColor IsLink LinkBehavior ToolTipText

67

68 14-12 容器控制項 GroupBox ( 群組方塊 ) GroupBox 控制項可以用來插入群組方塊, 以放置性質相似的表單欄位

69 Panel ( 面板 ) Panel 控制項的用途和 GroupBox 控制項一樣是將性質相似的表單欄位放置在一個群組, 不同的是 Panel 控制項可以擁有捲軸, 只要將其 AutoScroll 屬性設定為 [True] 即可

70 FlowLayoutPanel FlowLayoutPanel 控制項是 Windows Forms 2.0 新增的控制項, 用途和 Panel 控制項一樣是將性質相似的表單欄位放置在一個群組, 不同的是 FlowLayoutPanel 控制項可以藉由其 FlowDirection 屬性設定以水平或垂直的資料流動方向排列表單內容

71 TableLayoutPanel TableLayoutPanel 控制項是 Windows Forms 2.0 新增的控制項, 它會在格線中排列表單內容

72 SplitContainer SplitContainer 控制項包含兩個可移動的分隔列所分隔的面板

73 TabControl ( 標籤 ) TabControl 的屬性 ImageList Alignment Appearance ContextMenuStrip ItemSize Multiline ShowToolTips SizeMode TabCount TabPages

74

75 14-13 對話方塊控制項 FontDialog ( 字型對話方塊 ) FontDialog 的屬性 AllowSimulations AllowVectorFonts AllowVerticalFonts Color Font FontMustExist MaxSize MinSize

76 ScriptsOnly ShowApply ShowColor ShowEffects ShowHelp

77

78 ColorDialog ( 色彩對話方塊 ) ColorDialog 的屬性如下 : AllowFullOpen AnyColor Color FullOpen ShowHelp SolidColorOnly

79

80 SaveFileDialog ( 另存新檔對話方塊 ) SaveFileDialog 的屬性 AddExtension CheckFileExists CheckPathExists CreatePrompt DefaultExt DereferenceLinks FileName FileNames Filter

81 FilterIndex InitialDirectory OverwritePrompt Title RestoreDirectory ShowHelp SupportMultiDottedExtensions ValidateNames

82

83 OpenFileDialog ( 開啟舊檔對話方塊 )

84 FolderBrowserDialog ( 瀏覽資料夾對話方塊 ) FolderBrowserDialog 的屬性 Description RootFolder SelectedPath ShowNewFolderButton

85

86 14-14 其它控制項 TrackBar ( 滑動軸 ) TrackBar 的屬性 Orientation LargeChange SmallChange TickFrequency TickStyle Maximum Minimum Value

87 Timer ( 計時器 ) 屬性 Interval Enabled 方法 Start Stop

88 ProgressBar ( 進度列 ) ProgressBar 的屬性 MarqueeAnimationSpeed Maximum Minimum Step Style Value

89 14-15 Windows Forms 的 GDI+ 繪圖 建立 Graphics 物件 方法一 : Private Sub Form1_Paint(ByVal sender As System.Object, ByVal e As _ System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint Dim MyGraphics As Graphics MyGraphics = e.graphics ' 接下來可以撰寫進行繪圖的程式碼 End Sub 方法二 : Private Sub Form1_Paint(ByVal sender As System.Object, ByVal e As _ System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint Dim MyGraphics As Graphics MyGraphics = Me.CreateGraphics() ' 接下來可以撰寫進行繪圖的程式碼 End Sub

90 建立色彩 畫筆與筆刷 建立色彩, 例如 : Dim MyColor As Color = Color.FromArgb(0, 255, 0) 建立畫筆, 例如 : Dim mypen As New Pen(Color.Black, 5) 建立筆刷, 類型如下 : SolidBrush HatchBrush TextureBrush LinearGradientBrush PathGradientBrush

91 繪製線條與形狀 Point 結構和 Rectangle 結構 Dim MyPoint() As Point = {New Point(x1, y1), New Point(x2, y2), New Point(x3, y3)...} Dim MyRec As New Rectangle(x, y, w, h) 方法 DrawBezier(pen, pt1, pt2, pt3, pt4) DrawCurve(pen, points) DrawClosedCurve(pen, points) DrawEllipse(pen, x, y, width, height) DrawLine(pen, x1, y1, x2, y2)

92 DrawPolygon(pen, points) DrawRectangle(pen, x, y, width, height) DrawArc(pen, x, y, width, height, startangle, sweepangle) DrawPie(pen, x, y, width, height, startangle, sweepangle) FillClosedCurve(brush, points) FillEllipse(brush, x, y, width, height) FillPie(brush, x, y, width, height, startangle, sweepangle) FillPolygon(brush, points) FillRectangle(brush, x, y, width, height)

93 ResetTransform() RotateTransform(angle) ScaleTransform(sw, sh) TranslateTransform(dx, dy) Clear(color) Dispose() Save()

94 依照指示在表單上繪製如下的線條或形狀, 裡面定義了三種畫筆, 色彩分別為 Red Blue Green, 寬度分別為 個像素

95 依照指示將前一個隨堂練習的封閉圖形填滿色彩

96 依照指示在表單上繪製如下圖形, 前者是繪製 10 個圓形, 每個圓形之間位移 10 像素, 後者是繪製 36 個矩形, 每個矩形之間旋轉 10 度

97 繪製文字 1. 首先, 建立 Graphices 物件 2. 接著, 建立用來繪製文字的筆刷 3. 繼續, 建立用來繪製文字的字型, 例如 : Dim MyFont As New Font(" 標楷體 ", 20, FontStyle.Italic) 4. 呼叫 Graphics 物件提供的 DrawString() 方法繪製文字, 例如 : MyGraphics.DrawString("Visual Basic 2005 程式設計 ", MyFont, MyBrush, 10, 10)

98 將前面的步驟整合在一起, 可以得到如下結果 : Private Sub Form1_Paint(ByVal sender As Object, ByVal e As _ System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dim MyGraphics As Graphics = e.graphics Dim MyBrush As New LinearGradientBrush(ClientRectangle, Color.Red, _ Color.Yellow, LinearGradientMode.Horizontal) Dim MyFont As New Font(" 標楷體 ", 20, FontStyle.Italic) MyGraphics.DrawString("Visual Basic 2005 程式設計 ", MyFont, MyBrush, 10, 10) End Sub

99 顯示影像 1. 首先, 建立 Graphices 物件 2. 接著, 建立用來表示欲顯示之影像的物件, 例如 : Dim MyBitmap As New Bitmap("C:\img1.bmp") 3. 呼叫 Graphics 物件提供的 DrawImage() 方法繪製圖形, 例如 : MyGraphics.DrawImage(MyBitmap, 10, 10)

100 將前面的步驟整合在一起, 就可以得到如下結果 Private Sub Form1_Paint(ByVal sender As Object, ByVal e As _ System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dim MyGraphics As Graphics = e.graphics Dim mybitmap As New Bitmap("C:\Documents and Settings\Jerry\My Documents\" & _ Visual Studio 2005\Projects\MyProj-Form42\MyProj- Form42\img1.bmp ") MyGraphics.DrawImage(myBitmap, 10, 10) End Sub

101 14-16 Windows Forms 的列印支援

102 將 PrintPreviewDialog1 和 PrintDialog1 兩個控制項的 Document 屬性設定為 PrintDocument1, 表示欲進行預覽及列印的文件為 PrintDocument1

103 4. 撰寫 PrintDocument1 的 PrintPage 事件處理程序 Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As _ System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim MyGraphics As Graphics = e.graphics Dim MyBrush As New SolidBrush(Color.Black) Dim MyFont As New Font(" 新細明體 ", 12) MyGraphics.DrawString(TextBox1.Text, MyFont, MyBrush, 10, 10) End Sub 5. 撰寫 [ 預覽列印 ] 按鈕的 Click 事件處理程序 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles Button1.Click PrintPreviewDialog1.ShowDialog() End Sub

104 6. 在程式碼視窗中撰寫 [ 列印 ] 按鈕 (Button2) 的 Click 事件處理程序 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles Button2.Click Dim Result As DialogResult = PrintDialog1.ShowDialog() If (Result = Windows.Forms.DialogResult.OK) Then PrintDocument1.Print() End If End Sub

untitled

untitled 1 MessageBox 類 MessageBox 類 Show Show (,,, ); Show (string, string, MessageBoxButtons, MessageBoxIcon) MessageBox 類 列 數 MessageBoxButtons.OK MessageBoxButtons.OKCancel MessageBoxButtons.AbortRetryIgnore

More information

IsPostBack 2

IsPostBack 2 5 IsPostBack 2 TextBox 3 TextBox TextBox 4 TextBox TextBox 1 2 5 TextBox Columns MaxLength ReadOnly Rows Text TextMode TextMode MultiLine TextMode MultiLine True False TextMode MultiLine Password MulitLine

More information

VB程序设计教程

VB程序设计教程 高 等 学 校 教 材 Visual Basic 程 序 设 计 教 程 魏 东 平 郑 立 垠 梁 玉 环 石 油 大 学 出 版 社 内 容 提 要 本 书 是 按 高 等 学 校 计 算 机 程 序 设 计 课 程 教 学 大 纲 编 写 的 大 学 教 材, 主 要 包 括 VB 基 础 知 识 常 用 程 序 结 构 和 算 法 Windows 用 户 界 面 设 计 基 础 文 件 处

More information

Chapter 16 集合

Chapter 16 集合 Chapter 16 集合 20 ArrayList StringCollection 16 本章學習目標 : ArrayList ArrayList Array StringCollection 16-1 21 10-3-8 System.Array Clear Clear 16-1 Clear System.Array Microsoft System.Collection IList 542

More information

untitled

untitled VB 來 立 李 龍老 年 參 車 令 度 綠 車 不 不 靈 了 來 令來 了老 利 來 練 念 邏 念 數 度 念 狀 不 度 令 數 更 參 VB VB VB 理 VB 類 數 (x,y) (0,0) x y x,y 數 (0,0) (x, 0) (0, y) (x, y) VB 裡 來 VB 來 1 Graphics VB Graphics Private Sub Button1_Click(

More information

untitled

untitled 1 .NET 利 [] [] 來 說 切 切 理 [] [ ] 來 說 拉 類 類 [] [ ] 列 連 Web 行流 來 了 不 不 不 流 立 行 Page 類 Load 理 Response 類 Write 料 Redirect URL Response.Write("!! ives!!"); Response.Redirect("WebForm2.aspx"); (1) (2) Web Form

More information

PowerPoint Presentation

PowerPoint Presentation 1 Programming the.net Compact Framework Programming the.net Compact Framework.NET Compact Framework 概 述 常 用 设 备 控 件 其 他 文 件 线 程 2 .NET Compact Framework 概 述.NET Compact Framework 是 较 小 版 本 的.NET Framework.NET

More information

Microsoft PowerPoint - 第14章.ppt

Microsoft PowerPoint - 第14章.ppt Windows 繪圖的認識 在視窗 Form 表單上, 繪製圖案, 必須要有幾個動作 : Step 1: 定義及取得 Graphics 物件,Graphics 代表 Windows 中的繪圖區域, 範圍為 Form 表單視窗 Step 2: 利用 Graphics 物件來進行各種繪圖 Step 3: 必須釋放 Graphics 物件, 使用 Dispose( ) 釋放 [ 範例 ] 設計一個程式,

More information

Visual Basic 2010 INTRODUCTION 本書導讀! Visual Basic 2010 Visual Basic 2010 Visual Studio Visual Basic Windows Form IV

Visual Basic 2010 INTRODUCTION 本書導讀! Visual Basic 2010 Visual Basic 2010 Visual Studio Visual Basic Windows Form IV FOREWORD 推薦序 Visual Basic Visual Basic 1. 2. 3. 4. 5. 6. Visual Basic.NET Framework Visual Studio 2011/02/28 III Visual Basic 2010 INTRODUCTION 本書導讀! Visual Basic 2010 Visual Basic 2010 Visual Studio Visual

More information

Visual Basic D 3D

Visual Basic D 3D Visual Basic 2008 2D 3D 6-1 6-1 - 6-2 - 06 6-2 STEP 1 5-2 (1) STEP 2 5-3 (2) - 6-3 - Visual Basic 2008 2D 3D STEP 3 User1 6-4 (3) STEP 4 User1 6-5 (4) - 6-4 - 06 STEP 5 6-6 (5) 6-3 6-3-1 (LoginForm) PictureBox1

More information

Microsoft Word - before.docx

Microsoft Word - before.docx 本書目錄 第一章最夯的程式語言 -Visual Basic 2008 1.1 認識 Microsoft.NET... 1-2 1.1.1 Microsoft.NET 特點... 1-2 1.1.2 Microsoft.NET 支援的語言... 1-4 1.1.3 通用語言執行環境... 1-5 1.1.4 通用型別系統... 1-7 1.1.5 ASP.NET 3.5 版新功能... 1-8 1.2

More information

Microsoft PowerPoint - VB14.ppt

Microsoft PowerPoint - VB14.ppt VB 列表盒 LISTBOX 應用 資科系 林偉川 執行畫面 1 2 1 重要屬性 LISTBOX 物件 (VB6) 新增至 LISTBOX 物件中 ADDITEM 自 LISTBOX 物件中刪除選取物件 REMOVEITEM 自 LISTBOX 物件中取出選取物件 ListIndex 顯示 LISTBOX 物件中紀錄個數 Listcount 3 LISTBOX 物件 (VB.NET) 重要屬性 新增至

More information

untitled

untitled 1 LinkButton LinkButton 連 Button Text Visible Click HyperLink HyperLink 來 立 連 Text ImageUrl ( ) NavigateUrl 連 Target 連 _blank _parent frameset _search _self 連 _top 例 sample2-a1 易 連 private void Page_Load(object

More information

穨ac3-3.PDF

穨ac3-3.PDF 3-1 Access 3-1-1 Event Click OnClick Click OnClick AfterUpdate BeforeUpdate On After Before > VBA( ) 3-1 3-1 Access Open Load Sub Funtion 3-1-2 Sub Funtion Private Me Me Forms Reports Form Report VisualBasic

More information

untitled

untitled 1 .NET sln csproj dll cs aspx 說 料 料 利 來 料 ( 來 ) 利 [] [] 來 說 切 切 理 [] [ ] 來 說 拉 類 類 [] [ ] 列 連 Web 行流 來 了 不 不 不 流 立 行 Page 類 Load 理 Click 滑 料 Response 列 料 Response HttpResponse 類 Write 料 Redirect URL Response.Write("!!

More information

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF Chapter 2 WF 2.1 WF 2.2 2. XAML 2. 2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF WF WF WF WF EDI API WF Visual Studio Designer 1 2.1 WF Windows Workflow Foundation 2 WF 1 WF Domain-Specific

More information

MVB-1001.DOC

MVB-1001.DOC 20 1.5 10 15 20 25 80 100 CSF 1. 2. 0105 3. 4. 5. 30% 1.5 0.75 1. Visual Basic Visual Basic (A) Visual Basic Enterprise Edition (B) Visual Basic Script Edition (C) Visual Basic Learning Edition (D) Visual

More information

投影片 1

投影片 1 計算機程式及實習 期末報告 題目 : 六宿炒翻天 班級 : 奈米一乙姓名 : 陳洋翼學號 :4A514050 老師 : 謝慶存 程式說明 設計結帳系統, 選擇數量後, 在按下計算, 將會顯示總金額 若是老人或小孩, 將可享 8 折或 9 折的優惠 程式畫面 填選數量 在火腿蛋炒飯的數量選擇 1, 並按下計算, 可得總金額 50 元 程式畫面 打折 填選完後, 若客人是小孩或老人, 選擇欲打折項目,

More information

untitled

untitled PowerBuilder Tips 利 PB11 Web Service 年度 2 PB Tips PB9 EAServer 5 web service PB9 EAServer 5 了 便 web service 來說 PB9 web service 力 9 PB11 release PB11 web service 力更 令.NET web service PB NVO 論 不 PB 來說 說

More information

投影片 1

投影片 1 資料庫管理程式 ( 補充教材 -Part2) 使用 ADO.NET 連結資料庫 ( 自行撰寫程式碼 以實現新增 刪除 修改等功能 ) Private Sub InsertButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InsertButton.Click ' 宣告相關的 Connection

More information

PowerPoint Presentation

PowerPoint Presentation Visual Basic 2005 學 習 範 本 第 7 章 陣 列 的 活 用 7-1 陣 列 當 我 們 需 要 處 理 資 料 時, 都 使 用 變 數 來 存 放 資 料 因 為 一 個 變 數 只 能 代 表 一 個 資 料, 若 需 要 處 理 100 位 同 學 的 成 績 時, 便 要 使 用 100 個 不 同 的 變 數 名 稱, 這 不 但 會 增 加 變 數 名 稱 命 名

More information

《Visual Basic程序设计》实验课

《Visual Basic程序设计》实验课 Visual Basic Visual Basic dstang2000@263.net 0 Visual Basic 1 0...1 1 Visual Basic...2 2...3 3...6 4...9 5...13 6...16 7...18 8...22 9...24 10...27 11...29 12 API...31 13...34 14...35 15...38 1 1 Visual

More information

untitled

untitled .Net ADF ArcGIS Server ESRI ( ) .NET (ADF.NET) ADF.NET Web Controls Demo .NET (ADF.NET) ADF.NET ArcGIS Web C# and VB.NET Web Server Page Layout, Map, TOC, Overview Map ArcGIS Server.NET ? GIS web ArcGIS

More information

輕鬆學 Dreamweaver CS5 網頁設計..\Example\Ch0\ \.html..\example\ch0\ \mouse.txt..\example\ch0\ \ _Ok.html 學習重點 JavaScript 複製程式碼 mouse.txt Ctrl+C Ctrl+C 0-4

輕鬆學 Dreamweaver CS5 網頁設計..\Example\Ch0\ \.html..\example\ch0\ \mouse.txt..\example\ch0\ \ _Ok.html 學習重點 JavaScript 複製程式碼 mouse.txt Ctrl+C Ctrl+C 0-4 JAVA Extension 0..\Example\Ch0\ \ T.html..\Example\Ch0\ \ T.txt T.txt..\Example\Ch0\ \ T_Ok.html 提示 :. Marquee Marquee Font Color #FFFFFF BG Color #867bf Width 90 Height 50. T.txt Ctrl+C your scrolling

More information

Microsoft PowerPoint - 09_事件驅動.ppt

Microsoft PowerPoint - 09_事件驅動.ppt 事件驅動程式設計 事件驅動是 Windows 程式設計的精髓 事件驅動與真實世界的運作模式非常類似 1 事件驅動的基本概念 2 事件驅動程式的要素 A. 物件 消防隊 物件 事件程序 B. 事件 C. 事件程序 事件 失火 救火程序 : 警鈴大作隊員穿著消防裝備出動消防車... 3 實例 : 把 消防隊 視為一種物件 把 失火 視為這種物件需要處理的事件 把 救火程序 視為這種物件的一種事件程序,

More information

Microsoft PowerPoint - vb_net4

Microsoft PowerPoint - vb_net4 視窗應用程式表單的基本輸出入 資科系 林偉川 VB.NET 的物件說明 VB.NET 物件可以視為一個提供特定功能的元件或黑盒子, 並不用考慮元件內部的資料是什麼或程式碼怎麼寫, 只需知道這個物件提供什麼方法和屬性, 以及如何使用它, 就可以用來建立所需的應用程式 2 1 VB.NET 的物件說明 - 物件 物件 (Objects): 物件為物件導向程式的基礎, 物件是資料和包含處理此資料程式碼 (

More information

Ch6 Visual Basic表單,功能表與模組

Ch6 Visual Basic表單,功能表與模組 Ch6 Visual Basic 輸入與輸出本章將會介紹. 標籤 (Label). 文字方塊 (Text Box). 訊息對話方塊 (Message Box). 輸入對話方塊 (Input Box) Visual Basic 在推出後, 隨即引起一陣熱列的回響和使用, 除了它繼承了 Basic 原有的易學易用的特性之外, 更重要的是它提供了許多控制項, 供程式設計師快速地完成程式設計的工作 在本章的內容,

More information

Microsoft PowerPoint - Chapter5

Microsoft PowerPoint - Chapter5 CH5 表 單 與 控 制 項 課 程 目 標 : 暸 解 VBA 語 言 中 的 控 制 項 及 常 用 屬 性 表 單 在 視 窗 環 境 中, 使 用 者 所 使 用 的 對 話 窗, 精 靈 等 都 是 以 表 單 為 基 本 單 位, 再 加 上 其 它 控 制 項 所 構 成 的 操 作 環 境 利 用 插 入 表 單 為 指 定 的 專 案 插 入 一 個 自 訂 表 單 表 單 常

More information

第1章

第1章 對話方塊與多表單應用 C H A P T E R 14 14.1 FontDialog 字型對話方塊控制項 在 Windows 環境下, 編輯文字時如下圖提供統一的字型對話方塊, 以方便對所選取的文字做各種設定 在 IDE 整合開發環境下是由工具箱提供字型對話方塊工具來完成 字型對話方塊和 Timer 計時器控制項一樣都是屬於幕後執行的控制項, 建立該控制項時位於表單的正下方 程式執行時必須透過 ShowDialog()

More information

VB控件教程大全

VB控件教程大全 Datagrid DataGrid1.Columns.Remove(0) ' 0 DataGrid1.Columns.Add(0).Caption= ' DataGrod1.Columns(0).DataField= Name ' Adodc1.Refresh DataGrid BackColor Font DataGrid CellPadding HTML CellSpacing HTML Width

More information

coverage2.ppt

coverage2.ppt Satellite Tool Kit STK/Coverage STK 82 0715 010-68745117 1 Coverage Definition Figure of Merit 2 STK Basic Grid Assets Interval Description 3 Grid Global Latitude Bounds Longitude Lines Custom Regions

More information

投影片 1

投影片 1 第五章 選擇控制項 5-1 選擇控制項介紹 一. 關於 RadioButton 選項按鈕控制項 當表單中有多個同性質的選項且只能單選時就需用到選項按鈕控制項 選項按鈕控制項彼此間是互斥 當有一個選項按鈕被點選時 - 該按鈕的 Checked =True, - 其它按鈕的 Checked = False 選項按鈕常用屬性和事件 程式設計技巧 1. 選項按鈕必須先將 Enabled 屬性設為 True

More information

導讀 ASP.NET HTML ASP 第一篇 基礎篇第 1 章 認識 ASP.NET ASP.NET ASP.NET ASP.NET ASP.NET 第 2 章 認識 Visual Studio 20 開發環境 Visual Studio 20 Visual Studio 20 第二篇 C# 程式

導讀 ASP.NET HTML ASP 第一篇 基礎篇第 1 章 認識 ASP.NET ASP.NET ASP.NET ASP.NET ASP.NET 第 2 章 認識 Visual Studio 20 開發環境 Visual Studio 20 Visual Studio 20 第二篇 C# 程式 導讀 ASP.NET HTML ASP 第一篇 基礎篇第 1 章 認識 ASP.NET ASP.NET ASP.NET ASP.NET ASP.NET 第 2 章 認識 Visual Studio 20 開發環境 Visual Studio 20 Visual Studio 20 第二篇 C# 程式語言篇第 3 章 C# 程式語言基礎 C# C# 3.0 var 第 4 章 基本資料處理 C# x

More information

Microsoft Word - CX1000-HMI_程序开发_PLC通讯

Microsoft Word - CX1000-HMI_程序开发_PLC通讯 用 VB.Net 开发 CX1000 的 HMI 第二部分和 TwinCAT PLC 通讯 一 TwinCAT 动态库 TwinCAT.Ads.dll The TwinCAT.Ads.dll 是一个.NET 类库, 它提供和 ADS 设备通讯的类 如果 TwinCAT PLC 运行在 IPC 上, 则需要添加的类库是路径 \TwinCAT\ADS Api\.NET\v1.1.4322 下的 TwinCAT.Ads.dll

More information

計算機程式及實習 期末報告ppt製作 題目:南台黑心早餐店結帳系統

計算機程式及實習 期末報告ppt製作  題目:南台黑心早餐店結帳系統 計算機程式及實習期末報告 ppt 製作 題目 : 南台黑心早餐店結帳系統 南台科技大學機械工程系車輛一乙學號 :4A015038 老師 : 謝慶存 學習重點 早餐店結帳 ListBox RadioButton 的使用方法 題目說明 : 早餐店結帳 試設計快餐店結帳系統, 填寫數量再按下計算鈕之後, 即會顯示結帳總金額 按 清除 按鈕, 再輸入數量, 並點選 老客戶 *0.8, 再按下 計算 鈕, 得到打

More information

ActiveX Control

ActiveX Control ActiveX Control For Visual Basic 2005.NET [ 版本 : 1.0] 1 安裝 Windows 驅動程式 請依照下列步驟 : 1. 執行 Windows 驅動程式安裝程式 ( 此範例為 PIO-DIO) 驅動程式位置 : CD:\NAPDOS\PCI\PIO-DIO\dll_ocx\Driver http://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/pio-dio/dll_ocx/driver/

More information

untitled

untitled CHAPTER 表單與基礎控制項.1 Form 表單介紹.2 Label 標籤控制項.3 LinkLabel 連結標籤控制項.4 ToolTip 提示控制項.5 Button 按鈕控制項.6 TextBox 文字方塊控制項.7 InputBox 輸入對話方塊函式.8 顯示輸出對話方塊方法. 習題 .1 Form 表單介紹.1.1 表單常用的屬性 當拖曳工具箱中的工具到表單中就產生一個控制項 (Control)

More information

untitled

untitled Data Source 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 8-1 Data Source 8-2 Data Source 8-3 Data Source 8-4 Data Source 8-5 DataSourceID 8-6 DataSourceMode 8-7 DataSource 8-8 8-9 Parameter Direction

More information

2 4 WPF1 T I P 10 ) (XIII2) Aero Luna Royale Classic 4.1WPF Button (ContentControl) (ItemsControl) (RangeBase) Ink 4.1 System.Windows.Controls.Content

2 4 WPF1 T I P 10 ) (XIII2) Aero Luna Royale Classic 4.1WPF Button (ContentControl) (ItemsControl) (RangeBase) Ink 4.1 System.Windows.Controls.Content 第 4 章 WPF 4.1 4.2 4. 4.4 Ink 4. Windows Presentation Foundation WPFWindows Vista AeroWPF Windows WPF Aero (Windows Vista) Luna (Windows XP) Royale (Windows XP Media Center Edition 200Windows XP Tablet

More information

Microsoft PowerPoint - P766Ch09.ppt

Microsoft PowerPoint - P766Ch09.ppt PHP5&MySQL 程式設計 第 9 章在網頁之間傳遞資訊 9-1 蒐集網頁上的資訊 9-1-1 建立表單一 決定要蒐集的資訊二 建立表單三 撰寫表單處理程式 單行文字方塊 多行文字方塊 選擇鈕 核取方塊 下拉式功能表 按鈕 密碼欄位 ... 標籤 ACCEPT-CHARSET="... CHARSET="... ACCEPT="... ACTION="URL URL"

More information

Microsoft Word - paper.doc

Microsoft Word - paper.doc VB VB.NET ( ) ( ) ( ) ---------------------------------------------------------------------- ---------------------------------------------------------------------------- 1.1 -------------------------------------------------------------------

More information

Microsoft Word - 序.DOC

Microsoft Word - 序.DOC 了 解 副 程 式 意 義 及 使 用 時 機, 變 數 的 存 取 範 圍 及 多 表 單 的 程 式 設 計 7-1 函 式 7-2 副 程 式 7-3 變 數 的 範 圍 7-4 傳 值 呼 叫 及 傳 址 呼 叫 7-5 多 表 單 程 式 設 計 (MDI) 7-6 習 題 在 程 式 設 計 過 程 中, 程 式 會 因 為 不 斷 成 長, 程 式 碼 會 愈 來 愈 長, 有 一 部

More information

Microsoft PowerPoint - ch6.pptx

Microsoft PowerPoint - ch6.pptx .NET 程式設計入門 ( 使用 C#) 1 .NET 專案範本 2 檔案介紹 檔案 cs_form.sln cs_form.csproj cs_ form.exe Form1.cs Form1.resx assemblyinfo.cs cs_form.csproj.user csproj cs_form.suo App.ico 說明儲存方案中使用到那些檔案資料等資訊儲存專案中使用到那些檔案資料等資訊利用專案所編譯出來的執行檔儲存表單及程式碼相關資訊儲存表單中使用的相關資料描述組件的資訊專案目前編輯狀態記錄方案的編輯狀態應用程式圖示

More information

Microsoft PowerPoint - asp07.ppt

Microsoft PowerPoint - asp07.ppt Web 控制項 資科系林偉川 Web 表單的 ViewState 狀態管理 顯示狀態 (ViewState) 屬於 ASP.NET 的機制, 它可以保留伺服端控制項的狀態, 也就是輸入的值, 例如 : 在 Web 表單擁有文字方塊控制項, 一旦輸入值, 不論表單送回 (Postback) 多少次, 除非更改控制項的值, 否則顯示狀態都能夠自動保留欄位值 2 1 ViewState 狀態管理的基礎 ASP.NET

More information

PowerPoint Presentation

PowerPoint Presentation Visual Basic 2005 學習 範本 第 8 章鍵盤 滑鼠與功能表 8-1 鍵盤事件 雖然滑鼠是一個非常好用的輸入工具, 但是鍵盤仍是目前輸入資料的主要方式, 因為在一般的應用程式中, 經常是透過 文字方塊 物件來處理使用者由鍵盤輸入的資料 有時候要處理一些較特殊的按鍵 ( 如大小寫鎖定鍵 ) 或組合按鍵時, 就更必須用特定的鍵盤事件來處理 Visual Basic 提供了下面三個常用的事件讓我們能輕易地完成鍵盤的處理工作

More information

星星排列 _for loop Protected Sub Page_Load(ByVal sender As Object, ByVal e As Dim h As Integer = 7 'h 為變數 ' Dim i, j As Integer For i = 1 To h

星星排列 _for loop Protected Sub Page_Load(ByVal sender As Object, ByVal e As Dim h As Integer = 7 'h 為變數 ' Dim i, j As Integer For i = 1 To h 資訊系統與實習 製作 : 林郁君 一 2009.09.28 9X9 'button 被按下後 ' Dim i, j As Integer For i = 1 To 9 'i 從 1 到 9' For j = 1 To 9 'j 從 1 到 9' If j * i < 10 Then ' 如果 j 乘上 i 是為個位數 ' Response.Write(i & "*" & j & " =" & i *

More information

untitled

untitled ADF Web ArcGIS Server ADF GeocodeConnection control 4-2 Web ArcGIS Server Application Developer Framework (ADF).NET interop semblies.net Web ADF GIS Server 4-3 .NET ADF Web Represent the views in ArcMap

More information

untitled

untitled Visual Basic 6.0 Visual Basic 6.0 /. 2001.8 ISBN 7-115-10518-9 I. V II. III. BASIC IV. TP312 CIP (2002) 055959 Visual Basic Microsoft 14 1~6 Visual Basic 7~14 Internet Windows API ActiveX Visual Basic

More information

2

2 1 2 1-1 Visual Basic 3 1-2 3/8-3/21 3/22-4/4 4/5-4/18 4/19-5/2 5/3-5/16 5/17-5/30 5/31-6/13 6/14-6/27 6/28-7/11 7/12-7/25 7/26-8/8 8/9-8/22 8/25-9/5 9/6-9/19 9/20-10/3 10/4-10/17 10/18-10/31 11/15-11/28

More information

开发交易 APP 相对于之前学习的指标策略的好处有几点 :1) 开发交易 APP 相对雷达屏和图形分析在使用上是比较灵活的, 只要有合理的想法, 都可以将其变成便捷的 APP;2) 相比雷达屏和图形分析,APP 有更好的界面即视感, 可以完全按照我们自己的想法布局排版 ;3)APP 使用起来比较方便

开发交易 APP 相对于之前学习的指标策略的好处有几点 :1) 开发交易 APP 相对雷达屏和图形分析在使用上是比较灵活的, 只要有合理的想法, 都可以将其变成便捷的 APP;2) 相比雷达屏和图形分析,APP 有更好的界面即视感, 可以完全按照我们自己的想法布局排版 ;3)APP 使用起来比较方便 国信证券 TRADESTATION 0 开发交易 APP 相对于之前学习的指标策略的好处有几点 :1) 开发交易 APP 相对雷达屏和图形分析在使用上是比较灵活的, 只要有合理的想法, 都可以将其变成便捷的 APP;2) 相比雷达屏和图形分析,APP 有更好的界面即视感, 可以完全按照我们自己的想法布局排版 ;3)APP 使用起来比较方便, 不用每次都像雷达屏那样添加代码, 添加指标等 ;4) 我们之前学习的组件使用在

More information

Chapter 9: Objects and Classes

Chapter 9: Objects and Classes What is a JavaBean? JavaBean Java JavaBean Java JavaBean JComponent tooltiptext font background foreground doublebuffered border preferredsize minimumsize maximumsize JButton. Swing JButton JButton() JButton(String

More information

2 1999 9 21 2001 21 2001 7 20 90 2002 9 2 21 4 38 30 3 ~ 6 3 2004 12 Ⅰ 1!!!!!!!!!!!!!!!!!!! 2 1. 1 2!!!!!!!!!!!!!!! 1. 2 8!!!!!!!!!!!! 1. 3 19!!!!!!!!!!!!!!!!! 2!!!!!!!!!!!!!!!!!!! 26 2. 1 26!!!!!!!!!!!!

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

SMM667.mps

SMM667.mps 第 章 设 计 简 单 程 序 本 章 是 学 习 VB 程 序 设 计 的 入 门 篇, 其 中 涉 及 的 几 个 常 用 控 件 和 基 本 语 句 是 后 续 章 节 中 反 复 使 用 的 基 础 内 容 学 习 目 标 瞯 了 解 顺 序 程 序 结 构 瞯 熟 悉 用 户 界 面 的 设 计 和 简 单 代 码 设 计 瞯 掌 握 赋 值 语 句 和 InputBox MsgBox Print

More information

epub 94-3

epub 94-3 3 A u t o C A D L AY E R L I N E T Y P E O S N A P S T Y L E X R E F - AutoLISP Object ARX A u t o C A D D C L A u t o C A D A u t o d e s k P D B D C L P D B D C L D C L 3.1 Wi n d o w s A u t o C A D

More information

Microsoft Word - AEL CH07

Microsoft Word - AEL CH07 7 選擇結構 [速食店點餐系統] 7-1 是否選條件控制 7-2 選擇控制項 7-3 二選一條件控制 7-4 多選一條件控制 7-1 是否選條件控制 在日常生活中, 是否選的情況十分常見, 我們常常需要判斷氣溫是否有些涼, 需要加件衣服 ; 如果下雨需要拿把傘 If Then 條件控制是一種是否執行的條件判斷, 可以決定是否執行程式區塊內的程式碼, 當 If 條件為 True, 就執行 Then/End

More information

Microsoft Word - GUI design.doc

Microsoft Word - GUI design.doc GUI 程式設計 壹 圖形元件 一 認識圖形元件 hndlgraf 指令 Handle graph 的縮寫 說明 二 認識圖形元件的 handle 指令 get(h, 'pr') get(h) set(h, 'pr1', 'val1', 'pr2', 'val2') set(h) 說明取得 handle h 的某屬性 (properity) 之數值取得 handle h 的所有屬性之數值設定 handle

More information

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F 1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET 2.0 2.0.NET Framework.NET Framework 2.0 ( 3).NET Framework 2.0.NET Framework ( System ) o o o o o o Boxing UnBoxing() o

More information

INTRODUCTION TO COM.DOC

INTRODUCTION TO COM.DOC How About COM & ActiveX Control With Visual C++ 6.0 Author: Curtis CHOU mahler@ms16.hinet.net This document can be freely release and distribute without modify. ACTIVEX CONTROLS... 3 ACTIVEX... 3 MFC ACTIVEX

More information

untitled

untitled 1 行 行 行 行.NET 行 行 類 來 行 行 Thread 類 行 System.Threading 來 類 Thread 類 (1) public Thread(ThreadStart start ); Name 行 IsAlive 行 行狀 Start 行 行 Suspend 行 Resume 行 行 Thread 類 (2) Sleep 行 CurrentThread 行 ThreadStart

More information

Microsoft PowerPoint - ASP_NET_04

Microsoft PowerPoint - ASP_NET_04 第 4 章 Web Form 表單與事件處理 大綱 事件處理的基礎 ASP.NET 網頁與 Page 物件 ASP.NET 的伺服端控制項 資料輸出控制項 送出資料的控制項 圖片和超連結控制項 2 事件處理的基礎 事件的基礎 建立事件處理程序 事件處理程序的參數列 共用事件處理程序 3 事件的基礎 事件 (Event) 是在執行應用程式時, 滑鼠或控制項載入等操作所觸發的一些動作 例如 : 將應用程式視為一輛公共汽車,

More information

5-1 nav css 5-2

5-1 nav css 5-2 5 HTML CSS HTML CSS Ê Ê Ê Ê 5-1 nav css 5-2 5-1 5 5-1-1 5-01 css images 01 index.html 02 5-3 style.css css 03 CH5/5-01/images 04 images index.html style.css 05

More information

關於本書 l 3 PhoneGap Appcelerator Titanium Sencha Touch (wrapper framework) Native App PhoneGap Build Native App Hybrid App Java Objective-C Android SDK

關於本書 l 3 PhoneGap Appcelerator Titanium Sencha Touch (wrapper framework) Native App PhoneGap Build Native App Hybrid App Java Objective-C Android SDK 2 l 跨裝置網頁設計 Android ios Windows 8 BlackBerry OS Android HTML 5 HTML 5 HTML 4.01 HTML 5 CSS 3 CSS 3 CSS 2.01 CSS 3 2D/3D PC JavaScript

More information

Microsoft PowerPoint - ch15_1.ppt

Microsoft PowerPoint - ch15_1.ppt JavaScript 實用範例 15-1 視窗基本操作 15-1-1 歡迎對話方塊 顯示歡迎視窗 15-1-2 告別對話方塊 顯示告別視窗

More information

mvc

mvc Build an application Tutor : Michael Pan Application Source codes - - Frameworks Xib files - - Resources - ( ) info.plist - UIKit Framework UIApplication Event status bar, icon... delegation [UIApplication

More information

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2.

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2. 2005-06 p.1 HTML HyperText Mark-up Language 1. HTML Logo, Pascal, C++, Java HTML 2. HTML (tag) 3. HTML 4. HTML 1. HTML 2. 3. FTP HTML HTML html 1. html html html cutehtmleasyhtml 2. wyswyg (What you see

More information

多層次傳銷與獎金系統

多層次傳銷與獎金系統 醒 吾 技 術 學 院 資 訊 管 理 系 ( 五 專 部 ) 九 十 六 學 年 度 畢 業 專 題 多 層 次 傳 銷 與 獎 金 系 統 組 員 : 921506122 游 濬 瑋 921506126 陳 彥 宇 921506139 林 龍 華 921506144 陳 昶 志 921506149 楊 璧 如 指 導 老 師 : 汪 淵 老 師 中 華 民 國 九 十 七 年 一 月 十 一 醒

More information

Microsoft PowerPoint - VB5

Microsoft PowerPoint - VB5 Visual Basic 6.0 (V) & VB.NET 丙檢試題第二站第一題身分證號碼 資科系林偉川 第二站試題 BASIC 應用程式設計 編號試題名稱 119-890306 身分證號碼檢查 119-890307 高速公路車輛統計 119-890308 分數加 減 乘 除運算 三選一 (80 分鐘 ) 2 1 VB6 第二站第一題身分證號碼 由循序檔讀入多筆記錄 Frame 物件 母件 單一物件

More information

Microsoft PowerPoint - VB7

Microsoft PowerPoint - VB7 Visual Basic 6.0 (VII) 丙檢試題第二站第二題車輛管理統計 資科系林偉川 第二站試題 BASIC 應用程式設計 編號試題名稱 119-890306 身分證號碼檢查 119-890307 高速公路車輛統計 119-890308 分數加 減 乘 除運算 三選一 (80 分鐘 ) 2 1 第二站第二題高速公路車輛統計 由循序檔讀入多筆記錄 Frame 物件 母件 單一物件 V.S. 物件陣列

More information

Microsoft Word - ch06.doc

Microsoft Word - ch06.doc Chapter 整合開發環境介紹 本章重點 6.1 Windows 應用程式專案 6.2 VC# 2008 物件導向觀念介紹 6.3 第一個 Windows 應用程式 6.4 認識 VC# 2008 的整合開發環境 6.5 控制項的操作 6.6 習題 程式設計經典 6.1 Windows 應用程式專案 Windows Form 是以.NET Framework 為基礎的一個新平台, 主要用來開發 Windows

More information

<img>

<img> 04 圖片 4-1 4-2 4-3 4-4 網頁程式設計 4-1 網頁多媒體 Flash Java Applets HTML 8 4-1-1 圖片 JPEG Joint Photographic Experts Group 非失真模式 (lossless) 基本模式 (baseline standard) 1 2 12 JPEG 6 JPEG.jpg.jpe.jpeg GIF (graphic

More information

馬孝先

馬孝先 計算機程式及實習期末報告 ppt 製作 題目 : 迷客夏點餐系統 南台科技大學機械工程系車輛一乙學號 : 4A515011 馬孝先老師 : 謝慶存 飲料店結帳 n 學習重點 n ListBox RadioButton 的使用方法 題目說明 : 飲料店結帳 試設計快餐店結帳系統, 填寫數量再按下計算鈕之後, 即會顯示結帳總金額 按 清除 按鈕, 再輸入數量, 並點選 200 以上 8 折, 再按下 計算

More information

Business Objects 5.1 Windows BusinessObjects 1

Business Objects 5.1 Windows BusinessObjects 1 Business Objects 5.1 Windows BusinessObjects 1 BusinessObjects 2 BusinessObjects BusinessObjects BusinessObjects Windows95/98/NT BusinessObjects Windows BusinessObjects BusinessObjects BusinessObjects

More information

声 明 本 公 司 及 全 体 董 事 监 事 高 级 管 理 人 员 承 诺 不 存 在 任 何 虚 假 记 载 误 导 性 陈 述 或 重 大 遗 漏, 并 对 其 真 实 性 准 确 性 完 整 性 承 担 个 别 和 连 带 的 法 律 责 任 本 公 司 负 责 人 和 主 管 会 计 工

声 明 本 公 司 及 全 体 董 事 监 事 高 级 管 理 人 员 承 诺 不 存 在 任 何 虚 假 记 载 误 导 性 陈 述 或 重 大 遗 漏, 并 对 其 真 实 性 准 确 性 完 整 性 承 担 个 别 和 连 带 的 法 律 责 任 本 公 司 负 责 人 和 主 管 会 计 工 Shenzhen WitSoft Information Technology Co., Ltd. 主 办 券 商 二 〇 一 六 年 二 月 声 明 本 公 司 及 全 体 董 事 监 事 高 级 管 理 人 员 承 诺 不 存 在 任 何 虚 假 记 载 误 导 性 陈 述 或 重 大 遗 漏, 并 对 其 真 实 性 准 确 性 完 整 性 承 担 个 别 和 连 带 的 法 律 责 任 本

More information

1 1 Excel VBA 說明 ( ) (_) STEP4 Excel 2 STEP5 A1 1 B2 2 C3 3 STEP6 A1 STEP7 > > 1-11

1 1 Excel VBA 說明 ( ) (_) STEP4 Excel 2 STEP5 A1 1 B2 2 C3 3 STEP6 A1 STEP7 > > 1-11 1-3 1-3-1 Excel VBA VBA OK CD DVD Excel VBA Excel VBA Excel Visual Basic A1 1 B2 2 C3 3 STEP1 Excel Ch01_VBA.xlsm 1 > > STEP2 Excel 1 2 STEP3 1-10 1 1 Excel VBA 說明 ( ) (_) STEP4 Excel 2 STEP5 A1 1 B2 2

More information

Microsoft PowerPoint - 08_IOInterface.pptx

Microsoft PowerPoint - 08_IOInterface.pptx 第八章 表單輸出入介面設計 8.1 Form 常用的屬性 8.2 Form 常用的事件 8.3 Label 和 LinkLabel 標籤控制項 8.4 TextBox 文字方塊控制項 8.5 Button 按鈕控制項 8.6 MessageBox.Show 方法 備註 : 可依進度點選小節 8.1 Form 常用的屬性 表單 (Form) 是視窗應用程式中最重要的容器 (Container) 之一

More information

1. 2. Flex Adobe 3.

1. 2. Flex Adobe 3. 1. 2. Flex Adobe 3. Flex Adobe Flex Flex Web Flex Flex Flex Adobe Flash Player 9 /rich Internet applications/ria Flex 1. 2. 3. 4. 5. 6. SWF Flash Player Flex 1. Flex framework Adobe Flex 2 framework RIA

More information

PowerPoint Presentation

PowerPoint Presentation Visual Basic 程式設計 翁傳奇 P9521773@fcu.edu.tw 逢甲大學資訊工程研究所 第二章第一次親密接觸 1. Visual Basic 程式設計原理 2. Visual Basic 6.0 主畫面介紹 3. 第一個視窗應用程式 - 表單 4. 基礎元件的使用 Visual Basic 程式設計原理 Visual Basic 6.0 本身是以 Basic (Beginner

More information

XHTML width/height bdo a code href object charset codebase hreflang archive lang type alt dir name name xml:lang rel/rev align shape/coords hspace/vsp

XHTML width/height bdo a code href object charset codebase hreflang archive lang type alt dir name name xml:lang rel/rev align shape/coords hspace/vsp XHTML CSS CSS CSS DOCTYPE Switch XHTML width/height bdo a code href object charset codebase hreflang archive lang type alt dir name name xml:lang rel/rev align shape/coords hspace/vspace big tabindex accesskey

More information

RUN_PC連載_10_.doc

RUN_PC連載_10_.doc PowerBuilder 8 (10) Jaguar CTS ASP Jaguar CTS PowerDynamo Jaguar CTS Microsoft ASP (Active Server Pages) ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar Server ASP

More information

主程式 : public class Main3Activity extends AppCompatActivity { ListView listview; // 先整理資料來源,listitem.xml 需要傳入三種資料 : 圖片 狗狗名字 狗狗生日 // 狗狗圖片 int[] pic =new

主程式 : public class Main3Activity extends AppCompatActivity { ListView listview; // 先整理資料來源,listitem.xml 需要傳入三種資料 : 圖片 狗狗名字 狗狗生日 // 狗狗圖片 int[] pic =new ListView 自訂排版 主程式 : public class Main3Activity extends AppCompatActivity { ListView listview; // 先整理資料來源,listitem.xml 需要傳入三種資料 : 圖片 狗狗名字 狗狗生日 // 狗狗圖片 int[] pic =new int[]{r.drawable.dog1, R.drawable.dog2,

More information

Microsoft Word - 小心翼翼的二十一點N.doc

Microsoft Word - 小心翼翼的二十一點N.doc 投 稿 類 別 : 資 訊 類 篇 名 : 小 心 翼 翼 的 二 十 一 點 作 者 : 陳 鈺 文 國 立 瑞 芳 高 級 工 業 職 業 學 校 資 訊 二 李 伯 謙 國 立 瑞 芳 高 級 工 業 職 業 學 校 資 訊 二 胡 家 媛 國 立 瑞 芳 高 級 工 業 職 業 學 校 資 訊 二 指 導 老 師 : 周 曉 玲 老 師 陳 思 亮 主 任 壹 前 言 一 研 究 動 機 平

More information

Microsoft Word Visual Basic.NET程序设计案例教程正文.doc

Microsoft Word Visual Basic.NET程序设计案例教程正文.doc 第 6 章 Windows 高级界面设计 任务 1 透明窗体 1. 运行界面运行界面如图 6-1 所示 6.1 高级窗体应用 图 6-1 运行界面 2. 功能 (1) 通过调整 TrackBar 控件的滚动块以改变窗体的透明度 (2) 程序启动时窗体的透明度发生渐变 知识点 1 Control 类 定义控件的基类, 控件是带有可视化表示形式的组件 Control 类实现向用户显示信息的类所需的最基本功能,

More information

Microsoft Word - CH07_P36

Microsoft Word - CH07_P36 定時作業的最佳利器, 善用 Timer 控制項 Timer 控制項的運作機制 Timer 控制項的使用模式 Timer 控制項的擺放位置與其影響 Timer 控制項範例集錦 我相信大家對 Timer 控制項都不會感到陌生, 畢竟在 Windows Form 應用程式中, 就已提供 Timer 控制項來幫助大家定時完成特定作業 ASP.NET AJAX 所提供的 Timer 控制項是一個伺服器控制項,

More information

Ch2 Visual Basic 基礎

Ch2 Visual Basic 基礎 Ch2 Visual Basic 基礎這一章我們將學習如何使用 Microsoft Visual Basic 的表單 控制項和程式碼來建立應用程式, 同時我們也會學到如何在 Visual Basic 中使用物件的屬性 事件和方法 本章目標 閱讀完本章之後, 你將可以 : 使用 VB 建立簡單的應用程式 了解並使用物件 屬性 方法和事件 說明表單的屬性以及事件與表單動作的關係 設定 CommandButton

More information

ebook111-4

ebook111-4 Flash 4 Flash 4 F l a s h 5 Flash 4 Flash Flash 4 Flash 4 Flash 4 4.1 Flash 4 Flash 4 Flash 4 Flash Flash 4 Flash 4 4.2 Flash 4 Flash 4 A Flash 4 S h i f t F i l e P r e f e r e n c e s > > Flash 4 Flash

More information

附 件 : 2009 年 度 国 家 精 品 课 程 名 单 一 本 科 国 家 精 品 课 程 ( 以 学 科 为 序, 共 400 门 ) 序 号 一 级 学 科 二 级 学 科 课 程 名 称 学 校 名 称 负 责 人 1 哲 学 哲 学 类 马 克 思 主 义 伦 理 学 安 徽 师 范

附 件 : 2009 年 度 国 家 精 品 课 程 名 单 一 本 科 国 家 精 品 课 程 ( 以 学 科 为 序, 共 400 门 ) 序 号 一 级 学 科 二 级 学 科 课 程 名 称 学 校 名 称 负 责 人 1 哲 学 哲 学 类 马 克 思 主 义 伦 理 学 安 徽 师 范 附 件 : 2009 年 度 国 家 精 品 课 程 名 单 一 本 科 国 家 精 品 课 程 ( 以 学 科 为 序, 共 400 门 ) 序 号 一 级 学 科 二 级 学 科 课 程 名 称 学 校 名 称 负 责 人 1 哲 学 哲 学 类 马 克 思 主 义 伦 理 学 安 徽 师 范 大 学 钱 广 荣 2 哲 学 哲 学 类 马 克 思 主 义 哲 学 北 京 师 范 大 学 杨 耕

More information

(Microsoft PowerPoint - ch10.ppt [\254\333\256e\274\322\246\241])

(Microsoft PowerPoint - ch10.ppt [\254\333\256e\274\322\246\241]) 第十章 常用控制項 ( 二 ) 10.1 ListBox/CheckedListBox /ComboBox 清單控制項 10.2 ImageList 影響清單控制項 10.4 HScrollBar/VScrollBar/ TrackBar 捲軸控制項 10.5 RichTextBox 豐富文字方塊 10.3 MonthCalendar/DateTime Picker 日期時間控制項 備註 : 可依進度點選小節

More information

PowerPoint 簡報

PowerPoint 簡報 Paint 繪圖板 JAVA 程式設計 指導老師 : 鄞宗賢 組員 : 4A3G0901 劉彥佐 4A3G0907 韓偉志 畫面預覽 匯入參數 package paint; import java.awt.*; import java.awt.event.*; import javax.swing.*; 主程式 public class paint{ public static void main(string[]

More information

任務二 : 產生 20 個有炸彈的磚塊, 放在隨機的位置編輯 Block 類別的程式碼 import greenfoot.; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) Write a description of class

任務二 : 產生 20 個有炸彈的磚塊, 放在隨機的位置編輯 Block 類別的程式碼 import greenfoot.; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) Write a description of class 踩地雷遊戲 高慧君南港高中 開啟專案 MineSweep 任務一 : 產生 30X20 個磚塊編輯 Table 類別的程式碼 import greenfoot.; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.util.arraylist; Write a description of class MyWorld

More information

Microsoft PowerPoint - ch07_1.ppt

Microsoft PowerPoint - ch07_1.ppt 表單 7-1 認識表單 表單的建立可以分成三個階段 : 一 決定要蒐集的資料二 建立表單三 設計表單處理程式 單行文字方塊 多行文字方塊 核取方塊 選擇鈕 下拉式功能表 按鈕 密碼欄位 7-2 將電腦架設為 Web 伺服器 1. 2. 3. 7-3 建立表單的輸入介面 ... 標籤屬性解說 : ACCEPT-CHARSET="..." ACCEPT="... ACTION="URL

More information

Microsoft Office SharePoint Server MOSS Web SharePoint Web SharePoint 22 Web SharePoint Web Web SharePoint Web Web f Lists.asmx Web Web CAML f

Microsoft Office SharePoint Server MOSS Web SharePoint Web SharePoint 22 Web SharePoint Web Web SharePoint Web Web f Lists.asmx Web Web CAML f Web Chapter 22 SharePoint Web Microsoft Office SharePoint Server MOSS Web SharePoint Web SharePoint 22 Web 21 22-1 SharePoint Web Web SharePoint Web Web f Lists.asmx Web Web CAML f Views.asmx View SharePoint

More information

Microsoft Word - DIR-615_B2_Manual_1.00_T_.doc

Microsoft Word - DIR-615_B2_Manual_1.00_T_.doc D-Link DIR-615 Wireless N Broadband Router DIR-615...4 DIR-615...6...7 DIR-615...10 IP...10 DIR-615...15 DIR-615...24 DIR-615...29 D-Link DWA-645 DIR-615...30 Windows XP SP2...32 Windows Vista...35 (1)

More information

E-Form Word

E-Form Word E-Form Word 2010 Prepared by Alice Tang 建立表單的 6 個步驟 步驟 1: 顯示開發人員索引標籤 (1.5) 步驟 2: 開啟要做為表單依據的範本或文件 (1.3) 步驟 3: 新增內容至表單 (1.6/1.7) 步驟 4: 設定或變更內容控制項的內容 (1.6/1.7) 步驟 5: 在表單中新增說明文字 (1.7) 步驟 6: 新增保護功能至表單 (1.8)

More information

麻 省 理 工 學 院 是 在 西 元 2013 年 12 月 3 日 推 出 MIT App Inventor 2 網 站, 提 供 免 費 的 雲 端 服 務, 使 用 者 可 以 透 過 瀏 覽 器 來 開 發 Android 裝 置 應 用 程 式, 該 網 站 的 網 址 為 : http

麻 省 理 工 學 院 是 在 西 元 2013 年 12 月 3 日 推 出 MIT App Inventor 2 網 站, 提 供 免 費 的 雲 端 服 務, 使 用 者 可 以 透 過 瀏 覽 器 來 開 發 Android 裝 置 應 用 程 式, 該 網 站 的 網 址 為 : http 資 訊 學 科 中 心 6 月 份 電 子 報 用 MIT App Inventor2 程 式 拼 圖 來 開 發 Android 裝 置 應 用 程 式 李 啟 龍 學 習 Android 裝 置 程 式 設 計, 可 以 不 必 學 習 較 為 艱 澀 的 Java 語 法, 只 要 使 用 拼 圖 模 式 來 組 合 程 式, 就 可 以 完 成 Android 裝 置 的 應 用 程 式 MIT

More information

7 DataSet DataSet TableColumnDataSet DataSet NOTE DataSet DataAdapterDataSetDataAdapter DataSet DataSetDataSetDataSet NorthwindDataSet DataSet Dim Nor

7 DataSet DataSet TableColumnDataSet DataSet NOTE DataSet DataAdapterDataSetDataAdapter DataSet DataSetDataSetDataSet NorthwindDataSet DataSet Dim Nor 1DataSet 1 DataSet DataSetSystem.Data DataSet DataTableDataRelation DataTable DataSet DataSetTyped DataSet DataSet DataSetDataTable DataSetDataTable DataTable 45 DataSet DataSet DataSetTypedUntyped DataSetsDataSet

More information

計算機程式及實習 期末報告

計算機程式及實習 期末報告 計算機程式及實習期末報告 題目 : 壽司之神點餐系統 班級 : 車輛四乙 姓名 : 謝定宏 學號 :4A215116 老師 : 謝慶存 使用 Visual Basic 來寫出一個壽司店的結帳系統 我們把所有食物名稱和打上去然後進行設計界面, 按下計算, 便可以計算出所有食物的金額 還有優待折價方案壽星打 85 折 Vip 會員 75 折設計出一個簡單的點餐系統 程式界面說明 程式界面說明 (1) 更改鮭魚生魚片數量然後再按結帳

More information

Advanced ASP.NET Controls

Advanced ASP.NET Controls 第 5 章資料輸入與選擇控制項 第 5 章資料輸入與選擇控制項 5-1 資料輸入控制項 5-2 顯示狀態與 IsPostBack 屬性 5-3 選擇控制項 5-4 清單控制項 5-5 自動送回的事件處理 5-6 月曆 Calendar 控制項 http://www1.chihlee.edu.tw/teachers/chienhua/ 2 5-1 資料輸入控制項 5-1-1 TextBox 文字方塊控制項

More information