Results 1 to 6 of 6

Thread: how to add properties

  1. #1

    Thread Starter
    Lively Member israr's Avatar
    Join Date
    May 2001
    Posts
    73

    Talking how to add properties

    how can i add a font property to an OCX.


    Private Sub VBForums_Newthread()
    If Thread.Question = Hard then
    MSGBox "No one can reply..."
    Else If Thread.Question=Easy then
    Print "It's very easy.."
    MsgBox "God helps those who helps themselves."
    End If
    End sub

  2. #2

  3. #3

    Thread Starter
    Lively Member israr's Avatar
    Join Date
    May 2001
    Posts
    73
    but if it is a compiled ocx.
    Private Sub VBForums_Newthread()
    If Thread.Question = Hard then
    MSGBox "No one can reply..."
    Else If Thread.Question=Easy then
    Print "It's very easy.."
    MsgBox "God helps those who helps themselves."
    End If
    End sub

  4. #4
    hellswraith
    Guest
    You would have to add it in before it is compiled.

  5. #5
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    Is this what you mean. The type will not show up, but it will work.
    There is a sample app included.
    Code:
    Public Property Get Font() As Font
        Set Font = txtTextBox.Font
    End Property
    Public Property Set Font(ByVal New_Font As Font)
        Set txtTextBox.Font = New_Font
    End Property
    Attached Files Attached Files

  6. #6

    Thread Starter
    Lively Member israr's Avatar
    Join Date
    May 2001
    Posts
    73
    I mean that i have a compliled ocx which is an arabic text box but it has no font property and it uses the system default font as the font,It also has a fontsize property.
    Private Sub VBForums_Newthread()
    If Thread.Question = Hard then
    MSGBox "No one can reply..."
    Else If Thread.Question=Easy then
    Print "It's very easy.."
    MsgBox "God helps those who helps themselves."
    End If
    End sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width