Search found 11 matches

by zsirkin
Wed Sep 08, 2021 8:30 am
Forum: PowerShell GUIs
Topic: DataGridView - How to select header without selecting Cell
Replies: 6
Views: 5671

Re: DataGridView - How to select header without selecting Cell

See the images below, one with quotes and one without. This is not my issue, nor do I care about that. I've got a 50k+ line production level Sapien built application that is used by a ton of administrators without fault yet you're assuming I can't build a simple form. I have what I'm assuming is a s...
by zsirkin
Wed Sep 08, 2021 7:28 am
Forum: PowerShell GUIs
Topic: DataGridView - How to select header without selecting Cell
Replies: 6
Views: 5671

Re: DataGridView - How to select header without selecting Cell

Visual has been added. Button1 triggers 3 columns of data. First I selected the cell "C0-R1". This displays in info below. Then I selected the header "Column0", this once again recognized that a cell was already selected and triggered the cell click. If I click any other column, ...
by zsirkin
Wed Sep 08, 2021 7:07 am
Forum: PowerShell GUIs
Topic: DataGridView - How to select header without selecting Cell
Replies: 6
Views: 5671

Re: DataGridView - How to select header without selecting Cell

The quotes are there because I would typically be adding more than just a variable to an Update-Listbox (also why i've protected the variable) and this is a simple demo to do other work. I'm not new to this, it's just the first time working with DataGridView... As I stated, this issue occurs when I ...
by zsirkin
Tue Sep 07, 2021 1:10 pm
Forum: PowerShell GUIs
Topic: DataGridView - How to select header without selecting Cell
Replies: 6
Views: 5671

DataGridView - How to select header without selecting Cell

Hi I have what I hope is a very simple question. How can I select (sort) a header column without selecting a (pre-selected) cell. Basically, by default Cell 0,0 is selected. Because I have the following for "$Datagridview1_CellClick": if ($datagridview1.CurrentCell.ColumnIndex -eq 0) { Upd...
by zsirkin
Fri May 14, 2021 12:00 pm
Forum: PowerShell GUIs
Topic: Change curser over RichTextBox line when that text is bold
Replies: 1
Views: 2035

Change curser over RichTextBox line when that text is bold

I would like for the curser to change from the default iBeam to a hand once it's entering the line that is bolded. Ideally I would like to see it function like hypertext. I've added a snippet of what it currently looks like at the bottom. Bonus: Also, it would be create if someone can tell me how to...
by zsirkin
Tue Mar 23, 2021 8:11 am
Forum: PowerShell GUIs
Topic: Listbox with word wrap
Replies: 9
Views: 14022

Re: Listbox with word wrap

Fixed the issue by modifying your code.

Where you have listbox1.items -lt 1....
Updated that to listbox1.items.count -lt 1

That little bit fixed the issues I was having! Thanks again for all your help!
by zsirkin
Tue Mar 23, 2021 6:05 am
Forum: PowerShell GUIs
Topic: Listbox with word wrap
Replies: 9
Views: 14022

Re: Listbox with word wrap

That's 100% the issue and something I do a lot! Is there a better way to put a blank line in a listbox?
by zsirkin
Mon Mar 22, 2021 11:46 am
Forum: PowerShell GUIs
Topic: Listbox with word wrap
Replies: 9
Views: 14022

Re: Listbox with word wrap

I was able to get the initial code to show up (I forgot to update one of the listbox names), but once next phase (selecting one of the items), this runs...It will then provide all of the information about what I just clicked on (such as the name of the group I chose, as well as applications associat...
by zsirkin
Mon Mar 22, 2021 9:02 am
Forum: PowerShell GUIs
Topic: Listbox with word wrap
Replies: 9
Views: 14022

Re: Listbox with word wrap

Is there any reason the text would be invisible on some apps? This works fine on a vanilla app, but when I incorporate this into my more complex apps, the text is now invisible (though still selectable and actionable).
by zsirkin
Fri Mar 19, 2021 1:52 pm
Forum: PowerShell GUIs
Topic: Listbox with word wrap
Replies: 9
Views: 14022

Re: Listbox with word wrap

Thank you Brittney! You're awesome for that! It's exactly what I was trying to do, but correct :D