Cool video! ^_^ You can create a Blob class that will hide the logic in itself. You can also use forech. You can use the up and left margins to avoid creating a new point all the time.) Examples. • Class file: public class Blob { public int Speed { get; set; } = 0; public PictureBox View { get; set; } public void Move() { View.Top += Speed; if (View.Top > View.Parent.Height + View.Top) View.Top = 0 - View.Top; } } • Init blobs: List blobs = new List(); blobs.Add(new Blob { Speed = 4, View = pictureBox3 }); blobs.Add(new Blob { Speed = 6, View = pictureBox4 }); blobs.Add(new Blob { Speed = 8, View = pictureBox5 }); blobs.Add(new Blob { Speed = 3, View = pictureBox6 }); blobs.Add(new Blob { Speed = 5, View = pictureBox7 }); blobs.Add(new Blob { Speed = 6, View = pictureBox8 }); blobs.Add(new Blob { Speed = 7, View = pictureBox9 }); blobs.Add(new Blob { Speed = 4, View = pictureBox10 }); • In timer: forech(Blob blob in blobs) blob.Move();
the rain is undoubtedly beautiful, but why did you decide to write such code through a "switch"? It seems to me that it will be easier this way: List pictures = new List() { pictureBox3, pictureBox4, pictureBox5, pictureBox6, pictureBox7, pictureBox8, pictureBox9, pictureBox10 }; for (int i = 0; i < pictures.Count; i++) { pictures[i].Location = new Point(pictures[i].Location.X, pictures[i].Location.Y + rainSpeeds[i]); if (pictures[i].Location.Y > panel1.Size.Height + pictures[i].Size.Height) pictures[i].Location = new Point(pictures[i].Location.X, 0 - pictures[i].Size.Height); } although maybe I still don't understand anything in this language
put the code in timer: if (yourpercentagelabelname.Text = "100%") { timer1.Stop(); this.Hide(); YourFormNameThatYouWantToLaunchAfter Form = new YourFormNameThatYouWantToLaunchAfter; Form.Show(); }
Look in the windows search engine for the "repos" folder then inside it look for the name of your project and go to bin / debug / and put gdi32.dll put this: es.dll-files.com/gdi32.dll.html sorry for my bad inglish , i use google translate.
Cool video! ^_^
You can create a Blob class that will hide the logic in itself.
You can also use forech.
You can use the up and left margins to avoid creating a new point all the time.)
Examples.
• Class file:
public class Blob
{
public int Speed { get; set; } = 0;
public PictureBox View { get; set; }
public void Move()
{
View.Top += Speed;
if (View.Top > View.Parent.Height + View.Top)
View.Top = 0 - View.Top;
}
}
• Init blobs:
List blobs = new List();
blobs.Add(new Blob { Speed = 4, View = pictureBox3 });
blobs.Add(new Blob { Speed = 6, View = pictureBox4 });
blobs.Add(new Blob { Speed = 8, View = pictureBox5 });
blobs.Add(new Blob { Speed = 3, View = pictureBox6 });
blobs.Add(new Blob { Speed = 5, View = pictureBox7 });
blobs.Add(new Blob { Speed = 6, View = pictureBox8 });
blobs.Add(new Blob { Speed = 7, View = pictureBox9 });
blobs.Add(new Blob { Speed = 4, View = pictureBox10 });
• In timer:
forech(Blob blob in blobs)
blob.Move();
That's right. I'm planning to do a refactor video of my older codes in near future. Anyway, thanks for the code :)
@@CodeFlowYT It's a good idea for a video.
Your old videos on UA-cam recommendations. :)
P.S. Thanks for the design ideas. :)
Thank You So Much It Runs Successfully :)
sorry for slow respons. glad to hear that ;)
Thank you. You did a good job.
my pleasure :)
the rain is undoubtedly beautiful, but why did you decide to write such code through a "switch"? It seems to me that it will be easier this way:
List pictures = new List()
{
pictureBox3, pictureBox4, pictureBox5, pictureBox6,
pictureBox7, pictureBox8, pictureBox9, pictureBox10
};
for (int i = 0; i < pictures.Count; i++)
{
pictures[i].Location = new Point(pictures[i].Location.X, pictures[i].Location.Y + rainSpeeds[i]);
if (pictures[i].Location.Y > panel1.Size.Height + pictures[i].Size.Height)
pictures[i].Location = new Point(pictures[i].Location.X, 0 - pictures[i].Size.Height);
}
although maybe I still don't understand anything in this language
you're right. actually I laughed my self everytime I see code on my videos :D
how to do it with c++ clr
How do I make it to where it opens a different form and closes the rain form?
Perfect!!!!
NICEEEEEEE
this is so cool
Thanks!
Please keep up the good work!
love it! using this in my app
Thanks. I'll be releasing a refactored version of this video soon. Please stay tuned
@@CodeFlowYT sounds great! ill watch it
@@ethan-to5qy the vid is live now. here: ua-cam.com/video/3AusyetMBgE/v-deo.html, hope you like it :)
it works but how do i get a diffrent form to load after the timer is done also - points for no exit button
put the code in timer:
if (yourpercentagelabelname.Text = "100%")
{
timer1.Stop();
this.Hide();
YourFormNameThatYouWantToLaunchAfter Form = new YourFormNameThatYouWantToLaunchAfter;
Form.Show();
}
ik this is late but
YourForm form YourForm;
this.hide( );
form.Show( );
Great !
Thank you for your effort
Thank you
Спасибо
Mantapppp, bikinin dasar C# nya dong om di pukis kaga ada wkwk
wkwk siapp kalau ada waktu ya ka :D
@@CodeFlowYT sippp ditunggu heheh
nice.
Very Good, Thank you very mush Friend....
hello sir,make a tutorial on float login in input box animated ,thankyou
Thanks you so much
12:37
can you do this with vb.net?
Yup
D11Import and EntryPoint gives an error what shall I do ?
Look in the windows search engine for the "repos" folder then inside it look for the name of your project and go to bin / debug / and put gdi32.dll
put this: es.dll-files.com/gdi32.dll.html
sorry for my bad inglish , i use google translate.
Thanks resolved it that time.
Why not use an array of picture boxes :)