Search found 11150 matches

by jvierra
Mon Aug 21, 2017 11:29 am
Forum: Windows PowerShell
Topic: Sybase DB query
Replies: 1
Views: 33

Re: Sybase DB query

You can use ODBC to query it. Search for Sybase ODBC with Net FRamework and you will find many example.

Sybase also supports Net so post on Sybase forums for code samples.

http://infocenter.sybase.com/help/index ... CCCCCA.htm
by jvierra
Mon Aug 21, 2017 9:49 am
Forum: PowerShell GUIs
Topic: Passing command line params to running application
Replies: 8
Views: 84

Re: Passing command line params to running application

A packaged EXE still has only one thread and its message loop is pre-empted by "ShowDialog". Best I can remember the "ShowDialog" loop is a filtered loop which discards all messages that are not allowed by "modal" dialogs. System.Windows.Forms.Form has a "MessageLoop" substitution property but I bel...
by jvierra
Mon Aug 21, 2017 9:19 am
Forum: PowerShell GUIs
Topic: Passing command line params to running application
Replies: 8
Views: 84

Re: Passing command line params to running application

Unfortunately there is only one message loop and is is owned by the console application. The console app will not know what to do with custom messages. I have tried for years to find a way to defer events from the console to a form and have not found a way to do this. Events originating in a form wi...
by jvierra
Mon Aug 21, 2017 8:55 am
Forum: PowerShell GUIs
Topic: Passing command line params to running application
Replies: 8
Views: 84

Re: Passing command line params to running application

Actually there is a way to do this in PowerShell for programs that have messages defined such as the old DDE mechanism. PowerShell, however, is a console application and only defines specific messages. A PowerShell script could use MSMQ to listen for messages and then act on the or it could monitor ...
by jvierra
Mon Aug 21, 2017 3:25 am
Forum: PowerShell GUIs
Topic: KeyDown Event on TextBox
Replies: 4
Views: 58

Re: KeyDown Event on TextBox

You can use this to click a button:

Code: Select all

$textbox1_KeyDown=[System.Windows.Forms.KeyEventHandler]{
#Event Argument: $_ = [System.Windows.Forms.KeyEventArgs]
	if ($_.KeyCode -eq 'Enter'){
		$button1.PerformClick()
    }
}
by jvierra
Mon Aug 21, 2017 2:17 am
Forum: Windows PowerShell
Topic: Open Pop Up on remote computer using PS-remoting
Replies: 3
Views: 114

Re: Open Pop Up on remote computer using PS-remoting

It is not possible to do what you ask with PowerShell.
by jvierra
Mon Aug 21, 2017 2:17 am
Forum: PowerShell GUIs
Topic: Passing command line params to running application
Replies: 8
Views: 84

Re: Passing command line params to running application

This is not possible in PowerShell. Programs that can be remotely automated are COM servers. PowerShell cannot be used as a COM server.
by jvierra
Mon Aug 21, 2017 2:15 am
Forum: PowerShell GUIs
Topic: KeyDown Event on TextBox
Replies: 4
Views: 58

Re: KeyDown Event on TextBox

Sorry but there is not enough information to understand your issue.
by jvierra
Fri Aug 18, 2017 12:30 pm
Forum: PowerShell GUIs
Topic: Designer Size vs. Running Size?
Replies: 3
Views: 119

Re: Designer Size vs. Running Size?

if you are on a hires monitor then read this article on how to set up for proper scaling: https://info.sapien.com/index.php/guis/ ... i-displays
by jvierra
Fri Aug 18, 2017 12:28 pm
Forum: PowerShell GUIs
Topic: Designer Size vs. Running Size?
Replies: 3
Views: 119

Re: Designer Size vs. Running Size?

Are you in an ultra hires monitor?