Search found 23 matches

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

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 7:13 am
Forum: Former and Future Customers - Questions
Topic: Strange behaviour with InternetExplorer.Application COM Object
Replies: 4
Views: 23599

Re: Strange behaviour with InternetExplorer.Application COM Object

Alexander Riedel wrote: Fri Jan 24, 2020 12: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 7:08 am
Forum: Former and Future Customers - Questions
Topic: Strange behaviour with InternetExplorer.Application COM Object
Replies: 4
Views: 23599

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 11:22 am
Forum: Former and Future Customers - Questions
Topic: Strange behaviour with InternetExplorer.Application COM Object
Replies: 4
Views: 23599

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 pri...
by raphaelgj
Tue Jan 15, 2019 11:45 am
Forum: PowerShell GUIs
Topic: Listbox - scroll insanely slow/choppy with mouse wheel but not scrollbar?
Replies: 4
Views: 2150

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 11:00 am
Forum: PowerShell GUIs
Topic: Listbox - scroll insanely slow/choppy with mouse wheel but not scrollbar?
Replies: 4
Views: 2150

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 3:17 pm
Forum: PowerShell GUIs
Topic: Export Datagridview to CSV
Replies: 11
Views: 6707

Re: Export Datagridview to CSV

jvierra wrote: Fri Nov 16, 2018 3: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 3:05 pm
Forum: PowerShell GUIs
Topic: Export Datagridview to CSV
Replies: 11
Views: 6707

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 1:24 pm
Forum: PowerShell GUIs
Topic: Export Datagridview to CSV
Replies: 11
Views: 6707

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 12:28 pm
Forum: PowerShell GUIs
Topic: Export Datagridview to CSV
Replies: 11
Views: 6707

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.C...