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 / Languages / Managed C++ / September 2005

Tip: Looking for answers? Try searching our database.

borderless windows in vc++

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dan - 28 Sep 2005 04:03 GMT
i really need to create a window/dialog that just contains a bitmap and
nothing else - no window frame, caption or buttons, or any sign of a grey
background.  so far ive only managed to get rid of system buttons and frames,
but i still can't get rid of a grey border that windows insists on showing.  
i just want a splash screen type thing that ONLY displays the bitmap.  any
help would be gratefully recieved.  i think i must be being very, very dumb
:-(
Alper AKCAYOZ - 28 Sep 2005 09:24 GMT
Hello Dan,
I assume that you are working on Windows Forms. You may follow the below
steps to set a form which looks like a splash form:
1) Open "Properties Window" from "View" menu option.
2) Click onto your form title and select it,
3) Set "FormBorderStyle" property to "None"
4) Set "Locked" property to "True"
5) Set "StartPosition" property to "CenterScreen"
6) Set "WindowState" property to "Normal"
7) Set "ControlBox" property to "False"
8) Set "ShowInTaskbar" property to "False"

Then, put a "PictureBox" control onto your form and set its properties as
below:
1) Set "BorderStyle" to "None"
2) Set "Image" property to choose your image to display
3) Set "SizeMode" property to "StretchImage"
4) Set "Visible" to "True"
5) Set "Dock" property to "Fill".

This settings will only show your image, there will be no visible border or
part of your Windows Form.
If you wish to close this Splash screen after a while, you may put a
"Windows.Forms.Timer" control. Set its properties as below:
1) "Enabled" to "True"
2) "Interval" to "3000" (Runs in every 3 seconds)
3) And write your code into the method of timer as below:
  void timer_SplashClose_Tick(System::Object *sender, System::EventArgs *e)
  {
      //This method will close your form after 3 seconds when form is loaded.
      this->Close();
  }
Signature

~~~~~~~~~~~~~~~~~~~
İyi Çalışmalar
Alper AKÇAYÖZ (Bil Muh)

Wish You Good Work
Alper AKCAYOZ (Bil Muh)

> i really need to create a window/dialog that just contains a bitmap and
> nothing else - no window frame, caption or buttons, or any sign of a grey
[quoted text clipped - 3 lines]
> help would be gratefully recieved.  i think i must be being very, very dumb
> :-(
Dan - 28 Sep 2005 13:23 GMT
sorry, should have told you i was using vc++ v6.  i can't see these option
for the pic cotrol.  is there anothere way?

thanks?

> Hello Dan,
> I assume that you are working on Windows Forms. You may follow the below
[quoted text clipped - 36 lines]
> > help would be gratefully recieved.  i think i must be being very, very dumb
> > :-(
Alper AKCAYOZ - 29 Sep 2005 10:36 GMT
Maybe below links may help you:

HOWTO: Insert a Splash Screen in a Dialog-based Application by Using Visual
C++ .NET
http://support.microsoft.com/?scid=kb;en-us;817372&spid=2990&sid=global

How To Insert a Splash Screen into a Dialog-Based Application
http://support.microsoft.com/kb/190684/

Adding a Splash Screen to Your Applications
http://www.codeguru.com/Cpp/W-D/dislog/splashscreens/article.php/c5029/

Signature

~~~~~~~~~~~~~~~~~~~
İyi Çalışmalar
Alper AKÇAYÖZ (Bil Muh)

Wish You Good Work
Alper AKCAYOZ (Bil Muh)


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.