Labels to display value & copy to clipboard
Hi,
For one of my tools I need to display a calculated value in a form and later copy it to the clipboard.
I could not find any Labels so used TextBox instead.
The issue is that within the DisplayForm Runtime Modifications, I am setting the value of the textboxes but it is not getting reflected.
Also, as the Clipboard method is SetText(string), I guess I wuld need to add a VBScript to achieve it.
Any help with the above issues?
Thanks in advance!
0
-
How do you set the value of the TextBox, with an Assign with form.Find(Of TextBoxFormItem)("TextBox1").DefaultText= value? Are you using the correct TextBox IDs?
You can set the DefaultText once, when loading the form.
I do not know if it is possible to copy a value to the Clipboard.0 -
Hi,
I am doingform.Find(Of TextBoxFormItem)("TextBox1").Text= value
This "value" is output of the previous custom activity which I want to show in the form. I was forced to use a textbox as there are no Labels.
It works fine if I use an Alert box, however I need to copy the value to clipboard for the user to paste. Can I not use System.Windows.Forms.Clipboard.SetText(string) in a VB/C# script activity?0 -
Okay, so " form.Find(Of TextBoxFormItem)("TextBox1").DefaultText= value" did the job.
Copy to clipboard seems not possible...
Thanks for your help0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer