معرفة بعض المعلومات عن المعالج Processor

14 04 2009

اسم العضو :AhmedEssawy

منتدى الفجوال بيسك
الكود منقول ايضاً ، قم بكتابة التالي في قسم التصاريح :
رمز:
Option Explicit
‘ Name:     Obtaining Information About CPU
‘ Author:   Chong Long Choo

Private Declare Sub GetSystemInfo Lib “kernel32″ (lpSystemInfo _
As SYSTEM_INFO)
Private Type SYSTEM_INFO
    dwOemID As Long
    dwPageSize As Long
    lpMinimumApplicationAddress As Long
    lpMaximumApplicationAddress As Long
    dwActiveProcessorMask As Long
    dwNumberOrfProcessors As Long
    dwProcessorType As Long
    dwAllocationGranularity As Long
    dwReserved As Long
End Type
Public Enum etProcessorType
     PROCESSOR_INTEL_386 = 386
     PROCESSOR_INTEL_486 = 486
     PROCESSOR_INTEL_PENTIUM = 586
     PROCESSOR_MIPS_R4000 = 4000
     PROCESSOR_ALPHA_21064 = 21064
End Enum
Private tmpSystemInfo As SYSTEM_INFO


وفي الدالة :

رمز:
Private Sub Class_Initialize()
    GetSystemInfo tmpSystemInfo
End Sub
Public Function ProcessorType() As etProcessorType
    ‘See declarations for meaning of returned values
    ProcessorType = tmpSystemInfo.dwProcessorType
End Function
Public Function NumberOrfProcessors() As Long
    NumberOrfProcessors = tmpSystemInfo.dwNumberOrfProcessors
End Function
Public Function MaximumApplicationAddress() As Long
    MaximumApplicationAddress = _
       tmpSystemInfo.lpMaximumApplicationAddress
End Function
Public Function MinimumApplicationAddress() As Long
    MinimumApplicationAddress = _
        tmpSystemInfo.lpMinimumApplicationAddress
End Function
Public Function PageSize() As Long
    PageSize = tmpSystemInfo.dwPageSize
End Function
Public Function OemID() As Long
    OemID = tmpSystemInfo.dwOemID
End Function
Public Function Reserved() As Long
    Reserved = tmpSystemInfo.dwReserved




ابسط طريقة للتشفير

14 04 2009

اسم العضو :خالد نمر عدوان

منتدى الفجوال بيسك

 

for i = 1 to len (text1.text)
st1=mid (text1.text,i,1)
as1 = asc (st1)
ch1=chr (255-as1)
st = ch1+st
next
text1.text = st
و كلل ما تحتاجه هو تيكست و كوماند
و ادخل الرمز في الكوماند

مع تحياتي
خالد نمر عدوان الشيخ





كود فتح واغلاق الفورم بطريقة تدريجية جميلة جداً

14 04 2009
اسم العضو :احمد ابوسنة
منتدى الفجوال بيسك
الاخوة اعضاء المنتدي
السلام عليكم ورحمة الله وبركاته
هذه اول مشاركة لى معكم هنا اتمنى ان تكون مفيدة

اضافة عدد 2 تايمر الى الفورم

فى كل تايمر نكتب الاكواد التالية

تايمر 1 عند الفتح

Private Sub Timer1_Timer()
Me.Width = Me.Width + 300
If Me.Width > 4860 Then
Timer1.Enabled = False
End If

End Sub

تايمر 2 عند الاغلاق
Private Sub Timer2_Timer()
Me.Width = Me.Width – 300
If Me.Width < 420 Then
Timer1.Enabled = False
Unload Me
End If

End Sub

ولا ننسي ان نضع فى الفورم لود
هذا الكود

Timer1.Enabled = True

وان نضع فى زر الخروج الكود

Timer2.Enabled = True

وان يكون كلا التايمرين False
وانترفال اكثر من صفر طبعا

اتمنى ان يكون الكود مفيد

محاسب
احمد ابوسنة