Search found 5475 matches

by davidc
Tue Apr 02, 2013 9:02 am
Forum: PowerShell GUIs
Topic: Looking for help with DataGrid
Replies: 11
Views: 5093

Re: Looking for help with DataGrid

I don't have an article on the DataGridView yet, but it’s on my to-do list. I recommend referencing the MSDN for help on the control: DataGridView: http://msdn.microsoft.com/en-us/library/System.Windows.Forms.DataGridView.aspx DataGrid: http://msdn.microsoft.com/en-us/library/System.Windows.Forms.Da...
by davidc
Mon Apr 01, 2013 3:48 pm
Forum: PrimalScript
Topic: Compare Files Tool
Replies: 21
Views: 10698

Re: Compare Files Tool

You can always use the Customs Tools menu to trigger the app to open a file:

Please refer to the follow blog for more information:

http://www.sapien.com/blog/2012/12/11/u ... ript-2012/

David
by davidc
Mon Apr 01, 2013 10:06 am
Forum: PrimalScript
Topic: Primal Merge
Replies: 3
Views: 4471

Re: Primal Merge

PrimalMerge does provide coloring for comments and keywords, but the coloring is overridden when a section is highlighted (because it’s different then the compared file).

David
by davidc
Fri Mar 29, 2013 6:16 pm
Forum: PowerShell GUIs
Topic: Open File Diaglog
Replies: 1
Views: 1720

Re: Open File Diaglog

FYI I moved the post to the PowerShell GUI for since this is a question on a control and not the product itself. The OpenFileDialog in the designer lets you set the filter and other properties. To show the dialog, you need to call it in your script. I recommend looking at the “TextBox - Browse for F...
by davidc
Thu Mar 28, 2013 10:06 am
Forum: PowerShell GUIs
Topic: Time Tracking App
Replies: 1
Views: 1667

Re: Time Tracking App

I moved the post to the appropriate forum. I recommend referring to this post for general GUI help: http://www.sapien.com/forums/viewtopic.php?f=21&t=6451 I also recommend reading the Spotlight on the Timer control: http://www.sapien.com/blog/2011/08/09/primalforms-2011-spotlight-on-the-timer-contro...
by davidc
Thu Mar 28, 2013 9:35 am
Forum: PowerShell GUIs
Topic: TabControl Changing colour (Color)
Replies: 1
Views: 2493

Re: TabControl Changing colour (Color)

In order to do this you will have to use custom paint code and set the DrawMode property to OwnerDrawFixed. Please refer to MSDN for more information: http://msdn.microsoft.com/en-us/library/System.Windows.Forms.TabControl.DrawMode.aspx You will also need to respond to the DrawItem event: http://msd...
by davidc
Thu Mar 28, 2013 8:57 am
Forum: PrimalForms
Topic: Data Sources
Replies: 6
Views: 10704

Re: Data Sources

Note: The source does not appear in the designer. You need only call the function it will handle the binding when the script is ran.

I will add the request to the wish list.

David
by davidc
Wed Mar 27, 2013 11:58 am
Forum: PowerShell GUIs
Topic: XML to Datagrid
Replies: 11
Views: 6103

Re: XML to Datagrid

Here is an example how to use an ArrayList:
PowerShell Code
Double-click the code block to select all.
$results = Get-WmiObject Win32_Process -Namespace "Root\CIMV2"
#Convert to ArrayList so we can Data Bind the results 
$array = New-Object System.Collections.ArrayList
$array.AddRange($results)
$datagridviewResults.DataSource = $array
David
by davidc
Wed Mar 27, 2013 11:57 am
Forum: PowerShell GUIs
Topic: XML to Datagrid
Replies: 11
Views: 6103

Re: XML to Datagrid

I moved the post to the appropriate forum.

A grid is not a good way to represent an XML file. You might want to look into the TreeView control.

Also if you want using Data binding you will need to use a DataTable or an ArrayList.


David
by davidc
Wed Mar 27, 2013 11:50 am
Forum: PrimalForms
Topic: Data Sources
Replies: 6
Views: 10704

Re: Data Sources

When you drag and drop a database connection or table it will insert a grid and it will insert a query function.

David