|
发表于 2007-7-6 15:14:17
|
显示全部楼层
窗体的定义 'Button1
3 {5 c( D$ j3 M! A2 z '
" }) v% Q V+ v- k Me.Button1.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))$ g5 z& ^8 u E p# E/ ^$ W
Me.Button1.Location = New System.Drawing.Point(96, 228)
5 x" ^# j2 W1 Z9 J3 ~ Me.Button1.Name = "Button1"# e9 `3 ? l" g
Me.Button1.TabIndex = 0; Z8 }6 B4 h: R/ u2 ~4 [
Me.Button1.Text = "应 用"
& L0 N! @ ?* ~* Z8 }: P% {' U '; V+ e U5 |$ V j* D. o; u4 x
'Button23 ` n4 J! D; a' w
'
' n9 ^( C) z9 x8 U$ e' E5 o: P Me.Button2.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte)), E+ [6 r% [' q
Me.Button2.Location = New System.Drawing.Point(296, 228)" G5 U0 g6 c! O& a; A/ l
Me.Button2.Name = "Button2"2 A$ A; z, w6 @0 p- b- E. e
Me.Button2.TabIndex = 1
9 M0 r5 h* y/ F% r" y; D( R Me.Button2.Text = "退 出"
2 S- ^7 L' x+ }. w0 B$ T4 r' M; Y( z '; U( d. i* M+ Z( S9 {* N$ h+ v% I
'Label14 T' }7 }9 B) s
'3 E& C, E; I, Z; g
Me.Label1.Font = New System.Drawing.Font("黑体", 15.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
& ?7 }" Y- b9 d" K* K$ I Me.Label1.Location = New System.Drawing.Point(141, 17)
. |4 ^! o, W' @4 q Me.Label1.Name = "Label1"
$ ^; p2 D0 O* o2 K& R Me.Label1.Size = New System.Drawing.Size(184, 23)5 }" Y9 P( H! i& U8 M: [
Me.Label1.TabIndex = 3
; N; E; G! H! I+ J6 g9 z Me.Label1.Text = "工程图纸属性表单"" z g5 ^: V+ V8 @/ O9 V
Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter, M+ u! q) }# e2 F, q4 j" v* u
'
* {: C6 i* t+ _7 j. k: Q 'Button3
4 d2 ^$ P% g6 B' S6 Z) l '( t6 d. \8 j7 n( w- r" ~
Me.Button3.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
& k O9 W) `* ` v& ]- v+ y/ Z8 L Me.Button3.Location = New System.Drawing.Point(200, 228), m( o- P* [5 Z0 r2 j
Me.Button3.Name = "Button3"
2 s' l% `8 s* L Me.Button3.TabIndex = 2; E1 V' k7 q: s; Z0 q2 m* T
Me.Button3.Text = "重置"% w0 N# o2 V# U- t7 N5 ^
'0 [- p/ g/ f# x6 \
'Label2: c# Y2 _, ^6 m# O& s' c& v6 u
'
6 N0 |/ _' E& j. s$ h0 m/ D Me.Label2.AutoSize = True2 X0 c" a) ^' X
Me.Label2.Location = New System.Drawing.Point(31, 57)5 b( Z2 q9 L5 ^% A _! z
Me.Label2.Name = "Label2"
& Q3 g# ^$ R: F% p4 r b4 j0 @. g h Me.Label2.Size = New System.Drawing.Size(34, 19)% E- X4 Z5 k t, ?* {0 R5 a
Me.Label2.TabIndex = 4
' j" E: Y. k# e Me.Label2.Text = "图幅"3 b5 x8 T; U L. m) C
Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
; k j9 b# z" m7 I ': h1 t6 b& y6 d" Q
'Label3" X: b W9 F3 f v% t
'
+ ^; e) Y$ g* z; ?% T4 d [ Me.Label3.Location = New System.Drawing.Point(223, 57)$ h y3 n, ~! k0 g5 \! x1 m( m
Me.Label3.Name = "Label3"
- p- u# J" J L+ }1 D Me.Label3.Size = New System.Drawing.Size(34, 19)
: ^" h- U6 _* O5 o: L7 S' C) x7 S6 e Me.Label3.TabIndex = 5
. m9 I1 G* ` Z% }, d$ J+ T3 C Me.Label3.Text = "图框"8 M1 E: T" O7 {2 m
Me.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft6 I c" j4 e1 R/ Q; P8 j
'- k* f4 \ M) N7 {
'Label4! c1 I( g x0 X% m! \( j9 ~ D
'
$ n3 S" ^' K5 n" @3 u+ J Me.Label4.Location = New System.Drawing.Point(31, 101)
. q6 p+ ^( ^3 w6 S Me.Label4.Name = "Label4"
9 L q$ B" I; k. ~* O' Q" y7 P Me.Label4.Size = New System.Drawing.Size(34, 19)
) A+ i7 Q$ V: P i3 H Me.Label4.TabIndex = 6& u) u2 H+ b: u4 n$ s& D- `3 q
Me.Label4.Text = "尺寸"
' e* o+ @6 M# y Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
0 ~& Z9 a5 M8 N/ P3 k '
" H8 {% m5 j, O' s4 e4 z1 [/ V 'Label5
# m+ w* c1 t6 `. e '( v" @: o2 ^. G* Q) ?% M* Z& A
Me.Label5.Location = New System.Drawing.Point(31, 145); \- v# y/ Q6 ^4 s8 w( v6 j) @
Me.Label5.Name = "Label5"" g. B c: M, v9 Q2 L
Me.Label5.Size = New System.Drawing.Size(34, 19)
) c R$ }" ?: `" C0 q# ~ Me.Label5.TabIndex = 7
0 v+ |; I4 W+ v# R* a+ D& y. R& B- y# P Me.Label5.Text = "比例"5 j. q8 t' a2 Z: X- z' T/ u9 H
Me.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft7 W# i: v: J- W' N5 s) b
'
6 n1 Z, Y! f7 R( u 'PaperSizeComboBox
9 O) B) R9 s; z0 f ': j8 o+ _( X0 R0 [ Q
Me.PaperSizeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList8 K7 f- p/ I! B) _% _$ b
Me.PaperSizeComboBox.Items.AddRange(New Object() {"A0", "A1", "A2", "A3", "A4", "自定义"})% O" O& ?4 @4 z# J
Me.PaperSizeComboBox.Location = New System.Drawing.Point(87, 55)
- K4 g/ a) m" I) W Me.PaperSizeComboBox.Name = "PaperSizeComboBox" k! f0 j- y g5 ~3 o
Me.PaperSizeComboBox.Size = New System.Drawing.Size(121, 22)
# _0 h& j5 ]6 ~ e. A1 d1 Q Me.PaperSizeComboBox.TabIndex = 8
( S! [+ P( x! G ', E2 Y! L! n: U6 [' U4 l5 D
'ComboBox1- i2 p5 L; p: C9 {$ ^% O X( U) J# L
'( W0 ^3 S" @2 n. l! I3 [' `
Me.ComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList( R2 Y8 K& O3 p0 e/ k1 Z {- v
Me.ComboBox1.Location = New System.Drawing.Point(279, 57)/ y! x/ P" \- _3 j% A
Me.ComboBox1.Name = "ComboBox1"
6 z; f, E" b, G) M/ l' x Me.ComboBox1.Size = New System.Drawing.Size(121, 22)
1 ]/ A3 {& w P' R" l Me.ComboBox1.TabIndex = 98 @7 l8 G3 z/ _5 l, o8 ]1 j C
'
# G2 H3 Q# P+ p) R& u0 L& V 'WidthTextBox# [1 s! y( {* B2 m
'. d9 c& n, g$ b. c& b* Z
Me.WidthTextBox.Location = New System.Drawing.Point(87, 99)- K" J# R5 b6 ]( O q+ N
Me.WidthTextBox.Name = "WidthTextBox"% L1 r+ e R M( o9 K
Me.WidthTextBox.Size = New System.Drawing.Size(121, 23)
7 u; F, V% d; V+ d, g7 r: n Me.WidthTextBox.TabIndex = 10
. R0 S! b( t# C Me.WidthTextBox.Text = ""
' b7 w( B8 D1 c) O: x' Z0 w '
7 w/ n, |! n" L3 D) X 'Label6
* F8 J' v" A1 k: T& y8 { '2 Z0 Y# |1 m; L8 g! Y
Me.Label6.AutoSize = True
' E2 Q! N: |2 X0 G' \6 I* `4 A2 V Me.Label6.Location = New System.Drawing.Point(223, 101)* v) ?* B8 [2 L4 J9 d6 q9 M) A
Me.Label6.Name = "Label6": J& U. j4 O6 c6 V( k/ z# Q
Me.Label6.Size = New System.Drawing.Size(20, 19)
Q. f; F" V8 q- ^) @" v Me.Label6.TabIndex = 11
$ c$ g: P, b. r+ G O4 _2 e Me.Label6.Text = "mm"
E+ W! p0 T. C Me.Label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft$ |7 X; g! P- P8 K; ~
' D8 p6 v0 E6 Y; m o) [
'HeightTextBox) Y( K$ o% r4 c2 w6 ^; l6 {2 S
'. N: ~4 e) g: Y. n& o
Me.HeightTextBox.Location = New System.Drawing.Point(279, 99) O3 [. \% q$ p- r$ \" h( X i( H* Y
Me.HeightTextBox.Name = "HeightTextBox"6 m5 m) Z9 q4 p. T% m
Me.HeightTextBox.Size = New System.Drawing.Size(121, 23)9 Y7 @0 P P7 N' F# v" P
Me.HeightTextBox.TabIndex = 12
3 m# g: i5 Y8 X+ [6 Y Me.HeightTextBox.Text = ""+ y9 C% G7 v: J/ R' y% S' [
'
3 L& s- a: T' V$ @ 'Label7
, N+ x% V7 m* S0 x# d$ g '
: S6 O( C. h* i P2 h4 i Me.Label7.AutoSize = True
8 q& q9 @: P: A. |& i0 r+ J% Z Me.Label7.Location = New System.Drawing.Point(415, 101)& t1 @- b0 k! z
Me.Label7.Name = "Label7"
@! E3 N- `4 [9 [ Me.Label7.Size = New System.Drawing.Size(20, 19)
& w$ V4 }& B) Y. X Me.Label7.TabIndex = 13
8 B l( a+ F) U1 Q( _& o Me.Label7.Text = "mm"
6 E+ d/ ?$ Y+ R9 Z# ` Me.Label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft4 P% c5 t0 y I; R" E. p
'$ L4 h+ x+ `. j0 I; _( S
'ScaleFactor18 ~5 y2 ?& v+ T
'( ` R6 ^. e' j: y/ F5 q, ]9 h
Me.ScaleFactor1.Location = New System.Drawing.Point(87, 145)
% i6 c" j) ]" X Me.ScaleFactor1.Name = "ScaleFactor1"' o9 f" R% y! G" B" Q4 _
Me.ScaleFactor1.Size = New System.Drawing.Size(121, 23)1 x7 w0 n) Z% _
Me.ScaleFactor1.TabIndex = 14! J+ r' [! X+ O# [+ d& _& G
Me.ScaleFactor1.Text = ""
4 h& C& A: w+ x# b, s '% a" l* [- L/ ~- J
'Label8
- ~6 F8 b$ r+ a K '8 O) y, l0 \' \/ B9 V# ~( F
Me.Label8.AutoSize = True3 j( \! T* y# M" F) ?0 L- D3 X' X
Me.Label8.Location = New System.Drawing.Point(239, 145)5 h' J. \+ J# }4 v
Me.Label8.Name = "Label8"
4 N1 D `; ?3 p" a; X Me.Label8.Size = New System.Drawing.Size(12, 19)# ?$ P/ a( c5 H$ M3 q* r
Me.Label8.TabIndex = 15: {/ u2 K6 f' g [; k% l, V/ ?
Me.Label8.Text = ":"2 B D4 T$ n8 a6 h) o& _
Me.Label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
$ q9 L7 k& o z3 i3 d3 J. F '& ~ N' B3 M* S- E6 i/ m
'ScaleFactor2
- Z* z' _; w$ ~ '
0 {6 @, f4 i2 J$ F4 j Me.ScaleFactor2.Location = New System.Drawing.Point(279, 145) | G6 A! {4 A2 H5 E1 `. K; o2 k
Me.ScaleFactor2.Name = "ScaleFactor2"
0 {$ ?: d2 e7 Z$ |2 i/ v, o' a Me.ScaleFactor2.Size = New System.Drawing.Size(121, 23)
: b9 {$ N6 }* j- C2 E: V Me.ScaleFactor2.TabIndex = 16
7 o6 C. _4 `) b, l' h+ H Me.ScaleFactor2.Text = ""
2 e9 c- h5 M1 K D- C '6 B t9 @# z$ e! C: J
'Label9
3 Z! U- \& `, }4 R4 N# z! [/ O! \ '1 I- a% m6 L1 L( w7 \8 _' `- i8 D
Me.Label9.AutoSize = True( M+ V! S5 Y' P+ C
Me.Label9.Font = New System.Drawing.Font("Verdana", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
. ^, F2 @& o" G1 M7 T Me.Label9.Location = New System.Drawing.Point(255, 100)- R2 b0 B+ s" k; X$ `* j3 p
Me.Label9.Name = "Label9"
& x( Y% Y) B0 E9 k! D% q Me.Label9.Size = New System.Drawing.Size(14, 21)
, F3 }+ `- }1 a+ O Me.Label9.TabIndex = 17! |8 G* H2 A$ c4 Y
Me.Label9.Text = "x"
6 @- O0 `' n3 M# J3 F5 b Me.Label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
; P m4 k0 L! d8 t; Z [1 q '+ H) G z" {; j. }9 ]
'Label10
. h3 j. G6 k9 t- p2 [ '5 Z1 O2 N% f, y
Me.Label10.AutoSize = True
+ N" h+ ~# u8 B: Y. j Me.Label10.ForeColor = System.Drawing.Color.Red
6 j/ {5 L3 o$ N3 `! S) H: k% A Me.Label10.Location = New System.Drawing.Point(32, 192)
. e1 c) K$ C; i9 Y; N1 d" v) o& Z Me.Label10.Name = "Label10" Z; i) j$ _, b' n
Me.Label10.Size = New System.Drawing.Size(423, 19)
; g0 t( X% P) Y+ l" P: I Me.Label10.TabIndex = 18
; H& Y" i% [6 H9 N1 @4 Y. I) t Me.Label10.Text = "注意:自定义图幅时需要自定义图页背景,然后再设置背景图框!"
/ f0 T; k! j) [: Y+ p Me.Label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
$ |% j" |) ]# F2 X5 v" p '
* m6 t) o% b1 l$ l: _ 'Form1/ m& c0 v3 H* r1 {5 G# j4 s
'/ M8 X( T: f. n$ x/ n3 ~
Me.AutoScale = False
. t& c. a. H- e& ] Me.AutoScaleBaseSize = New System.Drawing.Size(7, 16)
2 g( k$ \" q A4 w/ ?- f" N0 \ Me.ClientSize = New System.Drawing.Size(466, 272)
3 ]/ b* U$ U) p% N0 `) t" C* S Me.Controls.Add(Me.Label10)
% s+ z9 m( `! ^# M- c/ e Me.Controls.Add(Me.Label9)1 M5 G! A' {) s/ ?! l4 I
Me.Controls.Add(Me.ScaleFactor2)
4 ]* D b$ n2 b0 q Me.Controls.Add(Me.Label8)
' H- j9 b' l* d$ X- U- i* H% x Me.Controls.Add(Me.ScaleFactor1)
- X! G$ T2 X( L9 N1 O7 Y Me.Controls.Add(Me.Label7) h% d- b" l8 m
Me.Controls.Add(Me.HeightTextBox)/ Q8 l% o) I( ^
Me.Controls.Add(Me.Label6)
) t- N- S; H5 c5 P) Q Me.Controls.Add(Me.WidthTextBox)
9 k/ x( W# T. O$ I Me.Controls.Add(Me.ComboBox1)$ z( v, M4 l4 @$ C) @: h: |
Me.Controls.Add(Me.PaperSizeComboBox)
1 K" o. _, V& c: R9 o: X( }* o6 f: G Me.Controls.Add(Me.Label5)
3 Q" V0 m" Q, v3 F Me.Controls.Add(Me.Label4)
, S# d0 Z+ a3 @, ? I Me.Controls.Add(Me.Label3)
. j. ^6 K1 {7 v( O7 ` Me.Controls.Add(Me.Label2)" A& b& P2 z8 |+ D* d
Me.Controls.Add(Me.Label1) W8 H( Q1 Z( ?, h1 m) T& j
Me.Controls.Add(Me.Button3); }' k Q i+ U9 {4 C- ~8 Z1 g* o
Me.Controls.Add(Me.Button2)! x, j1 f# A' g7 b: _
Me.Controls.Add(Me.Button1). D, q7 ]1 P$ O# H
Me.Font = New System.Drawing.Font("宋体", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
2 [$ {2 U# d" ~) Q& K: f( C! J Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
0 |/ ]7 ?$ S& P0 z9 A Me.MaximizeBox = False3 M; B2 [) o8 ?: A
Me.MinimizeBox = False1 s _7 x% i! D5 C6 |( [9 y: Z% {- v
Me.Name = "Form1"6 _) G2 X6 l( N! N6 ?
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen+ P8 d% I6 i8 c( a- k9 U
Me.Text = "工程图纸属性表单"
+ n$ @$ t! W, v/ C4 A% j/ r5 ` Me.ResumeLayout(False)8 q& n" H2 w7 Y, j# v# ]( g: T
6 t) o. k1 v( E* D% T End Sub |
|