borderless windows in vc++

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
:-(
 
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();
}
--
~~~~~~~~~~~~~~~~~~~
İyi Çalışmalar
Alper AKÇAYÖZ (Bil Muh)

Wish You Good Work
Alper AKCAYOZ (Bil Muh)
 
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?
 
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/

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

Wish You Good Work
Alper AKCAYOZ (Bil Muh)
 
Back
Top