beesheep
(Eduardo Bernabe Sacahui Diaz)
September 1, 2017, 3:09pm
2
Ok…
first:
You can reffer to methods available in the .NET library, the imports are done using UiPath.
second:
I am quoting @andrzej.kniola here "Personally I just use it solely for void methods and from useability perspective " even this is related to invoke methods I think you don’t need to reinvent the wheel here .
Hi,
The official training materials might not be up to date yet as this activity has only just been added to the Community edition. I can give a small example right here though. Just as with “Invoke Workflow”, you can specify arguments that will be accessible inside:
[arguments]
But instead of a workflow filename you enter Visual Basic code you want to execute, directly into an editor window. Suppose I want my code activity to randomly shuffle its string argument. I could program this as foll…
Hi Richard,
This would be that way in VB.Net
Dim frm As New System.Windows.forms.form
Dim bar As ProgressBar = New ProgressBar()
bar.Location = New System.Drawing.Point(50, 20)
bar.Name = “progressBar1”
bar.Size = New System.Drawing.Size(171, 23)
bar.TabIndex = 0
bar.Style = ProgressBarStyle.Marquee
bar.Minimum = 0
bar.Maximum = 100
frm.Controls.Add(bar)
frm.Show()
Importing System.windows.Forms first is required, note also that you will get no intelisense from it inside the code …
Probably, this seems to be quite a popular request that keeps coming back.
In the meantime (and since I can’t sleep for w/e reason ) here’s a base to expand upon and customize for your needs:
Messy code inside using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Activities;
namespace WebHelpers.InputHelpers
{
public sealed class MultiDialogActivity : CodeActivity
{
[RequiredArgument]
public InArgument<…
2 Likes