Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / March 2008

Tip: Looking for answers? Try searching our database.

How can I make Winform with Vista style using .Net Framework 2.0?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wang.ZhiAn - 28 Mar 2008 04:19 GMT
The followings codes I am trying to realize it are:

Firstly, instantiate a Winfrom inherited from "System.Windows.Forms.Form",
Secondly, Load background image to the Winform and override fellowing codes
to  realize transparent effect:
-------------------------------------------------------
protected override CreateParams CreateParams
{
   //set form style
   get
   {
       CreateParams cp = base.CreateParams;
       cp.ExStyle |= 0x00080000; // This form has to have the WS_EX_LAYERED
extended style
       return cp;
   }
}
-------------------------------------------------------

However, Translucence and faintness cannot be achieved by codes above,
Moreover, i am not able to add a new UserControl in that Winform.

How can i solve this problom?
I appreciate other solution as well.
Thank you very much!!!!
Ciaran O''Donnell - 28 Mar 2008 10:27 GMT
Are you tring to do this on Windows Vista or on an earlier version of windows?

Signature

Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com

> The followings codes I am trying to realize it are:
>
[quoted text clipped - 21 lines]
> I appreciate other solution as well.
> Thank you very much!!!!
Wang.ZhiAn - 28 Mar 2008 11:14 GMT
Sorry, I forgot say that I have tried it in WindowsXP SP2
My last purpose is try it in WindowsXP

> Are you tring to do this on Windows Vista or on an earlier version of windows?
>
[quoted text clipped - 23 lines]
> > I appreciate other solution as well.
> > Thank you very much!!!!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.