Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.5 KiB

  1. VERSION 5.00
  2. Begin VB.Form NewFaxDialog
  3. Caption = "New Fax Document"
  4. ClientHeight = 1800
  5. ClientLeft = 6300
  6. ClientTop = 5355
  7. ClientWidth = 6045
  8. LinkTopic = "Form1"
  9. ScaleHeight = 1800
  10. ScaleWidth = 6045
  11. Begin VB.CommandButton Cancel
  12. Caption = "Cancel"
  13. BeginProperty Font
  14. Name = "Palatino Linotype"
  15. Size = 11.25
  16. Charset = 0
  17. Weight = 700
  18. Underline = 0 'False
  19. Italic = 0 'False
  20. Strikethrough = 0 'False
  21. EndProperty
  22. Height = 495
  23. Left = 2880
  24. TabIndex = 3
  25. Top = 1080
  26. Width = 2895
  27. End
  28. Begin VB.CommandButton OK
  29. Caption = "OK"
  30. BeginProperty Font
  31. Name = "Palatino Linotype"
  32. Size = 11.25
  33. Charset = 0
  34. Weight = 700
  35. Underline = 0 'False
  36. Italic = 0 'False
  37. Strikethrough = 0 'False
  38. EndProperty
  39. Height = 495
  40. Left = 120
  41. TabIndex = 2
  42. Top = 1080
  43. Width = 2535
  44. End
  45. Begin VB.TextBox FileName
  46. Height = 375
  47. Left = 2160
  48. TabIndex = 0
  49. Top = 360
  50. Width = 3615
  51. End
  52. Begin VB.Label Label1
  53. Caption = "Enter a Document Name:"
  54. Height = 375
  55. Left = 120
  56. TabIndex = 1
  57. Top = 360
  58. Width = 2055
  59. End
  60. End
  61. Attribute VB_Name = "NewFaxDialog"
  62. Attribute VB_GlobalNameSpace = False
  63. Attribute VB_Creatable = False
  64. Attribute VB_PredeclaredId = True
  65. Attribute VB_Exposed = False
  66. Private Sub Cancel_Click()
  67. Unload NewFaxDialog
  68. End Sub
  69. Private Sub OK_Click()
  70. If FileName.Text = "" Then
  71. msg = "You must specify a document name"
  72. MsgBox msg, , "Error"
  73. FileName.SetFocus
  74. Exit Sub
  75. End If
  76. Err.Clear
  77. Set FaxDocument = Fax.CreateDocument(FileName.Text)
  78. If Err.Number <> 0 Then
  79. msg = "Could not create new document"
  80. MsgBox msg, , "Error"
  81. Unload NewFaxDialog
  82. Doc = False
  83. Else
  84. Unload NewFaxDialog
  85. Doc = True
  86. End If
  87. End Sub