Click here to Skip to main content
16,008,750 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Adding text to the beginning of a file rather than the end Pin
Dave Kreskowiak4-Jan-12 7:10
mveDave Kreskowiak4-Jan-12 7:10 
GeneralRe: Adding text to the beginning of a file rather than the end Pin
Marcus J. Smith4-Jan-12 7:38
professionalMarcus J. Smith4-Jan-12 7:38 
AnswerRe: Adding text to the beginning of a file rather than the end Pin
Luc Pattyn4-Jan-12 7:38
sitebuilderLuc Pattyn4-Jan-12 7:38 
AnswerRe: Adding text to the beginning of a file rather than the end Pin
Eddy Vluggen4-Jan-12 11:53
professionalEddy Vluggen4-Jan-12 11:53 
QuestionOpen word doc inside WebBrowser control on Win7 machine Pin
Nitin Varshneya3-Jan-12 5:54
Nitin Varshneya3-Jan-12 5:54 
AnswerBumping repost alert Pin
Luc Pattyn3-Jan-12 6:48
sitebuilderLuc Pattyn3-Jan-12 6:48 
AnswerRe: Open word doc inside WebBrowser control on Win7 machine Pin
Dave Kreskowiak3-Jan-12 9:37
mveDave Kreskowiak3-Jan-12 9:37 
Question[Resolved] C# to VB Adaption Problem with Lambda Expressions Pin
Sonhospa1-Jan-12 3:27
Sonhospa1-Jan-12 3:27 
AnswerRe: C# to VB Adaption Problem Pin
Luc Pattyn1-Jan-12 3:47
sitebuilderLuc Pattyn1-Jan-12 3:47 
QuestionRe: C# to VB Adaption Problem Pin
Sonhospa1-Jan-12 3:59
Sonhospa1-Jan-12 3:59 
AnswerRe: C# to VB Adaption Problem Pin
Eddy Vluggen1-Jan-12 6:23
professionalEddy Vluggen1-Jan-12 6:23 
GeneralRe: C# to VB Adaption Problem Pin
Sonhospa1-Jan-12 6:34
Sonhospa1-Jan-12 6:34 
GeneralRe: C# to VB Adaption Problem Pin
Eddy Vluggen1-Jan-12 6:39
professionalEddy Vluggen1-Jan-12 6:39 
GeneralRe: C# to VB Adaption Problem Pin
Sonhospa1-Jan-12 6:58
Sonhospa1-Jan-12 6:58 
AnswerRe: C# to VB Adaption Problem Pin
Eddy Vluggen1-Jan-12 7:36
professionalEddy Vluggen1-Jan-12 7:36 
GeneralRe: C# to VB Adaption Problem Pin
Sonhospa1-Jan-12 7:53
Sonhospa1-Jan-12 7:53 
GeneralRe: C# to VB Adaption Problem Pin
Eddy Vluggen1-Jan-12 8:35
professionalEddy Vluggen1-Jan-12 8:35 
GeneralRe: C# to VB Adaption Problem Pin
Sonhospa1-Jan-12 12:16
Sonhospa1-Jan-12 12:16 
From my initial message:
Michael Schäuble wrote:
In order to avoid problems with conversion of c# 'yield' operator, I put the extensions into a DLL and set a reference to that.
According to IntelliSense 'progress' should be an integer value for 'percentProgress'.

The funny thing is that it works as described as long as I stay in C# with the Main procedure - also when using the same referenced DLL for all the extensions:
items
    .WithProgressReporting(progress => worker.ReportProgress(progress))
    .ForEach(item => Thread.Sleep(10)); // simulate some real work
Line 2 results in the percentage, which is properly reported to the console. So there really must be something wrong with the lambda, which obviously is too cryptic for me... Still this is exactly the part of the code which I can't reference (main procedure "TestProgressReporting") since my application is written in VB.

modified 1-Jan-12 18:42pm.

AnswerRe: C# to VB Adaption Problem Pin
Luc Pattyn1-Jan-12 12:33
sitebuilderLuc Pattyn1-Jan-12 12:33 
GeneralRe: C# to VB Adaption Problem Pin
Sonhospa1-Jan-12 12:51
Sonhospa1-Jan-12 12:51 
AnswerRe: C# to VB Adaption Problem Pin
Luc Pattyn1-Jan-12 12:58
sitebuilderLuc Pattyn1-Jan-12 12:58 
GeneralRe: C# to VB Adaption Problem Pin
Sonhospa1-Jan-12 13:14
Sonhospa1-Jan-12 13:14 
GeneralRe: C# to VB Adaption Problem Pin
Eddy Vluggen2-Jan-12 6:34
professionalEddy Vluggen2-Jan-12 6:34 
GeneralRe: C# to VB Adaption Problem Pin
Terence Wallace3-Jan-12 7:32
Terence Wallace3-Jan-12 7:32 
AnswerRe: C# to VB Adaption Problem with Lambda Expressions Pin
Simon_Whale2-Jan-12 12:33
Simon_Whale2-Jan-12 12:33 

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.