WF Virgin
Dear One & All,
As my subject says, I'm a WF Virgin. Having read many an article on the principles of WF, I'm keen to start developing with it. Can anyone point me in the direction of some good simple examples of using WF in dotNet2, preferably in VB.NET. I’ve downloaded quite a few, but most either seem to be for Beta1, or I’m missing the odd reference here and there.
Many Thanx in advance,
Tim
[718 byte] By [
MORRTI] at [2007-12-21]
Take a look at the sample in Samples.zip which can be found under %ProgramFiles%\Microsoft SDKs\Windows Workflow Foundation\, if you have the VS Extensions for Windows Workflow Foundation installed.Most of the samples in the Technologies directory have a VB and C# version.
Hi, All zipped up again.
I've got a problem with trying out their first soln (from the microsoft site)
After entering in their code and/or copying in their examples, when I try to build the app @ the very end, I'm getting the following error with this bit of code.
ERROR: (The error refers to the bit of code in red).
Error 2 Handles clause requires a WithEvents variable defined in the containing type or one of its base types. C:\SimpleExpenseReport\VB\SimpleExpenseReport\SimpleExpenseReport.vb 138 60 SimpleExpenseReport
CODE:
Private Sub DetermineApprovalContact(ByVal sender As Object, _ ByVal e As ConditionalEventArgs) Handles ifElseLogicStatement.condition If Me._amount < 1000 Then e.Result =
True Else e.Result =
False End If End Sub Has anyone else experienced this problem ? if so what's the soultion ?
Thanx, 
In the workflow designer, select the "ifNeedsleadApproval" activity;
In the property page , click on "Condition", select "code condition", select
"DetermineApprovalContact".
In the code, remove "Handles ifElseLogicStatement.Condition".
Run the application
Hope this helps
Serge Luca Guidance, Belgium blog: www.redwood.be