Re: Scrolling text in a stationary label help needed



<jcrouse1@xxxxxxxxxxx> wrote in message news:1158753139.398359.115790@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Mike, Thanks a lot for your time on this. It really is appreciated.
Anyways, the above code doesn't work for me.

Which "above code" doesn't work? Do you mean the last example I posted? If so, then what, exactly, "doesn't work" about it? What error message are you getting, or what is not happening that you think should happen? It works fine at this end, and I cannot see any reason why it should not also work on your system. Have you definitely set a reference to the DirextX7 type library (Project / References)? And is your Form large enough so that you can actually see the scrolling text? (In the demo code I've positioned it at location (100, 200) pixels). Also, have you changed the hard coded picture path to point to a picture that is present on your own system? All sorts of things could be wrong. Simply saying "it doesn't work for me" doesn't tell me anything!

Anyways, any idea on my transparency issue in my last post.
It is why I was attempting to use a label in the first place.

At this point I've got to ask, "Have you actually read my messages!" Have you in particular actually read the first of the three messages which I posted today (not counting this one)? It starts of with an extract from your question when you said, "However, there is no way to make the picturebox transparent" and my reply is, "Yes there is.". Have you read *all* of that message, in which I explain in great detail how to achieve the "transparency" you are after, and have you actually tried the code I included at the end of that message which does exactly what you are after (text scrolling with a transparent background over a Form's picture). I don't want to sound harsh John, but if you're not going to read my messages (all of them!) and if you're not going to take the time to include some detail in your responses then maybe I'm wasting my time writing them?

Please read in detail ***all of the messages*** I posted in this thread and please try ***all of the code samples*** they contain (lots of different examples). Then, when you have done all that, post back and tell me *exactly* what happens on your system.

Mike



.



Relevant Pages

  • Re: Transparent Picture Box Control
    ... I've just had a look at that code and it uses a standard VB UserControl (with its BackStyle property set to Transparent) to achieve transparency, and it uses the standard VB PaintPicture method to draw the desired image into a hidden VB Autoredraw Picture Box so that it ends up with the drawn image in the Image property of the Autoredraw Picture Box. ... By the way, as a sort of footnote, using UserControls to create transparent "sprites" in this way does make it very easy to draw and animate them on your Form, because the UserControl looks after the drawing and the transparency and your code simply needs to set the Left and Top properties to appropriate values at run time to move the sprites around. ...
    (microsoft.public.vb.general.discussion)
  • Re: Inserting a picture in a file with a watermark
    ... I've always been a little suspicious of the graphics tools built into ... Save Options box check the option for "Save transparent color". ... Insert that GIF file into the Word document. ... seem to get the DRAFT watermark to show up through the picture. ...
    (microsoft.public.word.drawing.graphics)
  • Re: GIF image on a form
    ... Protected Overrides Sub OnPaintBackground ... better off looking for some picture control to take care of that for you. ... Just use DrawImage to render your GIF on the control ... The GIF has a transparent background. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Transparent color in GIF ignored
    ... Although treating gif transparent colors properly would be easier to use... ... > Using Picture Masks ... To keep certain white areas of your .bmp ...
    (microsoft.public.fox.programmer.exchange)
  • Re: GIF image on a form
    ... Protected Overrides Sub OnPaintBackground ... better off looking for some picture control to take care of that for you. ... Just use DrawImage to render your GIF on the control ... The GIF has a transparent background. ...
    (microsoft.public.dotnet.languages.vb)