Search found 6221 matches

by Alexander Riedel
Wed Aug 16, 2017 7:50 am
Forum: PowerShell Studio
Topic: Imported Module not working in *.exe file
Replies: 6
Views: 191

Re: Imported Module not working in *.exe file

Please do not post technical questions in the "Customer Service" section. Always post in the relevant forum section and provide the details requested. Please note that "latest" for Windows is not a valid version number as it can change between posting and reading this and it might be different for d...
by Alexander Riedel
Wed Aug 16, 2017 7:37 am
Forum: PrimalScript
Topic: Cannot edit files in primal script
Replies: 3
Views: 1267

Re: Cannot edit files in primal script

Blocking files that come from the internet or another computer is not a PrimalScript feature, it is a Windows feature. Windows does not allow editing (saving that is) or executing files that have come from an outside source. PrimalScript, PrimalPad and PowerShell Studio alert you to the existence of...
by Alexander Riedel
Tue Aug 15, 2017 6:03 pm
Forum: PowerShell Studio
Topic: Buttons stop working after build
Replies: 7
Views: 223

Re: Buttons stop working after build

Yeah, you have a .NET framework versioning issue. I am not sure about the exact versions at the moment, but I think System.Windows.MessageBox exists since .NET framework 3.0 and System.Windows.Forms.MessageBox was present since 1.1 The Powershell version you are using to package and run your executa...
by Alexander Riedel
Tue Aug 15, 2017 1:17 pm
Forum: PowerShell GUIs
Topic: Combo Box SelectedIndex Changes Automatically
Replies: 17
Views: 286

Re: Combo Box SelectedIndex Changes Automatically

Set a breakpoint in that handler and see where it gets called from
by Alexander Riedel
Tue Aug 15, 2017 11:49 am
Forum: PowerShell GUIs
Topic: Combo Box SelectedIndex Changes Automatically
Replies: 17
Views: 286

Re: Combo Box SelectedIndex Changes Automatically

You have two comboxes. cmb_Role and cmb_Dept. According to your code, if the selection in cmb_Role changes you completely erase and re-populate cmb_Dept.
Which of course will make it by default select the first item in the freshly populate combobox. What did you expect to happen?
by Alexander Riedel
Tue Aug 15, 2017 9:42 am
Forum: PowerShell GUIs
Topic: Combo Box SelectedIndex Changes Automatically
Replies: 17
Views: 286

Re: Combo Box SelectedIndex Changes Automatically

Generally a combo box does not automatically change its selection. I am pretty sure you have something in your code that does that.
Maybe you can post the code of the event handler you call when the combo box loses focus?
by Alexander Riedel
Tue Aug 15, 2017 8:13 am
Forum: PowerShell Studio
Topic: Buttons stop working after build
Replies: 7
Views: 223

Re: Buttons stop working after build

In that case you will need to post some code. There is nothing obvious sticking out.
Generally problems like this involve scope problems, uninitialized variables or access denied issues (for files).
Maybe you can make a sample project with just the clear form fields handler and post that here.
by Alexander Riedel
Mon Aug 14, 2017 4:18 pm
Forum: PowerShell Studio
Topic: Buttons stop working after build
Replies: 7
Views: 223

Re: Buttons stop working after build

The critical pieces of information here would be:
1. What do the buttons do?
2. What error messages do you get, if any?
3. What packaging options do you use to build an executable?
4. All buttons don't work or just some?
by Alexander Riedel
Mon Aug 14, 2017 4:12 pm
Forum: PrimalScript
Topic: PrimalScript 3 fails to install
Replies: 1
Views: 944

Re: PrimalScript 3 fails to install

Yeah, 3.1, that was somewhere 2003 or 2004. Sorry but that really is no longer supported and most likely will not operate on anything modern.
by Alexander Riedel
Mon Aug 14, 2017 4:08 pm
Forum: PowerShell GUIs
Topic: [Solved]Unwanted Text in Output
Replies: 4
Views: 144

Re: Unwanted Text in Output

Put this in your script near the top:

$progressPreference = 'silentlyContinue'