Click here to Skip to main content
15,916,702 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Print Dialog Pin
Luc Pattyn13-Jul-09 12:31
sitebuilderLuc Pattyn13-Jul-09 12:31 
QuestionA narrow width combo box on the toolstrip control Pin
jinxster12-Jul-09 22:04
professionaljinxster12-Jul-09 22:04 
AnswerRe: A narrow width combo box on the toolstrip control Pin
dan!sh 12-Jul-09 22:12
professional dan!sh 12-Jul-09 22:12 
GeneralRe: A narrow width combo box on the toolstrip control Pin
jinxster13-Jul-09 2:11
professionaljinxster13-Jul-09 2:11 
GeneralRe: A narrow width combo box on the toolstrip control Pin
dan!sh 13-Jul-09 3:14
professional dan!sh 13-Jul-09 3:14 
Questionchange the size of playing video in window media player Pin
bhumika_singh12-Jul-09 21:56
bhumika_singh12-Jul-09 21:56 
AnswerRe: change the size of playing video in window media player Pin
Dave Kreskowiak13-Jul-09 1:49
mveDave Kreskowiak13-Jul-09 1:49 
GeneralRe: change the size of playing video in window media player Pin
bhumika_singh13-Jul-09 2:22
bhumika_singh13-Jul-09 2:22 
GeneralRe: change the size of playing video in window media player Pin
Dave Kreskowiak13-Jul-09 3:59
mveDave Kreskowiak13-Jul-09 3:59 
Questionwhat is pDllname in this "craxddrt.database.logonserver(pdllname,pservername,pdatabasename,puserid,ppassword)" ? [modified] Pin
xingselex12-Jul-09 15:36
xingselex12-Jul-09 15:36 
AnswerRe: what is pDllname in this "craxddrt.database.logonserver(pdllname,pservername,pdatabasename,puserid,ppassword)" ? Pin
riced12-Jul-09 21:19
riced12-Jul-09 21:19 
AnswerRe: what is pDllname in this "craxddrt.database.logonserver(pdllname,pservername,pdatabasename,puserid,ppassword)" ? Pin
Jack Vanderhorst13-Jul-09 14:25
Jack Vanderhorst13-Jul-09 14:25 
QuestionIcons to Applicaton Pin
nei200912-Jul-09 9:26
nei200912-Jul-09 9:26 
AnswerRe: Icons to Applicaton Pin
EliottA12-Jul-09 9:40
EliottA12-Jul-09 9:40 
GeneralRe: Icons to Applicaton Pin
nei200912-Jul-09 9:55
nei200912-Jul-09 9:55 
GeneralRe: Icons to Applicaton [modified] Pin
Steven J Jowett12-Jul-09 10:16
Steven J Jowett12-Jul-09 10:16 
GeneralRe: Icons to Applicaton Pin
0x3c013-Jul-09 8:49
0x3c013-Jul-09 8:49 
AnswerRe: Icons to Applicaton Pin
chilinhhacker13-Jul-09 18:09
chilinhhacker13-Jul-09 18:09 
AnswerRe: Icons to Applicaton Pin
Sebastian Br.13-Jul-09 22:08
Sebastian Br.13-Jul-09 22:08 
Questionconfusion in static functions Pin
abcurl12-Jul-09 0:56
abcurl12-Jul-09 0:56 
AnswerRe: confusion in static functions Pin
Christian Graus12-Jul-09 4:34
protectorChristian Graus12-Jul-09 4:34 
AnswerRe: confusion in static functions Pin
nlarson1113-Jul-09 4:00
nlarson1113-Jul-09 4:00 
QuestionDrawItem for flagged listbox item? Pin
Sonhospa12-Jul-09 0:25
Sonhospa12-Jul-09 0:25 
NewsWorkaround: DrawItem for flagged listbox item? Pin
Sonhospa12-Jul-09 2:34
Sonhospa12-Jul-09 2:34 
AnswerRe: DrawItem for flagged listbox item? Pin
Henry Minute12-Jul-09 3:46
Henry Minute12-Jul-09 3:46 
One thing that would work for this is to create a separate List (call it processedFilesList) derived from List(Of String) and then file paths/names would be added to that list when they are successfully processed, and removed if necessary when they change. In this new list Override the Add, Insert, Remove etc methods so that you can trigger an event when the list changes. Handle that event in your Form and trigger a repaint. In your lstTargetFiles_DrawItem include something like:

If processedFilesList.Contains((CType(sender, ListBox)).Items(e.Index).ToString())
  myBrush = Brushes.Red
Else
  myBrush = Brushes.Green
EndIf


Hope that helps.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

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.