اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

الردود الموصى بها

قام بنشر
Private Declare PtrSafe Function ActivateKeyboardLayout Lib "user32.dll" (ByVal mylanguage As Long, flag As Boolean) As Long
    Private Const ar = 1025
    Private Const Eng = 1033
  
Private Sub changeToAr(Cancel As Integer) 
    Call ActivateKeyboardLayout(ar, True)
End Sub

Private Sub changeToEn(Cancel As Integer)
      Call ActivateKeyboardLayout(Eng, True)
End Sub

 

  • Like 1
قام بنشر
20 ساعات مضت, ابوخليل said:
Private Declare PtrSafe Function ActivateKeyboardLayout Lib "user32.dll" (ByVal mylanguage As Long, flag As Boolean) As Long
    Private Const ar = 1025
    Private Const Eng = 1033
  
Private Sub changeToAr(Cancel As Integer) 
    Call ActivateKeyboardLayout(ar, True)
End Sub

Private Sub changeToEn(Cancel As Integer)
      Call ActivateKeyboardLayout(Eng, True)
End Sub

اخى ابو خليل 

اولا : الف شكرا على الرد والاهتمام 

ثانيا : ممكن شرح وضع الكود فين 

ثالثا : المطلوب عند نقر على زر اذا كانت اللغة انجليزى يتم التحويل الى العربى 

قام بنشر

الكود هكذا افضل

#If Win64 Then
    Private Declare PtrSafe Function ActivateKeyboardLayout Lib "user32" (ByVal HKL As LongPtr, ByVal Flag As Long) As LongPtr
#Else
    Private Declare Function ActivateKeyboardLayout Lib "user32.dll" (ByVal HKL As Long, Flag As Long) As Long
#End If
 
Public Const AR = 1025
Public Const EN = 1033
Public Function changeToAr()
    Call ActivateKeyboardLayout(AR, True)
End Function

Public Function changeToEn()
     Call ActivateKeyboardLayout(EN, True)
End Function

 

تغييير اللغة.mdb

  • Like 1
قام بنشر
5 ساعات مضت, ابوخليل said:

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

يعمل بكفاءة 👍🏼🙂

  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information