Click here to Skip to main content
15,893,190 members
Articles / Programming Languages / C#
Article

How to make Informal Form

Rate me:
Please Sign up or sign in to vote.
2.47/5 (8 votes)
30 Jul 20053 min read 41.4K   1K   21   6
How to make Informal Form Using C#

Sample Image - InformalForm.jpg

Introduction

Suppose you create your own program, I’m sure many of you programmed to make money, or to take more practice in programming or to make programs perform some task we need it in own life whatever the goal of programming, we always interest in the appearance of our program not only to impress your girlfriends or boyfriend, is to create something cool in the same time doesn’t decrease the performance of program.<o:p>

I’ll suppose there you’re like me …. when I see the program for the first time I’ll immediately search on the animation and special effects in it, also when I learn on a new program I don’t believe in ( Learn step by step ) what I do ……….Jump to the interest part of the program and always this part be a special effects part.<o:p>

So in this article we’ll limelight on How to create a form but not in the customary form.

 

The Idea

<o:p> 

In the form property we found a transparent property and transparencyKey property, the first property take a percentage as a value of alpha to determine the value of visibility of the form , in this article we’ll use the second property by selecting any color as a transparencyKey then we will use any graphics editor program like photo shop to create background image ………notice here the space in the picture (the area that you want to make it transparent) should be the same color that you was select it in the transparencyKey.

<o:p> 

First step: Prepare the picture

<o:p> 

I’ll use photo shop in this example but you can use any software-> graphics editor if you are sure it can help you to do the following:<o:p>

  • Create new Image, choose the size you want , in our example the size of width is 401 and height is 414<o:p>
  • From contents choose (Transparent). <o:p>
  • Now make your imagination to draw anything indicate your project.<o:p>
  • Save the image as .GIF<o:p>
  • Make sure Transparency is selected.<o:p>

Why GIF? Because this extinction Files is the best in perform transparency.<o:p>

Now, the Image is completely ready.

<o:p> 

Second step: Setting the form property

<o:p> 

After prepare the Image, start new project or open an old project, then:<o:p>

  • In form property search on transparencyKey and select the Black color. The selecting of color depends on the image that you want to make it as a background, by the experience you’ll found that is the best selecting is select the color that never use in the form (including the Fore color and the image paint color), and sometimes depends on the color system sitting, I’m really not familiar with this part of science!<o:p>
  • Set BackColor property to Black color too.
  • In BackGroundImage property select your GIF image that creates in the previous step.
  • Resize the Form to adjust the Image size.
  • Set the StartPosition to CenterScreen.
  • Finally change FormBorderStyle to none.

In this example I use the form as a login screen, that’s it all, Run it and enjoy.

<o:p>

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Jordan Jordan
I am 22 years old,Student in Jordan University of Science and Technology ,it's my last years in Computer Engineering department , I'm intersted in photo design,3D,FX,web design and programming.

Comments and Discussions

 
Generalthx Pin
omnia mustafa5-May-07 7:05
omnia mustafa5-May-07 7:05 
QuestionMove Form Pin
ahmadahmadi7-Mar-07 21:08
ahmadahmadi7-Mar-07 21:08 
AnswerRe: Move Form Pin
ipsharer10-Aug-07 3:16
ipsharer10-Aug-07 3:16 
GeneralTransparent Key Glitch Pin
PHDENG8117-Aug-05 7:05
PHDENG8117-Aug-05 7:05 
Generalcool Pin
Paul Brower31-Jul-05 8:01
Paul Brower31-Jul-05 8:01 
GeneralRe: cool Pin
Majdi Jamal31-Jul-05 20:23
Majdi Jamal31-Jul-05 20:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.