Results 1 to 9 of 9

Thread: Sheridan Ocx

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,939

    Sheridan Ocx

    i have dowloded the Sheridan ocx and it work fine...
    But i have only 6 option/command existis a new free version of this ocx with other option/command?
    Tks.
    Last edited by luca90; Jan 11th, 2009 at 06:35 AM.

  2. #2

  3. #3
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Sheridan Ocx

    Not sure what your problem is.
    Sheridan Controls are discontinued in VB6. See if this MSKB article helps you.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,939

    Re: Sheridan Ocx

    Quote Originally Posted by iPrank
    Not sure what your problem is.
    Sheridan Controls are discontinued in VB6. See if this MSKB article helps you.
    Hi iPrank tks for note... but i use simply the control Sheridan to colorize the text in command botton ... i dont know other way to make tath, and you?

  5. #5
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Change ForeColor of CommandButton ;)

    There is a workaround,
    Use a checkbox and set it's Style=Graphical during designtime - it will look just like a command-button. You can change it's forecolor.
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Check1_Click()
    4.     If Check1.Value = vbChecked Then
    5.         Check1.Value = vbUnchecked
    6.        
    7.         '--------------------------------------------
    8.         ' Put the codes from Command1_Click here ->
    9.         Check1.ForeColor = QBColor(Rnd * 16)
    10.         MsgBox "Hello world"
    11.         '--------------------------------------------
    12.     End If
    13.    
    14. End Sub
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  6. #6

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,939

    Re: Change ForeColor of CommandButton ;)

    Quote Originally Posted by iPrank
    There is a workaround,
    Use a checkbox and set it's Style=Graphical during designtime - it will look just like a command-button. You can change it's forecolor.
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Check1_Click()
    4.     If Check1.Value = vbChecked Then
    5.         Check1.Value = vbUnchecked
    6.        
    7.         '--------------------------------------------
    8.         ' Put the codes from Command1_Click here ->
    9.         Check1.ForeColor = QBColor(Rnd * 16)
    10.         MsgBox "Hello world"
    11.         '--------------------------------------------
    12.     End If
    13.    
    14. End Sub
    Tks but not completly understand... little zip file with example?

  8. #8
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Sheridan Ocx

    Quote Originally Posted by RhinoBull
    Using Option button will have the same effect as Checkbox.
    But more than one optbtn in same container (non-control array) may cause problem.

    Edit: Sorry.


    @luca90,
    just add a checkbox in your form, change its Style to Graphical from Properties window (hit F4 when the checkbox is selected in the form designer) and paste the code.
    Now run it and press the checkbox. You'll understand.
    Edit:
    As Rhino mentioned, it will be easier with Option buttons.
    VB Code:
    1. Private Sub Option1_Click()
    2.     Option1.Value = False
    3.         '--------------------------------------------
    4.         ' Put the codes from Command1_Click here ->
    5.         Option1.ForeColor = QBColor(Rnd * 16)
    6.         MsgBox "Hello world"
    7. End Sub
    Last edited by iPrank; Aug 25th, 2006 at 10:54 AM.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  9. #9

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