Components for programmers اجزای برنامه نویسی برای برنامه نویسان

با قرار دادن این جزء در برنامه هایتان می توانید مقدار هر  عدد را به حروف داشته باشید
مثال ویژوال بیسیک

 VERSION 5.00
Object = "{CFBCF234-C4D9-42E6-91D3-E228ADDAAD6A}#1.0#0"; "Dig2LetRM.ocx"
Begin VB.Form Form1
   Caption         =   "Form1"
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox Text1
      Height          =   495
      Width           =   2415
   End
   Begin Digit2Letter.Dig2Let Dig2Let1
      Visible         =   0   'False
      Width           =   3015
   End
   Begin VB.Label Label1
      Caption         =   "Label1"
      Height          =   1155
      Width           =   4515
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Text1_Change()
    Dim Dg
    Dg = Val(Text1)
    If Dg = 0 Then Exit Sub
    Dig2Let1.Digit = Dg
    Label1.Caption = Dig2Let1.Letters
End Sub

Dig2LetRM.ocx

  با این جزء در برنامه، کاربر برنامه تان میتواند به راحتی تاریخهای هجری خورشیدی را انتخاب کند و شما مقدار تاریخ را با تیپ string خواهید داشت.
مثال
ویژوال بیسیک

VERSION 5.00
Object = "{D9490850-2181-49B2-9824-DC6F83175124}#6.0#0"; "SDate.ocx"
Begin VB.Form Form1
   Caption         =   "Form1"
   ClientHeight    =   5925
   ClientWidth     =   4005
   StartUpPosition =   3  'Windows Default
   Begin SDate.SHDate SHDate1
      Height          =   4575
      Width           =   3195
   End
   Begin VB.Label Label1
      Alignment       =   2  'Center
      Caption         =   "Label1"
      Height          =   375
      Width           =   3315
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_Load()
    Label1.Caption = SHDate1.SDate
End Sub

Private Sub SHDate1_Click()
    Label1.Caption = SHDate1.SDate
End Sub

SDate.ocx

 

 

 

 

 

 

 

 

 

 

Home |Hijri calendar | Escher sketch pad | MyWeblog |E-MAIL me



Updated : Jan. 28, 2011 by: Ali Mokhtari