home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / vrac / regform.zip / REG-VB3.FRM < prev    next >
Text File  |  1995-07-20  |  15KB  |  455 lines

  1. VERSION 2.00
  2. Begin Form reg 
  3.    AutoRedraw      =   -1  'True
  4.    BackColor       =   &H00C0C0C0&
  5.    BorderStyle     =   3  'Fixed Double
  6.    Caption         =   "Disk And Desk Inc. Registration Form"
  7.    ClientHeight    =   4290
  8.    ClientLeft      =   3300
  9.    ClientTop       =   3705
  10.    ClientWidth     =   7230
  11.    Height          =   4695
  12.    Icon            =   REG-VB3.FRX:0000
  13.    Left            =   3240
  14.    LinkTopic       =   "Form1"
  15.    MaxButton       =   0   'False
  16.    ScaleHeight     =   4290
  17.    ScaleWidth      =   7230
  18.    Top             =   3360
  19.    Width           =   7350
  20.    Begin CommandButton Command3 
  21.       Caption         =   "&Save As Text"
  22.       FontBold        =   0   'False
  23.       FontItalic      =   0   'False
  24.       FontName        =   "MS Sans Serif"
  25.       FontSize        =   8.25
  26.       FontStrikethru  =   0   'False
  27.       FontUnderline   =   0   'False
  28.       Height          =   345
  29.       Left            =   5310
  30.       TabIndex        =   22
  31.       Top             =   510
  32.       Width           =   1815
  33.    End
  34.    Begin CommandButton Command2 
  35.       Cancel          =   -1  'True
  36.       Caption         =   "&Close"
  37.       FontBold        =   0   'False
  38.       FontItalic      =   0   'False
  39.       FontName        =   "MS Sans Serif"
  40.       FontSize        =   8.25
  41.       FontStrikethru  =   0   'False
  42.       FontUnderline   =   0   'False
  43.       Height          =   345
  44.       Left            =   6240
  45.       TabIndex        =   17
  46.       Top             =   120
  47.       Width           =   900
  48.    End
  49.    Begin CommandButton Command1 
  50.       Caption         =   "&Print"
  51.       FontBold        =   0   'False
  52.       FontItalic      =   0   'False
  53.       FontName        =   "MS Sans Serif"
  54.       FontSize        =   8.25
  55.       FontStrikethru  =   0   'False
  56.       FontUnderline   =   0   'False
  57.       Height          =   345
  58.       Left            =   5310
  59.       TabIndex        =   16
  60.       Top             =   120
  61.       Width           =   900
  62.    End
  63.    Begin TextBox Text1 
  64.       Enabled         =   0   'False
  65.       FontBold        =   0   'False
  66.       FontItalic      =   0   'False
  67.       FontName        =   "MS Sans Serif"
  68.       FontSize        =   8.25
  69.       FontStrikethru  =   0   'False
  70.       FontUnderline   =   0   'False
  71.       Height          =   285
  72.       Index           =   7
  73.       Left            =   1830
  74.       TabIndex        =   15
  75.       Top             =   3870
  76.       Width           =   3345
  77.    End
  78.    Begin TextBox Text1 
  79.       FontBold        =   0   'False
  80.       FontItalic      =   0   'False
  81.       FontName        =   "MS Sans Serif"
  82.       FontSize        =   8.25
  83.       FontStrikethru  =   0   'False
  84.       FontUnderline   =   0   'False
  85.       Height          =   1515
  86.       Index           =   6
  87.       Left            =   1830
  88.       MultiLine       =   -1  'True
  89.       TabIndex        =   13
  90.       Top             =   2130
  91.       Width           =   3345
  92.    End
  93.    Begin TextBox Text1 
  94.       FontBold        =   0   'False
  95.       FontItalic      =   0   'False
  96.       FontName        =   "MS Sans Serif"
  97.       FontSize        =   8.25
  98.       FontStrikethru  =   0   'False
  99.       FontUnderline   =   0   'False
  100.       Height          =   285
  101.       Index           =   5
  102.       Left            =   1830
  103.       TabIndex        =   11
  104.       Top             =   1800
  105.       Width           =   3345
  106.    End
  107.    Begin TextBox Text1 
  108.       FontBold        =   0   'False
  109.       FontItalic      =   0   'False
  110.       FontName        =   "MS Sans Serif"
  111.       FontSize        =   8.25
  112.       FontStrikethru  =   0   'False
  113.       FontUnderline   =   0   'False
  114.       Height          =   285
  115.       Index           =   4
  116.       Left            =   1830
  117.       TabIndex        =   9
  118.       Top             =   1470
  119.       Width           =   3345
  120.    End
  121.    Begin TextBox Text1 
  122.       FontBold        =   0   'False
  123.       FontItalic      =   0   'False
  124.       FontName        =   "MS Sans Serif"
  125.       FontSize        =   8.25
  126.       FontStrikethru  =   0   'False
  127.       FontUnderline   =   0   'False
  128.       Height          =   285
  129.       Index           =   3
  130.       Left            =   1830
  131.       TabIndex        =   7
  132.       Top             =   1140
  133.       Width           =   3345
  134.    End
  135.    Begin TextBox Text1 
  136.       FontBold        =   0   'False
  137.       FontItalic      =   0   'False
  138.       FontName        =   "MS Sans Serif"
  139.       FontSize        =   8.25
  140.       FontStrikethru  =   0   'False
  141.       FontUnderline   =   0   'False
  142.       Height          =   285
  143.       Index           =   2
  144.       Left            =   1830
  145.       TabIndex        =   5
  146.       Top             =   810
  147.       Width           =   3345
  148.    End
  149.    Begin TextBox Text1 
  150.       FontBold        =   0   'False
  151.       FontItalic      =   0   'False
  152.       FontName        =   "MS Sans Serif"
  153.       FontSize        =   8.25
  154.       FontStrikethru  =   0   'False
  155.       FontUnderline   =   0   'False
  156.       Height          =   285
  157.       Index           =   1
  158.       Left            =   1830
  159.       TabIndex        =   3
  160.       Top             =   480
  161.       Width           =   3345
  162.    End
  163.    Begin TextBox Text1 
  164.       FontBold        =   0   'False
  165.       FontItalic      =   0   'False
  166.       FontName        =   "MS Sans Serif"
  167.       FontSize        =   8.25
  168.       FontStrikethru  =   0   'False
  169.       FontUnderline   =   0   'False
  170.       Height          =   285
  171.       Index           =   0
  172.       Left            =   1830
  173.       TabIndex        =   1
  174.       Top             =   150
  175.       Width           =   3345
  176.    End
  177.    Begin Image Image1 
  178.       Height          =   480
  179.       Left            =   210
  180.       Top             =   210
  181.       Width           =   480
  182.    End
  183.    Begin Label Label3 
  184.       BackStyle       =   0  'Transparent
  185.       Caption         =   "Richard Ratayczak  2553A South Howell Ave. Milwaukee, WI 53207  USA"
  186.       FontBold        =   0   'False
  187.       FontItalic      =   0   'False
  188.       FontName        =   "MS Sans Serif"
  189.       FontSize        =   8.25
  190.       FontStrikethru  =   0   'False
  191.       FontUnderline   =   0   'False
  192.       Height          =   855
  193.       Index           =   1
  194.       Left            =   5220
  195.       TabIndex        =   21
  196.       Top             =   1890
  197.       Width           =   1845
  198.       WordWrap        =   -1  'True
  199.    End
  200.    Begin Label Label2 
  201.       AutoSize        =   -1  'True
  202.       BackStyle       =   0  'Transparent
  203.       Caption         =   "Mail To:"
  204.       FontBold        =   0   'False
  205.       FontItalic      =   0   'False
  206.       FontName        =   "MS Sans Serif"
  207.       FontSize        =   8.25
  208.       FontStrikethru  =   0   'False
  209.       FontUnderline   =   -1  'True
  210.       Height          =   195
  211.       Left            =   5340
  212.       TabIndex        =   20
  213.       Top             =   1650
  214.       Width           =   570
  215.    End
  216.    Begin Label Label3 
  217.       BackStyle       =   0  'Transparent
  218.       Caption         =   "Continental US Residents the price is stated above. For International Customers, please add $10 for shipping..."
  219.       FontBold        =   0   'False
  220.       FontItalic      =   0   'False
  221.       FontName        =   "MS Sans Serif"
  222.       FontSize        =   8.25
  223.       FontStrikethru  =   0   'False
  224.       FontUnderline   =   0   'False
  225.       Height          =   1455
  226.       Index           =   0
  227.       Left            =   5250
  228.       TabIndex        =   19
  229.       Top             =   2790
  230.       Width           =   1755
  231.       WordWrap        =   -1  'True
  232.    End
  233.    Begin Label Price 
  234.       AutoSize        =   -1  'True
  235.       BackStyle       =   0  'Transparent
  236.       Caption         =   "Price: $"
  237.       FontBold        =   0   'False
  238.       FontItalic      =   0   'False
  239.       FontName        =   "MS Sans Serif"
  240.       FontSize        =   8.25
  241.       FontStrikethru  =   0   'False
  242.       FontUnderline   =   0   'False
  243.       Height          =   195
  244.       Left            =   5340
  245.       TabIndex        =   18
  246.       Top             =   1020
  247.       Width           =   540
  248.    End
  249.    Begin Label Label1 
  250.       Alignment       =   1  'Right Justify
  251.       AutoSize        =   -1  'True
  252.       BackStyle       =   0  'Transparent
  253.       Caption         =   "Name Of Program You Are Registering:"
  254.       FontBold        =   0   'False
  255.       FontItalic      =   0   'False
  256.       FontName        =   "MS Sans Serif"
  257.       FontSize        =   8.25
  258.       FontStrikethru  =   0   'False
  259.       FontUnderline   =   0   'False
  260.       Height          =   195
  261.       Index           =   7
  262.       Left            =   570
  263.       TabIndex        =   14
  264.       Top             =   3660
  265.       Width           =   2775
  266.    End
  267.    Begin Label Label1 
  268.       Alignment       =   1  'Right Justify
  269.       AutoSize        =   -1  'True
  270.       BackStyle       =   0  'Transparent
  271.       Caption         =   "Comments:"
  272.       FontBold        =   0   'False
  273.       FontItalic      =   0   'False
  274.       FontName        =   "MS Sans Serif"
  275.       FontSize        =   8.25
  276.       FontStrikethru  =   0   'False
  277.       FontUnderline   =   0   'False
  278.       ForeColor       =   &H00000000&
  279.       Height          =   195
  280.       Index           =   6
  281.       Left            =   1020
  282.       TabIndex        =   12
  283.       Top             =   2130
  284.       Width           =   795
  285.    End
  286.    Begin Label Label1 
  287.       Alignment       =   1  'Right Justify
  288.       AutoSize        =   -1  'True
  289.       BackStyle       =   0  'Transparent
  290.       Caption         =   "E-mail Address 2:"
  291.       FontBold        =   0   'False
  292.       FontItalic      =   0   'False
  293.       FontName        =   "MS Sans Serif"
  294.       FontSize        =   8.25
  295.       FontStrikethru  =   0   'False
  296.       FontUnderline   =   0   'False
  297.       ForeColor       =   &H00000000&
  298.       Height          =   195
  299.       Index           =   5
  300.       Left            =   570
  301.       TabIndex        =   10
  302.       Top             =   1800
  303.       Width           =   1215
  304.    End
  305.    Begin Label Label1 
  306.       Alignment       =   1  'Right Justify
  307.       AutoSize        =   -1  'True
  308.       BackStyle       =   0  'Transparent
  309.       Caption         =   "E-mail Address 1:"
  310.       FontBold        =   0   'False
  311.       FontItalic      =   0   'False
  312.       FontName        =   "MS Sans Serif"
  313.       FontSize        =   8.25
  314.       FontStrikethru  =   0   'False
  315.       FontUnderline   =   0   'False
  316.       ForeColor       =   &H00000000&
  317.       Height          =   195
  318.       Index           =   4
  319.       Left            =   570
  320.       TabIndex        =   8
  321.       Top             =   1470
  322.       Width           =   1215
  323.    End
  324.    Begin Label Label1 
  325.       Alignment       =   1  'Right Justify
  326.       AutoSize        =   -1  'True
  327.       BackStyle       =   0  'Transparent
  328.       Caption         =   "Home Phone:"
  329.       FontBold        =   0   'False
  330.       FontItalic      =   0   'False
  331.       FontName        =   "MS Sans Serif"
  332.       FontSize        =   8.25
  333.       FontStrikethru  =   0   'False
  334.       FontUnderline   =   0   'False
  335.       ForeColor       =   &H00000000&
  336.       Height          =   195
  337.       Index           =   3
  338.       Left            =   810
  339.       TabIndex        =   6
  340.       Top             =   1140
  341.       Width           =   975
  342.    End
  343.    Begin Label Label1 
  344.       Alignment       =   1  'Right Justify
  345.       AutoSize        =   -1  'True
  346.       BackStyle       =   0  'Transparent
  347.       Caption         =   "City, State, Zip:"
  348.       FontBold        =   0   'False
  349.       FontItalic      =   0   'False
  350.       FontName        =   "MS Sans Serif"
  351.       FontSize        =   8.25
  352.       FontStrikethru  =   0   'False
  353.       FontUnderline   =   0   'False
  354.       ForeColor       =   &H00000000&
  355.       Height          =   195
  356.       Index           =   2
  357.       Left            =   720
  358.       TabIndex        =   4
  359.       Top             =   810
  360.       Width           =   1095
  361.    End
  362.    Begin Label Label1 
  363.       Alignment       =   1  'Right Justify
  364.       AutoSize        =   -1  'True
  365.       BackStyle       =   0  'Transparent
  366.       Caption         =   "Address:"
  367.       FontBold        =   0   'False
  368.       FontItalic      =   0   'False
  369.       FontName        =   "MS Sans Serif"
  370.       FontSize        =   8.25
  371.       FontStrikethru  =   0   'False
  372.       FontUnderline   =   0   'False
  373.       ForeColor       =   &H00000000&
  374.       Height          =   195
  375.       Index           =   1
  376.       Left            =   1170
  377.       TabIndex        =   2
  378.       Top             =   480
  379.       Width           =   615
  380.    End
  381.    Begin Label Label1 
  382.       Alignment       =   1  'Right Justify
  383.       AutoSize        =   -1  'True
  384.       BackStyle       =   0  'Transparent
  385.       Caption         =   "Name:"
  386.       FontBold        =   0   'False
  387.       FontItalic      =   0   'False
  388.       FontName        =   "MS Sans Serif"
  389.       FontSize        =   8.25
  390.       FontStrikethru  =   0   'False
  391.       FontUnderline   =   0   'False
  392.       ForeColor       =   &H00000000&
  393.       Height          =   195
  394.       Index           =   0
  395.       Left            =   1320
  396.       TabIndex        =   0
  397.       Top             =   150
  398.       Width           =   465
  399.    End
  400. End
  401.  
  402. Sub Command1_Click ()
  403. On Error Resume Next
  404. Me.BackColor = &HFFFFFF
  405. Me.PrintForm
  406. Me.BackColor = &HC0C0C0
  407. End Sub
  408.  
  409. Sub Command2_Click ()
  410. Unload reg
  411. End Sub
  412.  
  413. Sub Command3_Click ()
  414. Dim Answer As String, x  As Integer, D As String
  415. Answer = InputBox("Enter the name of the filename to save this to:" + Chr$(10) + Chr$(10) + "(Leave blank to cancel)", "Save Registration As Text")
  416. If Answer = "" Then Exit Sub
  417. On Error GoTo FileErr
  418. D = Chr$(13) + Chr$(10)
  419. x = FreeFile
  420. Open Answer For Output As x
  421. Print #x, App.Title + " - Registration Form" + D
  422. For A = 0 To 7
  423.     Print #x, Text1(A).Tag + " " + Text1(A).Text
  424. Next A
  425. Print #x, D + Price.Caption
  426. Print #x, D + Label2.Caption
  427. Print #x, D + Label3(1).Caption
  428. Print #x, D + Label3(0).Caption
  429. Close #x
  430. MsgBox "File saved as: " + Answer, 0, App.Title
  431. Exit Sub
  432. FileErr:
  433. MsgBox "Invalid Filename Or Disk Full.", 16, App.Title
  434. Exit Sub
  435. Resume Next
  436. Exit Sub
  437. End Sub
  438.  
  439. Sub Form_Load ()
  440. Dim D As String
  441. left = screen.Width / 2 - Me.Width / 2
  442. top = screen.Height / 2 - Me.Height / 2
  443. Caption = App.Title + " - Registration Form"
  444. Text1(7).Text = App.Title
  445. Image1.Picture = Me.Icon
  446. Price.Caption = "Price: $" + AppPrice
  447. For A = 0 To 7
  448.     Text1(A).Tag = Label1(A).Caption
  449. Next A
  450. D = Chr$(13) + Chr$(10)
  451. Label3(1).Caption = "Richard Ratayczak" + D + "2553A South Howell Ave." + D + "Milwaukee, WI 53207  USA"
  452. Label3(0).Caption = "Continental US Residents the price" + D + "is stated above. " + D + "For International Customers, " + D + "please add $10 for shipping..."
  453. End Sub
  454.  
  455.