Call Up Translucent Window (shell)
Jul 2, 2010
I need to call up a window from my application.
1- I want this window to be translucent and shows in front
2- I want this window to be translucent and shows behind
RetVal = Shell("C:EnergyPlusV5-0-0RUNEP.BAT", AppWinStyle.NormalFocus)
View 3 Replies
ADVERTISEMENT
Jun 3, 2011
I'm trying to use the Shell to have my application call an external application but its not working...I don't understand why. I get the following error: 'System.windows.shell' is a namespace and cannot be used as an expression!
Heres my code....any ideas what I'm doing wrong. Its got to be a simple...stupid error.
Private Sub mnuUpgrade_Click(ByVal Ctrl As Microsoft.Expression.Web.Interop.Legacy.CommandBarButton, ByRef CancelDefault As Boolean) Handles mnuUpgrade.Click
[CODE].....................
View 2 Replies
Jun 11, 2012
I need to be able to kick off a vb.net program on a windows server from a unix shell script on an AIX server. What what I need to do to make this possible? I'm a newbie on the .Net side, but I was thinking, maybe make the vb.net program some sort of web service then have the unix shell script invoke that somehow
View 2 Replies
Aug 8, 2011
I have an issue in my project I am programming in both Matlab (Matlab2011a) and Visual Basic (VS2008).I've created a .exe file from my matlab code. It works well when I click on it with my mouse.But I need to run it within Visual Basic. I know it's possible to call .exe files with Shell() or Process.Start(), and it works well for files such as firefox.exe or notepad.exe. However, it doesn't work when I call my own .exe file ...It's weird because when I look to the Task Manager while trying to call it (within VB), I can see the process starting and ending, but its output doesn't appear.
View 5 Replies
Jun 16, 2011
I have been searching for a way to hide a shell window.[code]How can I hide the shell window that something like this opens? The window would be open the entire time the program runs if not hidden it is used to do calculations.
View 1 Replies
Jun 6, 2006
I have the below code in a VB Console project. The AppWinStyle function is not hiding the window as expected?[code]...
View 3 Replies
Sep 6, 2011
I would like to launch a command line exe I created. For now it's a test program that writes Hello World to the console. I can launch it, but the shell window it displays it in only stays for a split second.
I know I can add a line to my console mode program (readline). But I would like to control it from the process launch. I will be using console mode programs that I did not write myself, and many of them don't stall the output. I can't find the right properties and methods to control the default shell behavior!
View 5 Replies
Oct 5, 2009
am working on an application in vb that requires using shell to call up windows date and time settings from clients machine.
View 2 Replies
Oct 20, 2009
I have A Wpf window with a Public Sub function(Window1). I need to execute that function from another window. Something like this:
Private Sub Window2_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Window1.Loaded
Dim Window1 As New Window 1
[Code]....
View 1 Replies
Sep 20, 2011
I deal with a lot of com class code. So, my code generally doesn't have a UI.I can't count on the calling code UI to handle the progress nor would they know the progress of my routines. I'm used to a language that allows you to call a progress window from any code. I've been banging my head up against a wall trying to find a way to create a simple Custom Control that I can simply call from my code that opens a modal window to report the progress.No matter what, I see a need for the backgroundworker in my code. But if the backgroundworker is declared in my code, I can't expose the doWork in the doworker sub.
View 1 Replies
Apr 5, 2010
Ok i cant seem to trace why this happens, i have a button which simply opens a folder (from a list of folders shown in a listbox) in windows, using this Dim folder12 As String = ListBox1.SelectedValueCall Shell("explorer.exe " & folder12, vbNormalFocus)The problem is it keeps working then failing, ive managed to trace it down to the size of the folder thats making it fail, it works fine if the selected folders size is sub 300mb, but anything above and it fails ad opens the 'my documents' folder instead.
View 2 Replies
Aug 1, 2009
I'm going to attempt to make a shell replacement for the Windows default shell: explorer.exe. I'm not sure if its possible using Vb.Net, but I can't seem why not. My end goal is to use a custom made shell for a Windows Preinstallation Environment instead of the default command prompt. I plan to use a 3rd party program to compile the program with the .NET Framework. Otherwise, it wouldn't work because Windows PE does not support the .NET Framework.
View 1 Replies
Nov 2, 2009
I using visual studio 2008 and visual basic.I need to create a form that pings my companies servers and gets the return value of the ping and displays the results in a label and run with a timer. I have eveything pretty set up and working the way I want it to but I would the command window pops up when the command is run. I found some code that was supposed to keep the command window in the background but it doesn't seem to work. [b]Can ayone help me figure how to make the command window run in the background or at least keeping if from popping up?/B]This is the code I found. According to the article I read False should keep the command window minimized. I tried it with true and I also tried it with False and neither worked.
objCmd = objWShell.Exec("ping " & url, 0, False)
This is the actual code I'm trying to run.
Public Function fnPingmeVer3(ByVal url As String) As String
Dim StringReturn As String
Dim objWShell As Object = New Object
[code]....
View 8 Replies
May 12, 2010
I am using normal windows form application. I wanted a way whereby I could create a layer over my form which would be semi transparent and nothing would be accessible until I click a button or do something like that. What I want is similar to a grey sheet that covers your screen in vista or 7 when user admin Yes/No box is displayed. Nothing is accessible behind. Or as you might see in some webpages where till we dont click a button or so the content behind is inaccessible.
Actually I want this to apply only on my mdi child form (a particular one) and it should enable me to see whats in the form but semi transparent and till i dont click a button on it, the content behind should'nt be accessible. Kinda like what you see in webpages whereby there is a button in the center and till you dont click it you can't select or click on content behind it.
View 9 Replies
Mar 27, 2011
I am currently working on image cropping software. Any idea how to make image under rectangle to be clear and outside area translucent?
View 5 Replies
Mar 5, 2011
I wish to create a form with a translucent clientwindow but want to have all contained controls and the form border display as normal. Setting the form's Opacity level dims the entire form including its controls and this is not the effect I'm trying to achieve. I have achieved the desired effect by placing a second form behind the main form (with the main form's "TransparencyKey" property set) and adjust the background form's opacity level. This added a few issues to overcome in terms handling the z-order, handling click-through through the main form, and an additional form in the Alt-Tab sequence that I did not want.
[Code]...
View 2 Replies
Feb 22, 2010
I'm using the MS Charting control, and can't find the way to create the translucent effect shown in their example piccy[url]...
Notice how the pie chart is translucent. How is this done with the chart control on a winform?
View 2 Replies
Feb 22, 2012
I used the same lines of codes to call a SQL server store procedure to export sql data to an XML file:
1. If I call the stored procedure from a window form application, it works and generates the file at the designated location.
2. If I call the stored procedure from a window service application with a setup project, and the install process run well, and I started the service, and checked the event log, it showed the service start successfully, BUT it FAILED to generate the file at the destination folder. I also run everything as administrator, but it still failed to generate the file. It made me wonder if a window service can call a stored procedure. Because, again, mine ran fine with the window form appl, but window service, I would like to have your sample codes. I have googled around for 3 days now, but could not find the answer. I use vs 2008, sql server 2008, and Windows 7
View 39 Replies
Jun 5, 2009
I had been looking for a way to move and resize an external window from my application and I came across this method: [Code] now this does not work, after looking around I many threads about how api calls in .net are different.
View 6 Replies
Oct 7, 2011
I have a program that in its essence is this:
Public Class Form1
Sub CopyUtility_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
[code]......
View 4 Replies
Jul 9, 2010
How can I make the main form grey out/translucent black when a new form opens on top?
View 8 Replies
May 17, 2011
I connected to the Informix server using RazorSQL, created a stored procedure and tested it, getting the expected answer, so the procedure exists in the database in some form.
I then run the following code:
If ConnectToInformix() Then
Dim cmd As New IfxCommand("dc_routeHasOutstandingQuantity", conn)
cmd.CommandType = CommandType.StoredProcedure
[Code]....
This error does not occur when calling the stored procedure from a live SQL connection.
View 1 Replies
Mar 22, 2012
I want to create an ExpressionTree where a Func(of Vector, Vector, Vector, Vector, Double, Double, Vektor) should be called. So I use
Expression.Call(Forces(0).Function.Method, {Vec1, Vec2, Vec3, Vec4, Double1, Double2})(Vec1-4, Double1-2 are declared as ParameterExpression and Forces(0).Function as Func(of Vector, Vector, Vector, Vector, Double, Double, Vector). But I get an AgrumentException, because Forces(0).Function.Method has seven Arguments. (System.Runtime.CompilerServices.Closure as seventh argument at Index 0).
View 2 Replies
Mar 20, 2010
I am trying to find the handle of the child window for the Yes button in the User Account Control window so i can click it. This window has a structure with a few child windows with the same name.
Dim hwnd As IntPtr = FindWindow(Nothing, "User Account Control")
Dim hwnd2 As IntPtr = FindWindowEx(hwnd, 0, "DirectUIHWND", vbNullString)
Dim hwnd3 As IntPtr = FindWindowEx(hwnd2, 0, "CtrlNotifySink", vbNullString)
Dim hwnd4 As IntPtr = FindWindowEx(hwnd3, 0, "Button", "&Yes")
There are multiple CtrNotifySink with its own Button child window or other child windows. How do i search thru the different CtrNotifySink window to find the one that contain the Yes button so i can send a click to it? I do need to find it before i can send a click, right? because i try just sending it to the main window with sendmessage and nothing happen.I even try sending it directly to the handle found by spy++ of the yes button with bm click but nothing happen?
View 2 Replies
Jun 12, 2009
I am trying to pass query string from one page to popup window as follow:
Dim popupScript As String = "window.open('cFinder.aspx?cName=" & c_TextBox.Text & "','', 'width=420,height=200,menubar=no,scrollbars=yes');"
If (Not Page.ClientScript.IsStartupScriptRegistered("popup")) Then
[code].....
View 5 Replies
May 2, 2012
Excuse me for posting this, but I have searched both Google along with this forum before asking this question, maybe I'm not using the right keywords but I apologize if it's easy to find.I would like to know how one could close a third-party window (application) if a specified string was found in the window title.
View 2 Replies
Feb 9, 2012
I have a VB.NET application that uses Managed DirectSound to capture audio.Everything works just fine until (a) the application is minimized or (b) the application is completey obstructed (covered) by another window.
The thing is that the CaptureBufferDescription structure does not include a GlobalFocus property so I don't know what to do to let my application continue capturing when the main window is hidden.
Here's the basic initialization code I'm using:
' Create a buffer description object
bufCapDesc = New CaptureBufferDescription()
With bufCapDesc
[code]....
View 8 Replies
Nov 24, 2010
border of that said window so the only place the mouse can't click the titlebar and the minimize,restore, and maximize button. The height of the titlebar depends on what OS the user is using so I'm having trouble because I can't give a definite value for this. How do I detect the height. and also for border i'm not sure if the borders have different widths with different operating systems. I'm using windows XP on classic mode, when I change to the themed mode, the height of the title bar changes so it won't work.
View 3 Replies
Nov 30, 2010
I would like to know how one could close a third-party window (application) if a specified string was found in the window title.
View 4 Replies
Feb 13, 2012
I am looking to close the application when I click a cancel button in a login page, but I don't want to do it in such a way that Window 2 closes itself, but by sending some notification to Main Window, and Main Window closes the application. Here's the code that I have so far:
(in loginPage)
Public Event CloseApp As EventHandler
Private Sub CancelButton_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles CancelButton.Click
[Code]....
View 1 Replies