FormTestCodeBehind.bas 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. Version =20
  2. VersionRequired =20
  3. Begin Form
  4. DividingLines = NotDefault
  5. AllowDesignChanges = NotDefault
  6. DefaultView =0
  7. PictureAlignment =2
  8. DatasheetGridlinesBehavior =3
  9. GridY =10
  10. Width =4875
  11. DatasheetFontHeight =11
  12. ItemSuffix =3
  13. Right =20460
  14. Bottom =12735
  15. DatasheetGridlinesColor =14806254
  16. RecSrcDt = Begin
  17. 0xfa6eb94d13d9e440
  18. End
  19. DatasheetFontName ="Calibri"
  20. FilterOnLoad =0
  21. ShowPageMargins =0
  22. DisplayOnSharePointSite =1
  23. DatasheetAlternateBackColor =15921906
  24. DatasheetGridlinesColor12 =0
  25. FitToScreen =1
  26. DatasheetBackThemeColorIndex =1
  27. BorderThemeColorIndex =3
  28. ThemeFontIndex =1
  29. ForeThemeColorIndex =0
  30. AlternateBackThemeColorIndex =1
  31. AlternateBackShade =95.0
  32. Begin
  33. Begin Label
  34. BackStyle =0
  35. FontSize =11
  36. FontName ="Calibri"
  37. ThemeFontIndex =1
  38. BackThemeColorIndex =1
  39. BorderThemeColorIndex =0
  40. BorderTint =50.0
  41. ForeThemeColorIndex =0
  42. ForeTint =50.0
  43. GridlineThemeColorIndex =1
  44. GridlineShade =65.0
  45. End
  46. Begin CommandButton
  47. Width =1701
  48. Height =283
  49. FontSize =11
  50. FontWeight =400
  51. FontName ="Calibri"
  52. ForeThemeColorIndex =0
  53. ForeTint =75.0
  54. GridlineThemeColorIndex =1
  55. GridlineShade =65.0
  56. UseTheme =1
  57. Shape =1
  58. Gradient =12
  59. BackThemeColorIndex =4
  60. BackTint =60.0
  61. BorderLineStyle =0
  62. BorderColor =16777215
  63. BorderThemeColorIndex =4
  64. BorderTint =60.0
  65. ThemeFontIndex =1
  66. HoverThemeColorIndex =4
  67. HoverTint =40.0
  68. PressedThemeColorIndex =4
  69. PressedShade =75.0
  70. HoverForeThemeColorIndex =0
  71. HoverForeTint =75.0
  72. PressedForeThemeColorIndex =0
  73. PressedForeTint =75.0
  74. End
  75. Begin TextBox
  76. AddColon = NotDefault
  77. FELineBreak = NotDefault
  78. BorderLineStyle =0
  79. Width =1701
  80. LabelX =-1701
  81. FontSize =11
  82. FontName ="Calibri"
  83. AsianLineBreak =1
  84. BackThemeColorIndex =1
  85. BorderThemeColorIndex =1
  86. BorderShade =65.0
  87. ThemeFontIndex =1
  88. ForeThemeColorIndex =0
  89. ForeTint =75.0
  90. GridlineThemeColorIndex =1
  91. GridlineShade =65.0
  92. End
  93. Begin Section
  94. Height =2437
  95. Name ="Détail"
  96. AlternateBackColor =15921906
  97. AlternateBackThemeColorIndex =1
  98. AlternateBackShade =95.0
  99. BackThemeColorIndex =1
  100. Begin
  101. Begin TextBox
  102. OverlapFlags =85
  103. IMESentenceMode =3
  104. Left =1984
  105. Top =396
  106. Width =1757
  107. Height =315
  108. BorderColor =10921638
  109. ForeColor =4210752
  110. Name ="TestDisplay"
  111. GridlineColor =10921638
  112. LayoutCachedLeft =1984
  113. LayoutCachedTop =396
  114. LayoutCachedWidth =3741
  115. LayoutCachedHeight =711
  116. Begin
  117. Begin Label
  118. OverlapFlags =85
  119. Left =285
  120. Top =390
  121. Width =1140
  122. Height =315
  123. BorderColor =8355711
  124. ForeColor =8355711
  125. Name ="Étiquette1"
  126. Caption ="TestDisplay"
  127. GridlineColor =10921638
  128. LayoutCachedLeft =285
  129. LayoutCachedTop =390
  130. LayoutCachedWidth =1425
  131. LayoutCachedHeight =705
  132. End
  133. End
  134. End
  135. Begin CommandButton
  136. OverlapFlags =85
  137. Left =1247
  138. Top =1190
  139. Width =2608
  140. Height =397
  141. TabIndex =1
  142. ForeColor =4210752
  143. Name ="TestCommand"
  144. Caption ="TestVBA"
  145. OnClick ="[Event Procedure]"
  146. GridlineColor =10921638
  147. LayoutCachedLeft =1247
  148. LayoutCachedTop =1190
  149. LayoutCachedWidth =3855
  150. LayoutCachedHeight =1587
  151. BackColor =14136213
  152. BorderColor =14136213
  153. HoverColor =15060409
  154. PressedColor =9592887
  155. HoverForeColor =4210752
  156. PressedForeColor =4210752
  157. WebImagePaddingLeft =2
  158. WebImagePaddingTop =2
  159. WebImagePaddingRight =1
  160. WebImagePaddingBottom =1
  161. End
  162. End
  163. End
  164. End
  165. End
  166. CodeBehindForm
  167. Attribute VB_GlobalNameSpace = False
  168. Attribute VB_Creatable = True
  169. Attribute VB_PredeclaredId = True
  170. Attribute VB_Exposed = False
  171. Option Compare Database
  172. Private Sub TestCommand_Click()
  173. Me.TestDisplay.Value = "hello world!"
  174. End Sub