Hi, I would like to put a picture in a textbox background, anyone tells me if it can be done. The reason is I need to put some photo (.jpg image) in a very large text box so that my text box could look attractive while displaying text.
Would be grateful if someone give suggestion how to do that.
Thanks.
Zela
Comments
That said, every solution out there appears to be creating your own Subclass of Textbox that draws the image properly and is moderate to advanced code.
If you want to do something like that, here's suggestion on where to start:
http://www.codeproject.com/KB/edit/alphablendtextbox.aspx
This is in C#, if you need, I can translate it,
Sean Campbell
thank you very much and awaiting your help.
zela.
I will take a crack at finishing it this weekend,
Sean C
If You Use RichTextBox You Can Do Whatever You Want...
zela.
I converted the source files for the textbox to VB and included a form with an example of adding the Textbox dynamically on the load function.
Looking at the original project, you could choose to include the DLL compiled from C# and use that in a VB Project (there is an example in the original Source project from the codeproject link I sent) in case you prefer to use the original.
I used a code converter here: http://www.developerfusion.com/tools/convert/csharp-to-vb/ to convert the source in both win32.cs and AlphaTextBox.cs (I had to change a couple things after I converted it to get it to run, namely changing UInteger to Integer and removing the Namespace declaration)
Happy coding, let me know when you download that so I can remove it from my server
Theres another thing I wonder if you could give suggestion or help me on this. This small application i made with this vb.net 2003 I build an installation package using smart install maker program but this package required dotnet 1.1 to run. Is there anyway I include the dotnet 1.1 necessary file along with the setup program i made with this Smart Install maker during building the installation package or the dotnet has to be install separately each time when installing the software.
Would be grateful if you could throw a light on this matter.
Thank you.
Zela
Theres another thing wonder if you could give suggestion. This small sofware i made using vb.net 2003 which use .xml database, i create a installation package using smart install maker, but the software requires dotnet 1.1 to run. Whenever install the software I have to install the dotnet version separately. Is there any way to build the whole necessary file using install maker at one go so that all the necessary file for running my software could be install at one time.
Would be grateful if you could throw some light on this.
Thanks anyway.
Zela.
Sometimes, When I install a new piece of software, it checks for .Net Framework and will install the necessary version of .Net if it isn't already installed. So I assume that this is do-able, I will look around for more information on this subject for you.
-Sean Campbell