Search found 75 matches

by boyddt_co
Tue Apr 15, 2014 8:45 pm
Forum: PowerShell GUIs
Topic: Changing font styles
Replies: 5
Views: 2791

Changing font styles

Ok, batter up! I have a form with multiple labels and on a click event I would like to set the font style to strikethrough / strikeout. Everything I've seen so far makes it seem as though this is a read-only value. Is there a way to do this? This is what I'm trying but it isn't happy $M1D1P1_Click={...
by boyddt_co
Thu Apr 03, 2014 8:02 pm
Forum: PowerShell Studio
Topic: Data Source for DataGrid
Replies: 1
Views: 1523

Data Source for DataGrid

I'm trying to go through and work with the DataGrid / DataGridView controls and when I drag them to the form I'm presented with a menu and the first option is "Choose Data Source", click the drop down and all I get is NOTHING. I've created a System DSN and I've added my database to the object browse...
by boyddt_co
Thu Apr 03, 2014 7:19 pm
Forum: PowerShell GUIs
Topic: dynamically reference objects on form
Replies: 5
Views: 2196

Re: dynamically reference objects on form

Jvierra, thank you for the help. I'll play with it tonight. As far as thinking it through, I have a small brain so I got as far as I could. :lol:

Thanx again,

David
by boyddt_co
Thu Apr 03, 2014 2:53 pm
Forum: PowerShell GUIs
Topic: Change color in output to TextBox depending on error or not
Replies: 2
Views: 2144

Re: Change color in output to TextBox depending on error or

I'm running into the same issue and it appears that the text box sees all text as the same, more or less like Notepad. I'm still sorting things out but it looks like I'll be creating a large number of smaller text boxes so that I can manipulate the text individually based on current status.
by boyddt_co
Thu Apr 03, 2014 2:49 pm
Forum: PowerShell GUIs
Topic: Forms on the fly
Replies: 3
Views: 1470

Re: Forms on the fly

Ok, so the datagrid view is dynamic, is it interactive? What I would need to do is to allow an operator tap on a cell when the product goes into production. This would change the appearance to show that it is in process. A second tap would allow the operator to change the appearance again to denote ...
by boyddt_co
Thu Apr 03, 2014 2:47 pm
Forum: PowerShell GUIs
Topic: dynamically reference objects on form
Replies: 5
Views: 2196

Re: dynamically reference objects on form

Not exactly. I would still need to know the control names what I want to do is to build the control names from variables. Given your suggestion, and I believe that it might be the only option, I would need code like this $x = 1 $i = 2 switch ($x) { 1 { switch ($i) { 1{ $label = $form1.Controls('m1d1...
by boyddt_co
Wed Apr 02, 2014 7:56 pm
Forum: PowerShell GUIs
Topic: dynamically reference objects on form
Replies: 5
Views: 2196

dynamically reference objects on form

I have a number of text boxes and labels on my form that need to be updated based on some database queries. If I return a 1 and a 2 can I create a variable that would reference label $M1D2?

Such as
$x = 1
$i = 2
$Label = "M+$x+D+$i"
$Label.Text = "Finished"
by boyddt_co
Wed Apr 02, 2014 3:00 pm
Forum: PowerShell GUIs
Topic: Forms on the fly
Replies: 3
Views: 1470

Forms on the fly

I originally posted this in the PrimalForms forum an they directed me here. I have a project that I'm working on whose output is going to vary depending on the operator using it. Basically it is a table with 7 columns and x number of rows - with the rows being dependent on the number of machines in ...
by boyddt_co
Wed Apr 02, 2014 2:44 pm
Forum: PrimalForms
Topic: Building Forms on the fly
Replies: 2
Views: 10115

Re: Building Forms on the fly

Will do, thanx.
by boyddt_co
Wed Apr 02, 2014 1:03 pm
Forum: PrimalForms
Topic: Building Forms on the fly
Replies: 2
Views: 10115

Building Forms on the fly

I have a project that I'm working on whose output is going to vary depending on the operator using it. Basically it is a table with 7 columns and x number of rows - with the rows being dependent on the number of machines in a cell. The row count could be anywhere from 1 to 12. As I query data from S...