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

تغير ايقونه الاكسس في وندوز10


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

السلام عليكم اخواني الاعزاء 

هذا كود تغير ايقونه الاكسس في وندوز 7

ولكن لايشتغل في وندوز 10

هل في احد عنده فكرة
Dim intX As Integer
    Const DB_Text As Long = 10
    ' هنا اسم البرنامج اذا رغبت في تغييره
    intX = AddAppProperty("AppTitle", DB_Text, "Tailor program")
    intX = AddAppProperty("AppIcon", DB_Text, CurrentProject.path & "\DATA\Scans\" & "Icon_001.ico")
    intX = AddAppProperty("AppTitle", 10, "Tailor program")
    intX = AddAppProperty("AppIcon", 10, IconPath)
    CurrentDb.Properties("UseAppIconForFrmRpt") = 1
    Application.RefreshTitleBar

 

رابط هذا التعليق
شارك

وعليكم السلام ورحمة الله وبركاته

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

Function ChangeProperty(strPropName As String, varPropType As String, varPropValue As Variant) As Integer
Dim dbs As DAO.Database
Dim prp As DAO.Property

Set dbs = CurrentDb

On Error GoTo PROC_ERROR
dbs.Properties(strPropName) = varPropValue
ChangeProperty = True

PROC_EXIT:
    On Error Resume Next
    Set prp = Nothing
    Set dbs = Nothing
    Exit Function

PROC_ERROR:
If Err.Number = 3270 Then
    Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue)
    dbs.Properties.Append prp
    Resume Next
Else
    ChangeProperty = False
    Resume PROC_EXIT
End If
End Function

وفي زر الامر ضع الكود التالي

    ChangeProperty "AppIcon", dbText, CurrentProject.Path & "\N.ico"
    ChangeProperty "AppTitle", dbText, "officena"
    Application.RefreshTitleBar

تحياتي

رابط هذا التعليق
شارك

وللفائدة

يمكنك انشاء وتغيير ايقونة سطح المكتب بالكود التالي

    Dim WshShell As Object
    Set WshShell = CreateObject("WScript.Shell")
    Dim strDesktop As String
         strDesktop = WshShell.SpecialFolders("Desktop")
    Dim X As Object
    Set X = WshShell.CreateShortcut(strDesktop & "\Officena.lnk")
        X.TargetPath = CurrentProject.Path & "\" & CurrentProject.Name
        X.WindowStyle = 1
        X.IconLocation = CurrentProject.Path & "\N.Ico"
        X.Description = "Officena"
        X.WorkingDirectory = strDesktop
        X.Save

تحياتي

رابط هذا التعليق
شارك

اخي  محمد أبوعبدالله

للاسف لم ينفع

في وندوز 7 شغال لكن 10 مايرضي يبقى ايقزنه اكسس كما هي

رابط هذا التعليق
شارك

منذ ساعه, ابو ياسين المشولي said:

في وندوز 7 شغال لكن 10 مايرضي يبقى ايقزنه اكسس كما هي

شغال على ويندوز 10 عندي بدون مشاكل

ممكن توضيح للذي يحدث معك او الرساله التي تظهر

تحياتي

رابط هذا التعليق
شارك

لا توجد اي رسايل

فقط على شريط المهام يطلع ايقونه اكسس

لكن في وندوز 7 يطلع الايقونه اللي اخترتها

لا توجد اي رسايل

فقط على شريط المهام يطلع ايقونه اكسس

لكن في وندوز 7 يطلع الايقونه اللي اخترتها

رابط هذا التعليق
شارك

  • 2 weeks later...
  • 4 months later...
  • 2 weeks later...
في ٢٥‏/١‏/٢٠٢١ at 11:48, ابو ياسين المشولي said:

للاسف اخي محمد أبوعبدالله

لم يشتغل على وندوز10

طيب جرب الكود ده 

Function AppShortcut()

Dim StrDisplayName  As String
Dim StrDescription  As String
Dim StrIconPath     As String
Dim DesktopPath     As String
Dim StrHotkey       As String
Dim Shell           As Object
Dim link            As Object

  'StrDisplayName = CurrentProject.Name
  'StrDescription = "Official Sponsor: www.officena.net"
  StrDisplayName = ChrW(1575) & ChrW(1587) & ChrW(1605) & ChrW(32) & ChrW(1575) & ChrW(1604) & ChrW(1576) & ChrW(1585) & ChrW(1606) & ChrW(1575) & ChrW(1605) & ChrW(1580)
  StrDescription = ChrW(1608) & ChrW(1589) & ChrW(1601) & ChrW(32) & ChrW(1575) & ChrW(1604) & ChrW(1576) & ChrW(1585) & ChrW(1606) & ChrW(1575) & ChrW(1605) & ChrW(1580)
  
  Set Shell = CreateObject("WScript.Shell")
  DesktopPath = Shell.SpecialFolders("Desktop")
  Set link = Shell.CreateShortcut(DesktopPath & "\" & StrDisplayName & ".lnk")

  
  StrHotkey = "F7"
  link.Description = StrDescription
  link.TargetPath = CurrentDb.Name
  
    If Dir(CurrentProject.Path & "\Icon\" & "Myicon.ico") <> "" Then
      link.IconLocation = CurrentProject.Path & "\Icon\" & "Myicon.ico, 0"
    Else
      link.IconLocation = SysCmd(acSysCmdAccessDir) & "MSACCESS.EXE, 0"
    End If
  
  link.Hotkey = StrHotkey
  link.WindowStyle = 3
  link.Save
  

End Function

 

وطبعا نستدعى الكود كالاتى 

Private Sub Form_Load()
  Call AppShortcut
End Sub

 

  • Like 1
رابط هذا التعليق
شارك

  • 3 weeks later...

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