التنبيهات التالية ظهرت :
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 864 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 864 errorHandler->error



تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
تخزين لون button في القاعدة
#1

.rar   WindowsApplication3.rar (الحجم : 144.49 ك ب / التحميلات : 56)
.rar   WindowsApplication3.rar (الحجم : 144.49 ك ب / التحميلات : 56) السلام عليكم ورحمة الله وبركاته 

اريد تخزين لون button backcolor 


في القاعدة واسترجاعها 

مرفق مثال 
المشكلة تخزين في لون button في القاعدة 

  Private Sub ConvertColorToString()
        Dim FontColor1 As New SolidBrush(TextBox1.ForeColor)
        Dim converter As TypeConverter = TypeDescriptor.GetConverter(GetType(Color))
        ' Saving Font object as a string
        FontTextboxColor1 = converter.ConvertToString(FontColor1)


        'المشكلة هنا في التحويل من لون البوتين الي string
        '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
        'Dim FontColor2 As New Color(Button3.BackColor)
        'Dim converter1 As TypeConverter = TypeDescriptor.GetConverter(GetType(Color))
        '' Saving Font object as a string
        'FontTextboxColor1 = converter1.ConvertToString(FontColor2)

        '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
        FontButtonColor2 = "red"
    End Sub
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
تخزين لون button في القاعدة - بواسطة basem902 - 17-01-16, 12:18 PM


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم