Search found 13172 matches

by jvierra
Thu Feb 21, 2019 1:32 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 36
Views: 292

Re: XML data to a label.text property

Sorry for the short answer butI am in the middle of something.

A textbox has a property that gets the contents.

For instructions on how to use a textbox control see: https://info.sapien.com/index.php/guis/ ... ox-control
by jvierra
Thu Feb 21, 2019 1:11 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 36
Views: 292

Re: XML data to a label.text property

How can you not know where the code is? You wrote it didn't you. It sounds to me like the variable is not a simple text variable. If it is the text box then it is an object. I posted twice telling you how to determine what you have. Please go back and address the posts you ignored. They outline how ...
by jvierra
Thu Feb 21, 2019 12:22 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 36
Views: 292

Re: XML data to a label.text property

Sorry I meant to ask for this variable $BindingURL.
by jvierra
Thu Feb 21, 2019 11:09 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 36
Views: 292

Re: XML data to a label.text property

Please post the code that sets that variable? This variable ->>> $detailsLBL
by jvierra
Thu Feb 21, 2019 11:06 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 36
Views: 292

Re: XML data to a label.text property

This is the variable you need to check: $BindingURL' $buttonSEARCH_Click= { [System.Windows.Forms.MessageBox]::Show($BindingURL') # <==== get the value of the variable [xml]$file = (Get-Content 'c:\test\programdata\Server Configuration.xml') $detailsLBL.Text = $file.SelectSingleNode("//Instance[Bind...
by jvierra
Thu Feb 21, 2019 10:39 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 36
Views: 292

Re: XML data to a label.text property

No that doesn't make any sense.

What has a value of "TEXT"?
What switches to NULL?
What code have you changed?
What is $detailsBL?

Without your code none of this makes any sense.
What is in the variable "$BindingURL'"? It is null.
by jvierra
Thu Feb 21, 2019 8:10 am
Forum: Windows PowerShell
Topic: New PsSession with a Progress Bar
Replies: 12
Views: 419

Re: New PsSession with a Progress Bar

What you are trying todo cannot be done. A job runs in a separate process and processes are isolated from each other.
by jvierra
Thu Feb 21, 2019 7:47 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 36
Views: 292

Re: XML data to a label.text property

If the textbox is named "$bindingURL" then the value of the textbox is "$bindingURL.Text".
by jvierra
Thu Feb 21, 2019 7:07 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 36
Views: 292

Re: XML data to a label.text property

Why are you using a variable when the data is in a textbox. Just use the textbox.

I suspect you have a scope issue which is the reason we don't use interim variables in a form. Check the variable. It is likely null.
by jvierra
Thu Feb 21, 2019 4:23 am
Forum: PowerShell GUIs
Topic: Loop cycle through tabcontrol tabs
Replies: 7
Views: 119

Re: Loop cycle through tabcontrol tabs

Here is an even better way to generate tab pages with browser controls.