Search found 23 matches

by raphaelgj
Mon Jan 27, 2020 8:22 am
Forum: Former and Future Customers - Questions
Topic: Strange behaviour with InternetExplorer.Application COM Object
Replies: 4
Views: 2259

Re: Strange behaviour with InternetExplorer.Application COM Object

I found the answer, I needed to embed a default manifest for elevation (program had to run AS ADMIN) otherwise the com object wouldn't work properly.
by raphaelgj
Mon Jan 27, 2020 8:13 am
Forum: Former and Future Customers - Questions
Topic: Strange behaviour with InternetExplorer.Application COM Object
Replies: 4
Views: 2259

Re: Strange behaviour with InternetExplorer.Application COM Object

Alexander Riedel wrote:
Fri Jan 24, 2020 1:08 pm
Try specifying STA mode when packaging.
I've tried using STA mode on and off and it still doesn't work unfortunatly. Any other ideas? That's a really strange thing to have that object "empty" like that!
by raphaelgj
Mon Jan 27, 2020 8:08 am
Forum: Former and Future Customers - Questions
Topic: Strange behaviour with InternetExplorer.Application COM Object
Replies: 4
Views: 2259

Re: Strange behaviour with InternetExplorer.Application COM Object

I've tried using STA mode on and off and it still doesn't work unfortunatly. Any other ideas? That's a really strange thing to have that object "empty" like that!
by raphaelgj
Fri Jan 24, 2020 12:22 pm
Forum: Former and Future Customers - Questions
Topic: Strange behaviour with InternetExplorer.Application COM Object
Replies: 4
Views: 2259

Strange behaviour with InternetExplorer.Application COM Object

A very strange thing is happening with InternetExplorer.Application COM Object The following example works when designing the form in PowerShell studio and pressing RUN (F5) to run it (basically, open a web page and wait for READYSTATE to be 4 which is "page is done loading'"), it will print the $ie...
by raphaelgj
Tue Jan 15, 2019 12:45 pm
Forum: PowerShell GUIs
Topic: Listbox - scroll insanely slow/choppy with mouse wheel but not scrollbar?
Replies: 4
Views: 601

Re: Listbox - scroll insanely slow/choppy with mouse wheel but not scrollbar?

Thank you, however the same behaviour is present. If I give the scrollwheel a long scroll, it will scroll up the distance but not instantly like it would in notepad for example, it does it over 1-2 seconds...
by raphaelgj
Tue Jan 15, 2019 12:00 pm
Forum: PowerShell GUIs
Topic: Listbox - scroll insanely slow/choppy with mouse wheel but not scrollbar?
Replies: 4
Views: 601

Listbox - scroll insanely slow/choppy with mouse wheel but not scrollbar?

I have a simple listbox with around 70 items in it. If I click and move the SCROLLBAR, it's really smooth and there is no delay whatsover. If I scroll with the MOUSEWHEEL, it's incredibly choppy and delayed, slow. Why is that and how can it be fixed? Check this recording to see it in action using th...
by raphaelgj
Fri Nov 16, 2018 4:17 pm
Forum: PowerShell GUIs
Topic: Export Datagridview to CSV
Replies: 11
Views: 2012

Re: Export Datagridview to CSV

jvierra wrote:
Fri Nov 16, 2018 4:10 pm
Just add rows to the DataTable as you need. Once bound to the grid they will show automatically. I have used a grid for a dynamic logger and to dynamically display the results of a job as they arrived.
Ah, true. I don't need refresh. So it's the right way then?
by raphaelgj
Fri Nov 16, 2018 4:05 pm
Forum: PowerShell GUIs
Topic: Export Datagridview to CSV
Replies: 11
Views: 2012

Re: Export Datagridview to CSV

Ok I figured it out. My goal by the way is to see the rows being added in real time, I have a lot of variables and don't want to build the whole datatable and THEN show it in the datagridview, so here is a condensed example of what i'm doing (which is actually a lot more complex over a few hundred l...
by raphaelgj
Fri Nov 16, 2018 2:24 pm
Forum: PowerShell GUIs
Topic: Export Datagridview to CSV
Replies: 11
Views: 2012

Re: Export Datagridview to CSV

You need to start with a DataTable. Why is that so hard? Just convert your object collection to a DataTable. Post the code that loads your grid and I will give you an example. I now see my mistake was to just use rows.add to display the data and not put these rows in a data table. I'll change my co...
by raphaelgj
Fri Nov 16, 2018 1:28 pm
Forum: PowerShell GUIs
Topic: Export Datagridview to CSV
Replies: 11
Views: 2012

Re: Export Datagridview to CSV

Since the data is already generated with a different method than from a DataTable, my question is more like : How do I create a DataTable from an EXISTING DataGridView? So far I have : $DataTableCSV = New-Object System.Data.DataTable $DataTableCSV.TableName = "DataTableCSV" $DataTableCSV.Columns.Add...