StrataFrame Forum

Creating background image for .NET forms

http://forum.strataframe.net/Topic24372.aspx

By Edhy Rijo - 8/29/2009

Hi all,



My wife is trying to create a nice background logo to be used in my custom Login form, but for some reason, when I try to use the image as a background it display a white column on the left and not matter what I do, it will not cover all the form. I also test it with a PictureBox and got the same result.



I noticed that the StrataFlix login sample uses a custom background image (not included in the project), is there any specific rule or setting I should tell my wife about this image so it can be used on my forms? She is using Adobe illustrator to create the image.



Thanks!
By Trent L. Taylor - 8/29/2009

Can you post the PNG so I can see it to determine if this is within the image or the program?
By Edhy Rijo - 8/29/2009

Thanks Trent, here is the png file.
By Trent L. Taylor - 8/29/2009

That is a good looking image. Tell you wife she did a great job. It looks like it should apply just fine as a background image. Check your tiling options as you will not want to use tiling but rather size the form to the exact dimensions.
By Edhy Rijo - 8/29/2009

Trent L. Taylor (08/29/2009)
That is a good looking image. Tell you wife she did a great job.


Well, now she will believe me when I tell her that the image looks pretty good. Thanks.



Check your tiling options as you will not want to use tiling but rather size the form to the exact dimensions.


I did that and still it keeps showing a white column on the left side. Sorry I am not at my computer and cannot show you a screenshot, but if you add this image to a PictureBox or a Form.BackgroundImage you will see the problem.



I know the problem is with the image settings somewhere in Illustrator but we have not been able to find out why.



Here is another version of the background image. (After your compliments, she insisted me to upload this one) Hehe
By Russell Scott Brown - 8/29/2009

I think all you need to do is to crop the image first.

By Russell Scott Brown - 8/29/2009

I also noticed that by default the picture control sets the BackgroundImageLayout to Tile.  Changing that to Stretch gets rid of the white strip to the left of the image.
By Trent L. Taylor - 8/29/2009

Ahh, no it is the image. There is spacing on the left, right, and a portion of a tile beneath it as well. See the attached image to see what the image actually looks like. There are some transparencies which I have changed to black so you can see what is going on with the image. The tile beneath could actually be a transparency also, but you need to create an actual cropped image. The reason I missed it before was due to the transparency of the left side. You can actually see the gap on the left of the preview of the image you posted as well.
By Russell Scott Brown - 8/29/2009

Yes, this is what I noticed as well.  Thanks Trent.
By Edhy Rijo - 8/29/2009

Russ, Trent,



Thanks a lot for the inside on this one. My wife end up cropping the image in Photoshop since she could not find any other way to do it in Illustrator. Now looks great!
By Russell Scott Brown - 8/29/2009

It was easiest to crop in Microsoft Office Picture Manager.  Only took a few seconds.
By Edhy Rijo - 8/29/2009

Russell Scott Brown (08/29/2009)
It was easiest to crop in Microsoft Office Picture Manager. Only took a few seconds.




Agree, even in Cantasia Studio, but try to explain that to my wife w00t she is in the Mac world with all the goodies.



I will be taking on the iPhone soon to create a small application that will receive push notifications from my SF project. Still don't know where to start but sure it will be fun. BigGrin
By Russell Scott Brown - 8/29/2009

Believe it or not you can't actually CROP an image in Illustrator!  You can achieve the same effect though by going through about a dozen ugly steps but it is just easier to use practically anything else.

Speaking of the iPhone, I noticed this the other day.  This would be the way to go but is expensive at $800:

http://www.componentone.com/SuperProducts/StudioiPhone/

An iPhone Simulator:

http://www.testiphone.com/

Developing with ASP.NET and AJAX:

http://steveorr.net/articles/iPhone.aspx

Another interesting article:

http://weblogs.asp.net/aaronlerch/archive/2008/06/08/rock-the-iphone-with-asp-net-mvc.aspx

I have always want to mess around with iPhone apps too.  My wife has one and the potential just seems enormous.  I only just recently started looking into it but I know you can do it just using AJAX

By Edhy Rijo - 9/1/2009

Hi Russell,

Sorry I missed this post. w00t



Thanks a lot for the iPhone links, I will check them all and post back my findings, even though I estimate I will working on the iPhone project around November this year.



The Component One looks inviting, since I believe you work with .NET and they will just add the iPhone look alike controls, but the application most be over the web, APS.NET I guess.



I am more toward to creating this application native in xCode I believe its their language, so the application will be installed in the iPhone and will only connect to the web to grab the data. Anyway I will investigate all the possibilities before starting the project.