Search found 14948 matches

by jvierra
Sun Oct 17, 2021 11:52 am
Forum: PowerShell GUIs
Topic: Custom column name in datagridview
Replies: 4
Views: 85

Re: Custom column name in datagridview

First you need to learn how to use things like the debugger. Next take some time to learn about how the controls work.

Yes. "Calculated properties" which are also referred to as "computed" properties since the words "computed" and "calculated" are pretty much identical in meaning.
by jvierra
Sat Oct 16, 2021 3:06 pm
Forum: PowerShell GUIs
Topic: Custom column name in datagridview
Replies: 4
Views: 85

Re: Custom column name in datagridview

Here is the best way to load a DGV. THe way you are doing it does the same conversion twice. Totally unnecessary. #get all checked attributes from listview $checkedAttributes=@() ForEach ($item In $lstviewAttribute.CheckedItems){ $checkedAttributes = $checkedAttributes += $item.Text } #get all enabl...
by jvierra
Sat Oct 16, 2021 2:58 pm
Forum: PowerShell GUIs
Topic: Custom column name in datagridview
Replies: 4
Views: 85

Re: Custom column name in datagridview

You are specifying that the columns are the properties of the object retrieved. Those will be the column headers. Don't select properties you don't want. You can also use a computed "Select-Object" to reassign names to any property. My best guess is that you either inherited the code or copied it fr...
by jvierra
Fri Oct 15, 2021 5:47 pm
Forum: PrimalForms
Topic: Move me move me
Replies: 4
Views: 115

Re: Move me move me

;) :lol: :mrgreen: :twisted: :twisted: :twisted: Waiting here for everyman Make it on your own if you think you can If you see somewhere to go, I understand Waiting here for everyman Don't ask me if he'll show Baby, I don't know Make it on your own if you think you can Somewhere later on you'll have...
by jvierra
Fri Oct 15, 2021 4:47 pm
Forum: PrimalForms
Topic: Move me move me
Replies: 4
Views: 115

Re: Move me move me

Move me, move me. Move it, move it, move it! Move it where? Move it anywhere. Where is the any. Over there. Move it, move it, move it. Anywhere, anywhere, anywhere. Over here, over there, anywhere. Best you stay in motion. Newton told us in his little equation. Keep moving! No stopping! All mass mus...
by jvierra
Tue Oct 12, 2021 10:31 am
Forum: PowerShell GUIs
Topic: Clear Fields or Not Submit Data on Form Close
Replies: 1
Views: 433

Re: Clear Fields or Not Submit Data on Form Close

There is no "Submit" button on a form. You are thinking of HTML forms. PowerShell Studio WinForms always lose all data when closed. Re-opening a form will have it open with whatever defaults have been set in the form. WinForms do not send data back to the calling form. In PSS the forms controls are ...
by jvierra
Fri Oct 08, 2021 7:41 pm
Forum: PowerShell
Topic: Converting ComboBox value to new value
Replies: 6
Views: 1236

Re: Converting ComboBox value to new value

I know this forum is not for ready made solutions to be provided and I'm not asking anybody to design a solution, I am asking how to do a specific thing, as in take the value selected from a list of values and use this to populate another attribute with a different value. I have the rest of the scr...
by jvierra
Fri Oct 08, 2021 12:39 pm
Forum: PowerShell
Topic: Converting ComboBox value to new value
Replies: 6
Views: 1236

Re: Converting ComboBox value to new value

No one is scolding you; it is just how all tech forums work. Perhaps you would do better if you didn't try to ask page-long questions. Start technical questions with a short clear statement of what you are trying to accomplish and clearly state what is not happening. In the end you seemed to be aski...
by jvierra
Thu Oct 07, 2021 9:12 pm
Forum: PowerShell
Topic: Converting ComboBox value to new value
Replies: 6
Views: 1236

Re: Converting ComboBox value to new value

You seem to be asking us to design a whole solution for you. Forums are not useful for and do not design solutions. We can answer a specific correctly asked question but designing a whole solution would not be possible.
by jvierra
Wed Oct 06, 2021 10:14 am
Forum: PowerShell
Topic: Combobox question
Replies: 6
Views: 983

Re: Combobox question

Just set the index

$combobox1.SelectedIndex = -1