|
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
|
|
|
|
|
hehehe... you are being not very cun-vin-cing...
:->
-------------------
Therez No Place like ... 127.0.0.1
|
|
|
|
|
When I use this code in my own project The image displays but with a black background where the transparency is supposed to be.
Is this a problem with the alpha channel of my image or something else?
I am using a png file made with photoshop cs
Thanks
|
|
|
|
|
Hi, I'm not sure what exactly you are doing to cause this.
Firstly, does the example program work?
If it does work (and it should I just tested it again) then most likely it is something to do with the image.
Also, check to make sure you are overriding both Paint and PaintBackground.
Thanks,
Dameon Black
|
|
|
|
|
Hi, thanks for your help.
It's ok now, the transparency of the form was the problem.
I had changed it when working on the program before. Although I'd put the default back in the properties window, the fact that it was still mentioned in to the Windows form generated code caused the problem.
Thanks!,
Legandir
|
|
|
|
|
Had a black background too until I realised that the form had double buffering set in its options.
It should be off of course.
|
|
|
|
|
My splash screen was created in VS 2003 and converted to 2005. When I added in the code for transparency, I got the black background also. Comparing the design code line by line, it was exactly the same. I ended up recreating the splash screen in VS 2005 and it works perfectly.
Great code!!!
Thanks!
|
|
|
|
|
Hi,
i have got a question about the program. It really looks nice? What is it used for?
I really like the timeline control at the bottom. Did you write this? I am looking for something like that. Could you give me some help with writing my own timeline control?
Regards,
Per
|
|
|
|
|
The programs initial intention was to sell water park compoenents. The sales person would take a water park element and drop it into the scene to display to the buyer what is possible. As you can tell it's fully 3D using DirectX. I later added in the ability for the program to control the water park. It can setup water sequences and effects. Basically it'll do anything you see in a water park.
As for help on a timeline control I do have very little free time. Unless you're looking for contract work and I doubt you are. I can answer simple questions like this though.
Thanks,
Dameon Black
|
|
|
|
|
I should also mention about the Timeline control.
It is a custom control using GDI+.
So, it was created the hard way.
Thanks,
Dameon Black
|
|
|
|
|
Hi Dameon,
well i can understand that you are bussy. Maybee i can just ask you some small questions. Perhaps this forum isn't the best way to do that, i could also email you.
My biggest question is, do you display only the bars for the time segment that the user can see? Or do you draw the entire day at once?
Regards,
Per
|
|
|
|