Re: Registering OCX programmatically

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: J French (erewhon_at_nowhere.com)
Date: 06/03/04


Date: Thu, 3 Jun 2004 09:29:47 +0000 (UTC)

On Wed, 2 Jun 2004 10:30:32 -0700, "Thomas Scheiderich"
<tfs@deltanet.com> wrote:

<snip>

>
>Where a richtextbox is "expensive", is making sure that the OCX is on the
>target machine(s). I found that out yesterday when they tried to move the
>program over to the target machine. This was a little irritating, but
>without OCX's you would be limited to what MS feels is important and would
>be without some perfectly good objects that give really good functionality,
>with minimal effort (remember I was also one that was hesitant on using it -
>but that was because I thought everyone was talking about the commercial
>one, not the MS one).

Yes, it was interesting
- I assumed a different terminology for 'expensive'

>> With the Frames stuff we have been suggesting, you could easily
>> replace the RichTextbox with a PictureBox or preferably a UserControl
>> (obviously not making an OCX out of the UserControl)
>
>Wouldn't a UserControl have the same problems as an OCX as far as being
>"expensive?

Nope - you can compile a UserControl right into your project
- no OCX - no separate files - just the EXE

As a digression, I find that a lot of the OCXes that come with VB can
be replaced fairly easily, either by using APIs directly or by
simulating the controls
- as you are about to find out with the TabStrip

>I am still looking at the frames example Bob posted to better see what
>everyone is talking about (having a problem getting it to do what Bob says
>it will - I assume I missed something).
>
>I don't understand how I can change RichTextBox with a PictureBox. With my
>RichTextBox, I am adding text, changing the font and color. I didn't know
>you could do that with a PictureBox. I don't see a text property in the
>Property manager.

No, a Picturebox does not have a .Text property
- but you can Print to it

eg: Picture1.Print "Hullo World"



Relevant Pages

  • Re: DragOver behaves differently in UserControl?
    ... >>>to convert the group into a UserControl. ... >>>is dragged over the said PictureBox.) ... >source control was outside the usercontrol. ... >picturebox (there's an array of them inside the main container picturebox). ...
    (microsoft.public.vb.winapi)
  • Re: Invalidate() compared to Refresh()
    ... I wonder about my basic design (which really came from a VB6 UserControl) ... I have a UserControl which contains a Picturebox. ... Wouldn't the control just clip? ... To make the picturebox persistent I do not draw on it but rather draw on a ...
    (microsoft.public.dotnet.languages.vb)
  • Re: DragOver behaves differently in UserControl?
    ... >>to convert the group into a UserControl. ... >>is dragged over the said PictureBox.) ... >>except that the DragOver event for the PictureBox doesn't fire any more. ... picturebox (there's an array of them inside the main container picturebox). ...
    (microsoft.public.vb.winapi)
  • Re: SetTextColor funktioniert nicht (etwas OT)
    ... > wenn das Control keine Textbox oder Picturebox ist. ... > Usercontrol wie eine Textbox oder Picturebox ... Prev by Date: ... Next by Date: ...
    (microsoft.public.de.vb)
  • WinForm Event handling in Javascript Not working.
    ... I've a Usercontrol that I'm hosting on a Web Page. ... wrapper for it so I can raise events to the web page.. ... The target machine has the same framework version. ... The Events dont work in the page. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)