Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Yesterday at 11:58 PM
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Yesterday at 10:23 PM
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Yesterday at 4:54 PM
Ad icon
🎮 INDIAN PSN GIFT CARDS AVAILABLE NOW! 🎮
madukaperera
Updated:
Tuesday at 12:57 PM
🚀 Google AI PRO – 18 Months | Rs. 850 Only
lkkolla
Updated:
Monday at 4:56 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
EK Programmerz - Post Your Cool Codes.
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Ranhiru" data-source="post: 3253957" data-attributes="member: 17748"><p>Well ill post one of my codes! If any of you have downloaded my software and checked the About part in the program it gives a flashing color background and music and scrolling text <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /> So here's how you do it</p><p></p><p>Language : VB .NET</p><p></p><p>Create a Timer. This timer takes care of the flashing color background</p><p></p><p>[CODE]Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick</p><p> Dim Red, Green, Blue As Integer</p><p> Red = Int((255 - 0 + 1) * Rnd() + 0)</p><p> Green = Int((255 - 0 + 1) * Rnd() + 0)</p><p> Blue = Int((255 - 0 + 1) * Rnd() + 0)</p><p> Me.BackColor = Color.FromArgb(Red, Green, Blue)</p><p></p><p> End Sub[/CODE]</p><p></p><p>Create another Timer. This timer takes care of the scrolling text. If the Location is 110 which is the position where my text should stop, the timer is disabled</p><p></p><p>[CODE]</p><p>Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick</p><p> Label1.Location = New Point(35, Label1.Location.Y - 1)</p><p></p><p> If Label1.Location.Y = 110 Then</p><p> Timer2.Enabled = False</p><p> Button1.Visible = True</p><p> End If</p><p> End Sub[/CODE]</p><p></p><p>And finally the music. The music is an embedded resource (wav) in the resource file and will be played when the form loads</p><p></p><p>[CODE]Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load</p><p> My.Computer.Audio.Play(My.Resources.Wasath_Kalaye___IntenZe_Ft__Dirty_X_from_ELAKIRI_COM__Custom_, AudioPlayMode.Background)</p><p> End Sub[/CODE]</p></blockquote><p></p>
[QUOTE="Ranhiru, post: 3253957, member: 17748"] Well ill post one of my codes! If any of you have downloaded my software and checked the About part in the program it gives a flashing color background and music and scrolling text :D So here's how you do it Language : VB .NET Create a Timer. This timer takes care of the flashing color background [CODE]Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim Red, Green, Blue As Integer Red = Int((255 - 0 + 1) * Rnd() + 0) Green = Int((255 - 0 + 1) * Rnd() + 0) Blue = Int((255 - 0 + 1) * Rnd() + 0) Me.BackColor = Color.FromArgb(Red, Green, Blue) End Sub[/CODE] Create another Timer. This timer takes care of the scrolling text. If the Location is 110 which is the position where my text should stop, the timer is disabled [CODE] Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick Label1.Location = New Point(35, Label1.Location.Y - 1) If Label1.Location.Y = 110 Then Timer2.Enabled = False Button1.Visible = True End If End Sub[/CODE] And finally the music. The music is an embedded resource (wav) in the resource file and will be played when the form loads [CODE]Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load My.Computer.Audio.Play(My.Resources.Wasath_Kalaye___IntenZe_Ft__Dirty_X_from_ELAKIRI_COM__Custom_, AudioPlayMode.Background) End Sub[/CODE] [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom