Skip to main content
gamedev.net
🔒 Locked

Basic C# Window Question...

Started by Ancient Spirit 1 reply 550+ views
Original Post
Ancient Spirit
Ancient Spirit
Hey, I used the new Window Application wizard to get a project started. I add a method onLoad, so everytime that the window is loaded I want it to fade in using the opacity attribute, the thing is that the fade in causes the window to be black and then get to his normal view, thou fade out works fine, can anyone help? Thanks, Spirit.
This world is ruled by big furry CATS!! :)Meow! :)
C plus noob
C plus noob
without posting code it would be hard to help you
Ancient Spirit
Ancient Spirit
private void InitializeComponent() {    //    // Other Code, buttons and stuff, this method is called by the constructure    //    this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);    this.ClientSize = new System.Drawing.Size(292, 22);    this.Controls.Add(this.calculateButton);    this.Controls.Add(this.outputLabel);    this.Name = "Form1";    this.Text = "Calculations Thing";    this.Load += new System.EventHandler(this.Form1_Load);    this.ResumeLayout(false);}private void Form1_Load(object sender, System.EventArgs e) {    for(double i=1.0; i>=0.0; i-=0.0005)    this.Opacity = i;}
This world is ruled by big furry CATS!! :)Meow! :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.