Search found 133 matches

by Domtar
Mon Nov 02, 2020 12:21 pm
Forum: PowerShell Studio
Topic: I don't get this side-by-side error
Replies: 3
Views: 1865

Re: I don't get this side-by-side error

it is interesting to learn about those runtime loading in the background.

i learned something useful today :-)

thanks!
by Domtar
Mon Nov 02, 2020 10:22 am
Forum: PowerShell Studio
Topic: I don't get this side-by-side error
Replies: 3
Views: 1865

Re: I don't get this side-by-side error

I believe I've found the issue.

I compiled with version 1.0.1, looks like the 4th digit was also required.

I've compiled again as version 1.0.2.0 and the error is gone.

thanks!
by Domtar
Mon Nov 02, 2020 7:23 am
Forum: PowerShell Studio
Topic: I don't get this side-by-side error
Replies: 3
Views: 1865

I don't get this side-by-side error

To help you better we need some information from you. *** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** Product, version and build: PS Studio 2020 v. ...
by Domtar
Tue Jun 16, 2020 5:52 pm
Forum: PowerShell
Topic: replace part of string with regular expression
Replies: 6
Views: 2789

Re: replace part of string with regular expression

yes you're right. sorry, I guess I'm tired and should stop for the day.

thanks, man!
by Domtar
Tue Jun 16, 2020 4:44 pm
Forum: PowerShell
Topic: replace part of string with regular expression
Replies: 6
Views: 2789

Re: replace part of string with regular expression

i don't understand your replied code. i said i wish to replace what is between start and end, why don't you look for that string instead of line 2? line 2 is only there to show an example, it has nothing to do with the file's content. my file contains all the required functions to do stuff i want, m...
by Domtar
Tue Jun 16, 2020 6:28 am
Forum: PowerShell
Topic: replace part of string with regular expression
Replies: 6
Views: 2789

replace part of string with regular expression

hi all,

I have a string like this;

"line 1
line 2
# replace starts here

# replace ends here
line 6
line 7
"

how can i use a regular expression to replace all that is between start and end in this string?

thank you!
by Domtar
Fri Jun 12, 2020 11:29 am
Forum: PowerShell GUIs
Topic: Understanding CheckedListBox controls
Replies: 13
Views: 5666

Re: Understanding CheckedListBox controls

how can we skip the need to click an item twice to check it?

thank!
by Domtar
Thu Jun 11, 2020 5:09 am
Forum: PowerShell GUIs
Topic: is dynamic dialogs possible?
Replies: 3
Views: 1812

Re: is dynamic dialogs possible?

i will study your piece of code.

thanks for the help!
by Domtar
Wed Jun 10, 2020 6:58 am
Forum: PowerShell GUIs
Topic: is dynamic dialogs possible?
Replies: 3
Views: 1812

is dynamic dialogs possible?

Hi all, Since I have no wish to lose my time, before I put too much effort into this, I thought about asking this question. I'm building a GUI where one of the options is to select the SCCM Distribution Points where to replicate the packages we create. That DPs list changes from time to time wheneve...
by Domtar
Tue Jun 09, 2020 7:30 am
Forum: PowerShell GUIs
Topic: display only specific rows in datagridview
Replies: 8
Views: 2663

Re: display only specific rows in datagridview

got it!

this does what i need :-)

for ($i = 0; $i -lt $dataInstUpdates.RowCount; $i++)
{
if ($dataInstUpdates.Rows[$i].Cells[0].value -notlike "KB$($textboxFilterUpdate.text)*")
{ $dataInstUpdates.Rows[$i].Visible = $false }
else
{ $dataInstUpdates.Rows[$i].Visible = $true }
}

thanks!