|
Hi,
This is standard behavior for this splash screen.
Because it's a splash screen it's not very often that things move behind the form.
Thanks,
Dameon Black
|
|
|
|
|
Okay, but what if I want to do it? I mean I want to take care of things if something move behind the form?
Any help?
I can buy you a donut
Rgds,
-------------------
Therez No Place like ... 127.0.0.1
|
|
|
|
|
Have you tried triggering the OnPaint by a timer (you can use the timer_tick event and set it to 50ms).
If perform someUIobject.Invalidate it will cause redrawing.
I am not sure how it would affect the other features though.
If you have any success - pls tell me also.
|
|
|
|
|
The transparency is a particularly cool addition to the standard splash screen - thanks!
However, how do you deal with the initial delay when loading the .NET framework? I've found that on older machines, it can take between 10 - 20 seconds for the .NET framework to be loaded after a reboot. During this time, none of my .NET code will run.
I call my splashscreen code as the very first line of my .NET app. However, this isn't executed until the .NET framework is loaded, meaning that there is still a 10 - 20 second delay before my app can show its splashscreen.
Do you know how to get the splashscreen to display before the .NET framework has loaded?
Thanks
-- modified at 11:43 Wednesday 21st June, 2006
|
|
|
|
|
After searching with no luck, I created a Win32 splash screen component for .NET applications that shows a customised splash screen instantly, and then starts your .NET application (and hence the framework) on a background thread.
Works pretty well, and also allows you to pass messages between the splash screen and your .NET app, so you can use it while you initiliase DB connections etc.
Check it out at http://www.quicksplash.net
-- modified at 4:11 Monday 2nd October, 2006
|
|
|
|
|
You *found* a splash screen component? How about you *created* a splash screen component and you're abusing the Code Project feedback system by plugging it on every article that relates to splash screens?
I haven't tried your component so I can't talk to its quality; I'm sure it's very good. But in the interests of full dislosure why don't you just say what you have and offer it without insulting peoples intelligence?
|
|
|
|
|
NVoli,
You're right; that was wrong and unethical of me.
I apologise; and have updated my original message to say that I created the component.
|
|
|
|
|
Hahahaaa!!!!
I was just about to post the URL to your splash screen but decided I would look here to find something better.
I do appreciate the links to two very good articles to MSDN on improving startup time.
My applications loads on startup and runs in the system tray, I don't have the startup issue, what I do have is the initial form is heaving and takes time to load, with that being said; what do you think about putting this on a different thread and then killing it when the form loads.
Thanx!
~Mann.
|
|
|
|
|
Sounds like a good idea - give it a try and let us know how it worked for you.
Some sample code would be great!
|
|
|
|
|
Hello ,,,
I liked this subject so much
but I don't know where I can get this program (WaterScript v2)
Can you lead me ?
Thank you
|
|
|
|
|
Hi
Water Script is an application I wrote for a company which sells water park equipment.
It's a sales tool, park control system, and inventory management program.
Sales - Uses it to display to customers what is possible in a 3D environment.
Inventory - The finished park layout is sent back to WaterOdyssey which is used to determine what parts need to be ordered for the customer.
Customers - Use it to setup how the park runs, what turns on when and how much. Also, it has multiple scenarios for running differently throughout the year.
Here are the web sites:
www.waterodyssey.com
www.fountainpeople.com
Thanks,
David Sisson
|
|
|
|
|
Hi,
Thanks for your tutorial, but there is a problem with VS2005 : When the window behind changing, the splash screen isn't updated.
Have you got a solution ?
Tks.
|
|
|
|
|
This tutorial is ment to be a splash screen only.
This means it is a temporary window and should not have windows behind it which change.
Thanks,
Dameon Black
|
|
|
|
|
hi, im tryin to use your method of creating a splash screen but whenever i click run i get the following message:
An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll<br />
<br />
Additional information: 'null' is not a valid value for 'stream'.
and it highlights:
Public Shared imaSplashScreen As dra.Image = dra.Image.FromStream(APP.GetResource("Splash.png"))
please help me, i have checked everything i can think of and looked at all of your information but cant seem to solve the problem
|
|
|
|
|
It sounds to me like you are not setting the "Splash.png" file to be an Embedded Resource.
After you add the "Splash.png" file to your project you need to click on the image in the Solution Explorer and set the "Build Action" in the properties window to "Embedded Resource".
This should fix your problem.
Thanks,
Dameon Black
|
|
|
|
|
Thats the first thing i checked when i got the error. It is set to embedded resource. i'm stumped lol.
p.s. cheers for the quick reply
|
|
|
|
|
Ok, I'll give you a way to debug the problem.
Goto the "APP.vb" file
use something like this:
APP.m_Assembly.GetManifestResourceNames()
This will give you an array of all your internal resource names.
Make sure the resource you are trying to get is within those names.
Verify that the resource name is the same as one within that list.
Let me know what happens.
Thanks,
Dameon Black
|
|
|
|
|
sorry m8 im new to vb and dont understand how to get it to show me the array of internal resource names.
|
|
|
|
|
Ok, put this code somewhere before the splash screen gets displayed.
Like in the "Initialize()" of your splash screen form.
Dim currentAssembly As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder
For Each resourceName As String In currentAssembly.GetManifestResourceNames()
sb.Append(resourceName)
sb.Append(Environment.NewLine)
Next
System.Windows.Forms.MessageBox.Show(sb.ToString())
It will list the resources in a message box.
|
|
|
|
|
it done nothing i just got the error as usual. anyway thanx for ur help, if you cant think of the problem i'll ask my friend. he had the same error but cant remember how he got round it.
|
|
|
|
|
Without looking at your code it's hard to fix.
If you want to send me an example of the error I'm sure I could fix it for you.
DameonX24@hotmail.com
Thanks,
Dameon Black
|
|
|
|
|
The problem is that my code makes the assumption that your assembly name and root namespace are the same.
Go to "APP.vb" and replace the m_AssemblyPath with this:
Private Shared m_AssemblyPath As String = GetType(APP).Namespace.Replace(" ", "_")
That will clear up the problem.
P.S. I debugged the problem by putting this code in the "New()" constructor of your "Splash2.vb" before anything else gets called:
' Any Initialization Here
Dim currentAssembly As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder
For Each resourceName As String In currentAssembly.GetManifestResourceNames()
sb.Append(resourceName)
sb.Append(Environment.NewLine)
Next
System.Windows.Forms.MessageBox.Show(sb.ToString())
Thanks,
Dameon Black
|
|
|
|
|
|
i have posted a query few days back but i have't got proper responce. my query is
How can be a transparent panel control can be created. As I tried in many ways but it is applicable to window but not to the required control (panel), as well as I also have observed that Transparency will be applicable to windows forms but not to user control. Is it so, if yes why.
Shashidhar.
|
|
|
|
|
It's hard for me to understand your English and determine what you are asking.
If I understand your question I would say you should set the "BackColor" of the "Panel" to "Transparent".
If this is not what you are looking for please rephrase your question and ask again.
Thanks,
Dameon Black
|
|
|
|