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.

78 lines
1.9 KiB

  1. VERSION 5.00
  2. Begin VB.Form NewFaxDialog
  3. Caption = "New Fax Document"
  4. ClientHeight = 2520
  5. ClientLeft = 6300
  6. ClientTop = 5352
  7. ClientWidth = 6048
  8. LinkTopic = "Form1"
  9. ScaleHeight = 2520
  10. ScaleWidth = 6048
  11. Begin VB.CommandButton Cancel
  12. Caption = "Cancel"
  13. Height = 495
  14. Left = 2880
  15. TabIndex = 3
  16. Top = 1320
  17. Width = 1455
  18. End
  19. Begin VB.CommandButton OK
  20. Caption = "OK"
  21. Height = 495
  22. Left = 600
  23. TabIndex = 2
  24. Top = 1320
  25. Width = 1455
  26. End
  27. Begin VB.TextBox FileName
  28. Height = 375
  29. Left = 2160
  30. TabIndex = 0
  31. Top = 360
  32. Width = 3615
  33. End
  34. Begin VB.Label Label1
  35. Caption = "Enter a Document Name:"
  36. Height = 375
  37. Left = 120
  38. TabIndex = 1
  39. Top = 360
  40. Width = 2055
  41. End
  42. End
  43. Attribute VB_Name = "NewFaxDialog"
  44. Attribute VB_GlobalNameSpace = False
  45. Attribute VB_Creatable = False
  46. Attribute VB_PredeclaredId = True
  47. Attribute VB_Exposed = False
  48. Private Sub Cancel_Click()
  49. Unload NewFaxDialog
  50. End Sub
  51. Private Sub Form_Load()
  52. End Sub
  53. Private Sub OK_Click()
  54. If FileName.Text = "" Then
  55. msg = "You must specify a document name"
  56. MsgBox msg, , "Error"
  57. FileName.SetFocus
  58. Exit Sub
  59. End If
  60. Err.Clear
  61. Set FaxDocument = FAX.CreateDocument(FileName.Text)
  62. If Err.Number <> 0 Then
  63. msg = "Could not create new document"
  64. MsgBox msg, , "Error"
  65. Unload NewFaxDialog
  66. Doc = False
  67. Else
  68. Unload NewFaxDialog
  69. Doc = True
  70. End If
  71. End Sub