frm_ChoixImpr.bas 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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 =6994
  11. DatasheetFontHeight =11
  12. ItemSuffix =6
  13. Right =10815
  14. Bottom =7920
  15. DatasheetGridlinesColor =14806254
  16. RecSrcDt = Begin
  17. 0x5730dc3c1438e440
  18. End
  19. OnCurrent ="[Event Procedure]"
  20. DatasheetFontName ="Calibri"
  21. FilterOnLoad =0
  22. ShowPageMargins =0
  23. DisplayOnSharePointSite =1
  24. DatasheetAlternateBackColor =15921906
  25. DatasheetGridlinesColor12 =0
  26. FitToScreen =1
  27. DatasheetBackThemeColorIndex =1
  28. BorderThemeColorIndex =3
  29. ThemeFontIndex =1
  30. ForeThemeColorIndex =0
  31. AlternateBackThemeColorIndex =1
  32. AlternateBackShade =95.0
  33. Begin
  34. Begin Label
  35. BackStyle =0
  36. FontSize =11
  37. FontName ="Calibri"
  38. ThemeFontIndex =1
  39. BackThemeColorIndex =1
  40. BorderThemeColorIndex =0
  41. BorderTint =50.0
  42. ForeThemeColorIndex =0
  43. ForeTint =50.0
  44. GridlineThemeColorIndex =1
  45. GridlineShade =65.0
  46. End
  47. Begin CommandButton
  48. Width =1701
  49. Height =283
  50. FontSize =11
  51. FontWeight =400
  52. FontName ="Calibri"
  53. ForeThemeColorIndex =0
  54. ForeTint =75.0
  55. GridlineThemeColorIndex =1
  56. GridlineShade =65.0
  57. UseTheme =1
  58. Shape =1
  59. Gradient =12
  60. BackThemeColorIndex =4
  61. BackTint =60.0
  62. BorderLineStyle =0
  63. BorderColor =16777215
  64. BorderThemeColorIndex =4
  65. BorderTint =60.0
  66. ThemeFontIndex =1
  67. HoverThemeColorIndex =4
  68. HoverTint =40.0
  69. PressedThemeColorIndex =4
  70. PressedShade =75.0
  71. HoverForeThemeColorIndex =0
  72. HoverForeTint =75.0
  73. PressedForeThemeColorIndex =0
  74. PressedForeTint =75.0
  75. End
  76. Begin TextBox
  77. AddColon = NotDefault
  78. FELineBreak = NotDefault
  79. BorderLineStyle =0
  80. Width =1701
  81. LabelX =-1701
  82. FontSize =11
  83. FontName ="Calibri"
  84. AsianLineBreak =1
  85. BackThemeColorIndex =1
  86. BorderThemeColorIndex =1
  87. BorderShade =65.0
  88. ThemeFontIndex =1
  89. ForeThemeColorIndex =0
  90. ForeTint =75.0
  91. GridlineThemeColorIndex =1
  92. GridlineShade =65.0
  93. End
  94. Begin ListBox
  95. BorderLineStyle =0
  96. Width =1701
  97. Height =1417
  98. LabelX =-1701
  99. FontSize =11
  100. FontName ="Calibri"
  101. AllowValueListEdits =1
  102. InheritValueList =1
  103. ThemeFontIndex =1
  104. BackThemeColorIndex =1
  105. BorderThemeColorIndex =1
  106. BorderShade =65.0
  107. ForeThemeColorIndex =0
  108. ForeTint =75.0
  109. GridlineThemeColorIndex =1
  110. GridlineShade =65.0
  111. End
  112. Begin Section
  113. Height =5725
  114. BackColor =15195103
  115. Name ="Détail"
  116. AlternateBackColor =15921906
  117. AlternateBackThemeColorIndex =1
  118. AlternateBackShade =95.0
  119. Begin
  120. Begin ListBox
  121. RowSourceTypeInt =1
  122. OverlapFlags =85
  123. IMESentenceMode =3
  124. Left =170
  125. Top =510
  126. Width =6300
  127. Height =4408
  128. BackColor =15524070
  129. ForeColor =4210752
  130. BorderColor =10921638
  131. Name ="lstImpr"
  132. RowSourceType ="Value List"
  133. RowSource ="\"\""
  134. ColumnWidths ="3525"
  135. GridlineColor =10921638
  136. LayoutCachedLeft =170
  137. LayoutCachedTop =510
  138. LayoutCachedWidth =6470
  139. LayoutCachedHeight =4918
  140. BackThemeColorIndex =7
  141. BackTint =20.0
  142. Begin
  143. Begin Label
  144. OverlapFlags =85
  145. Left =165
  146. Top =120
  147. Width =3015
  148. Height =315
  149. FontWeight =700
  150. BorderColor =8355711
  151. Name ="Col1_Étiquette"
  152. Caption ="Sélectionnez votre imprimante:"
  153. GridlineColor =10921638
  154. LayoutCachedLeft =165
  155. LayoutCachedTop =120
  156. LayoutCachedWidth =3180
  157. LayoutCachedHeight =435
  158. ForeTint =100.0
  159. End
  160. End
  161. End
  162. Begin CommandButton
  163. OverlapFlags =93
  164. Left =1247
  165. Top =5159
  166. Width =1757
  167. Height =340
  168. TabIndex =1
  169. ForeColor =4210752
  170. Name ="Ok"
  171. Caption ="OK"
  172. OnClick ="[Event Procedure]"
  173. GridlineColor =10921638
  174. LayoutCachedLeft =1247
  175. LayoutCachedTop =5159
  176. LayoutCachedWidth =3004
  177. LayoutCachedHeight =5499
  178. Gradient =0
  179. BackColor =15527148
  180. BackThemeColorIndex =-1
  181. BackTint =100.0
  182. BorderColor =14136213
  183. HoverColor =15060409
  184. PressedColor =9592887
  185. HoverForeColor =4210752
  186. PressedForeColor =4210752
  187. WebImagePaddingLeft =2
  188. WebImagePaddingTop =2
  189. WebImagePaddingRight =1
  190. WebImagePaddingBottom =1
  191. Overlaps =1
  192. End
  193. Begin TextBox
  194. Visible = NotDefault
  195. OverlapFlags =215
  196. IMESentenceMode =3
  197. Left =1360
  198. Top =4988
  199. Width =1700
  200. Height =315
  201. TabIndex =2
  202. BorderColor =10921638
  203. ForeColor =4210752
  204. Name ="impr"
  205. GridlineColor =10921638
  206. LayoutCachedLeft =1360
  207. LayoutCachedTop =4988
  208. LayoutCachedWidth =3060
  209. LayoutCachedHeight =5303
  210. Begin
  211. Begin Label
  212. Visible = NotDefault
  213. OverlapFlags =223
  214. Left =113
  215. Top =4989
  216. Width =1275
  217. Height =315
  218. BorderColor =8355711
  219. ForeColor =8355711
  220. Name ="Étiquette4"
  221. Caption ="impr choisie:"
  222. GridlineColor =10921638
  223. LayoutCachedLeft =113
  224. LayoutCachedTop =4989
  225. LayoutCachedWidth =1388
  226. LayoutCachedHeight =5304
  227. End
  228. End
  229. End
  230. Begin CommandButton
  231. OverlapFlags =85
  232. Left =3572
  233. Top =5159
  234. Width =1757
  235. Height =340
  236. TabIndex =3
  237. ForeColor =4210752
  238. Name ="Annuler"
  239. Caption ="Annuler"
  240. OnClick ="[Event Procedure]"
  241. GridlineColor =10921638
  242. LayoutCachedLeft =3572
  243. LayoutCachedTop =5159
  244. LayoutCachedWidth =5329
  245. LayoutCachedHeight =5499
  246. Gradient =0
  247. BackColor =15527148
  248. BackThemeColorIndex =-1
  249. BackTint =100.0
  250. BorderColor =14136213
  251. HoverColor =15060409
  252. PressedColor =9592887
  253. HoverForeColor =4210752
  254. PressedForeColor =4210752
  255. WebImagePaddingLeft =2
  256. WebImagePaddingTop =2
  257. WebImagePaddingRight =1
  258. WebImagePaddingBottom =1
  259. End
  260. End
  261. End
  262. End
  263. End
  264. CodeBehindForm
  265. Attribute VB_GlobalNameSpace = False
  266. Attribute VB_Creatable = True
  267. Attribute VB_PredeclaredId = True
  268. Attribute VB_Exposed = False
  269. Option Compare Database
  270. Private Sub Annuler_Click()
  271. Me.impr = "annuler"
  272. End Sub
  273. Private Sub Ok_Click()
  274. Dim impr As String
  275. Me.impr = Me.lstImpr
  276. End Sub
  277. Private Sub Form_Current()
  278. Me.impr = ""
  279. 'on liste les imprimantes
  280. For Each prt In Application.Printers
  281. Me.lstImpr.AddItem prt.DeviceName
  282. Next
  283. Me.lstImpr.AllowValueListEdits = False
  284. End Sub