Support Forums

Search found 9693 matches

by jvierra
Thu Sep 22, 2016 12:43 pm
Forum: Windows PowerShell
Topic: Screenshot Control on Control
Replies: 8
Views: 71

Re: Screenshot Control on Control

What does this have to do with a bitmap? A control is an object.
by jvierra
Thu Sep 22, 2016 12:33 pm
Forum: PowerShell GUIs
Topic: Hide tab in a tabpage
Replies: 2
Views: 27

Re: Hide tab in a tabpage

Here is a sampler of methods for managing a tab control.
by jvierra
Thu Sep 22, 2016 12:17 pm
Forum: PowerShell GUIs
Topic: Hide tab in a tabpage
Replies: 2
Views: 27

Re: Hide tab in a tabpage

You have to remove the tab.

Code: Select all

# save page
$savedTab = $tabcontrol1.TabPages['tabpage1']

# remove page
$tabcontrol1.TabPages.Remove($savedTab)

# add page back to control
$tabcontrol1.TabPages.Add($savedTab)
by jvierra
Thu Sep 22, 2016 9:25 am
Forum: Windows PowerShell
Topic: Screenshot Control on Control
Replies: 8
Views: 71

Re: Screenshot Control on Control

The C# code can be converted to PowerShell.
by jvierra
Thu Sep 22, 2016 9:23 am
Forum: PowerShell GUIs
Topic: How to control code when someone selects a tabpage
Replies: 4
Views: 42

Re: How to control code when someone selects a tabpage

The difference being that "SelectedInex" is a number and must be converted to a page. " SelectedTab" is a Page and can be used directly. $form1_Load={ #select initial tab page $tabcontrol1.SelectedTab = $tabcontrol1.TabPages['tabpage2'] } $tabcontrol1_SelectedIndexChanged...
by jvierra
Wed Sep 21, 2016 10:04 pm
Forum: PowerShell GUIs
Topic: How to control code when someone selects a tabpage
Replies: 4
Views: 42

Re: How to control code when someone selects a tabpage

You tie the code to the events of the tab control. When a tab is selected it is announced be "SelectedIndexChanged" the event and the current tab is in "SelectedTab" Start by reviewing this: https://www.sapien.com/blog/2011/10/28/primalforms-2011-spotlight-on-the-tabcontrol. All ...
by jvierra
Wed Sep 21, 2016 8:02 pm
Forum: PowerShell GUIs
Topic: adding more forms?
Replies: 14
Views: 153

Re: adding more forms?

Well you do not have to release a child for it to exist outside of its parent. A child can be contained in teh parent or be allowed to show outside. All children will be minimized and restored with the parent.
by jvierra
Wed Sep 21, 2016 6:56 pm
Forum: PowerShell GUIs
Topic: adding more forms?
Replies: 14
Views: 153

Re: adding more forms?

Sapien has not added that so far. YOU can edit the function and replace the ShowDialog with a return $this to grab the form or just change it to <formrname>.Show(). The form will be one of the child forms of the MDI identified by name. The form function is at functions:Call_<formanme> Maybe we can a...
by jvierra
Wed Sep 21, 2016 6:51 pm
Forum: PowerShell GUIs
Topic: Setting default tab in tabcontrol
Replies: 7
Views: 31

Re: Setting default tab in tabcontrol

If you are asking about the "tabcontrol" them\n you have to be clearer about what you issue is. Tab page order is separate fro what you display on the designer.
by jvierra
Wed Sep 21, 2016 6:48 pm
Forum: PowerShell GUIs
Topic: Setting default tab in tabcontrol
Replies: 7
Views: 31

Re: Setting default tab in tabcontrol

Link: https://msdn.microsoft.com/en-us/library/bd16a8cw(v=vs.110).aspx

Link re-writer on Sapien fails sometimes.

Go to advanced search