Click here to Skip to main content
15,915,336 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCountdown Timer Pin
Brizee17-May-07 3:01
Brizee17-May-07 3:01 
AnswerRe: Countdown Timer Pin
Tarakeshwar Reddy17-May-07 3:48
professionalTarakeshwar Reddy17-May-07 3:48 
GeneralRe: Countdown Timer Pin
Brizee17-May-07 4:17
Brizee17-May-07 4:17 
GeneralRe: Countdown Timer Pin
jchigg200017-May-07 10:28
jchigg200017-May-07 10:28 
GeneralRe: Countdown Timer Pin
Brizee17-May-07 13:05
Brizee17-May-07 13:05 
GeneralRe: Countdown Timer Pin
Brizee17-May-07 23:25
Brizee17-May-07 23:25 
QuestionCoCreateGuid API .vb.net Pin
bony_baba17-May-07 2:39
bony_baba17-May-07 2:39 
AnswerRe: CoCreateGuid API .vb.net Pin
Dave Kreskowiak17-May-07 4:58
mveDave Kreskowiak17-May-07 4:58 
GeneralRe: CoCreateGuid API .vb.net [modified] Pin
bony_baba18-May-07 0:13
bony_baba18-May-07 0:13 
GeneralRe: CoCreateGuid API .vb.net Pin
Dave Kreskowiak18-May-07 12:50
mveDave Kreskowiak18-May-07 12:50 
QuestionProblem occour when registering dll on win xp Pin
koolprasad200317-May-07 1:37
professionalkoolprasad200317-May-07 1:37 
AnswerRe: Problem occour when registering dll on win xp Pin
Christian Graus17-May-07 2:16
protectorChristian Graus17-May-07 2:16 
QuestionGet all window handles Pin
Burillo17-May-07 1:04
Burillo17-May-07 1:04 
AnswerRe: Get all window handles Pin
Dave Kreskowiak17-May-07 4:54
mveDave Kreskowiak17-May-07 4:54 
GeneralRe: Get all window handles Pin
Burillo17-May-07 6:17
Burillo17-May-07 6:17 
GeneralRe: Get all window handles Pin
Dave Kreskowiak17-May-07 6:24
mveDave Kreskowiak17-May-07 6:24 
QuestionDesktop refresh on Timer_Tick Pin
The ANZAC16-May-07 22:32
The ANZAC16-May-07 22:32 
QuestionRe: Desktop refresh on Timer_Tick Pin
Sonia Gupta16-May-07 22:35
Sonia Gupta16-May-07 22:35 
AnswerRe: Desktop refresh on Timer_Tick Pin
Christian Graus17-May-07 2:37
protectorChristian Graus17-May-07 2:37 
AnswerRe: Desktop refresh on Timer_Tick Pin
Dave Kreskowiak17-May-07 4:48
mveDave Kreskowiak17-May-07 4:48 
GeneralRe: Desktop refresh on Timer_Tick Pin
The ANZAC17-May-07 11:27
The ANZAC17-May-07 11:27 
I could post the code but at the moment its long and messy so i'll give you a run down. It compares two datetimes to check for a day, hour or minute difference using datediff. It then generates a random number and checks it against a list (of integer) to see if its been used. If it has been used it loops and generates random numbers till one pops up that hasn't been used. Then it uses the number to select a name from a comboboxobject collection.

I can't see anyway it's causing this refresh thing, but every 20 seconds (what the timer is set to) it does it, all the icons flash.

I'll post some of it:
If DateDiff(DateInterval.Day, d1, d2) = My.Settings.ChangeValue Then<br />
                If My.Settings.ChangeMode = 0 Then<br />
                    Index = RandomClass.Next(-1, Me.ImagesComboBox.Items.Count + 1)<br />
                    If UsedList.Count = Me.ImagesComboBox.Items.Count Then<br />
                        UsedList.Clear()<br />
                    End If<br />
                    Do Until UsedList.Contains(Me.ImagesComboBox.Items.Item(Index)) = False<br />
                        Index = RandomClass.Next(-1, Me.ImagesComboBox.Items.Count + 1)<br />
                    Loop<br />
                    My.Settings.Index = Index<br />
                    path = Folder & "\" & Me.ImagesComboBox.Items(Index)<br />
                    If Not path.Remove(0, path.IndexOf(".")) = ".bmp" Then<br />
                        Dim image As Image = image.FromFile(path)<br />
                        image.Save(path.Remove(path.IndexOf("."), path.Length - path.IndexOf(".")), Imaging.ImageFormat.Bmp)<br />
                        My.Settings.WasSavedAs = True<br />
                        path = path.Replace(path.Remove(0, path.IndexOf(".")), ".bmp")<br />
                    End If<br />
                Else<br />
                    If My.Settings.WasSavedAs = True Then<br />
                        Index = My.Settings.Index + 2<br />
                    Else<br />
                        Index = My.Settings.Index + 1<br />
                    End If<br />
                    path = Folder & "\" & Me.ImagesComboBox.Items(Index)<br />
                    If Not path.Remove(0, path.IndexOf(".")) = ".bmp" Then<br />
                        Dim image As Image = image.FromFile(path)<br />
                        image.Save(path.Remove(path.IndexOf("."), path.Length - path.IndexOf(".")), Imaging.ImageFormat.Bmp)<br />
                        My.Settings.WasSavedAs = True<br />
                        path = path.Replace(path.Remove(0, path.IndexOf(".")), ".bmp")<br />
                    End If<br />
                End If<br />
            End If


Posted by The ANZAC

QuestionReading a file in the internet Pin
re infecta16-May-07 22:24
re infecta16-May-07 22:24 
AnswerRe: Reading a file in the internet Pin
ne0h17-May-07 2:12
ne0h17-May-07 2:12 
Question'prcInserting Expects parameter @Extension which was not Supplied" Pin
Vimalsoft(Pty) Ltd16-May-07 21:49
professionalVimalsoft(Pty) Ltd16-May-07 21:49 
AnswerRe: 'prcInserting Expects parameter @Extension which was not Supplied&quot; Pin
Dave Kreskowiak17-May-07 4:39
mveDave Kreskowiak17-May-07 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.