VS 2008 Check For A Specific Window?
Jan 12, 2010
my application i call a COM API that open's a dialog window that the user has to put some strings, what i'm trying to do it's before calling the method of the api, i create some service/background worker that checks for that dialog, and when the dialog shows up, fill all the fields...
It's possible to do somehting like this?
VB.NET
mySubThatWillWait("WindowName") 'To stay running until finding the window and fill the fields
Dim result as long = MyComCall.Run(Me.Handle) 'Call the Method
View 3 Replies
ADVERTISEMENT
Jul 31, 2009
Can I close a specific Url window? I have a specific url that starts with [URL]. It is a popup advertisement. I am looking for something like this: If Process.ProcessName.Url.StartsWith [URL] Then Process.Kill() (I know that this line has nothing to do with VB .Net)
View 2 Replies
Jul 7, 2011
i'm using Visual Basic 2008, and my question is following: Is here a way to make vb2008 app click on specific window with coordinates? for example i want to click on my notepad window ( for example on next coords: 20;150 )
View 1 Replies
Apr 24, 2010
How do I check if a Window is in Focus? Like, I want to put in a Process Name, and see if its the Window in focus.
View 5 Replies
Dec 15, 2011
My application is like this : i have to search my data from database with some check box and text box when user select check box specific function go on and then when user enters some range of value in textbox then the result will shown in data grid view after that i can print it by selecting data
my vb.net code is as follow:
Imports System.Data
Imports System.Data.SqlClient
Public Class XtraForm1
[CODE]............
I m also pasting the demo picture.
View 2 Replies
Jan 17, 2010
Is there a way to check specific pixels in a picturebox to check the color? Basically what I have is a black square with some white dots, and I want to find the position's in the picture of the white dots.
View 2 Replies
Jul 1, 2009
I send a message a while ago and no one answerd, how can I draw directly on the screen (not on a specific window) just on the screen, neither if it's on the desktop or anything else.Is there is any option to bring up the switch between applications window (Alt + Tab), I don't want to use sendkeys because the user need to keep the key down and I just want the user to select the application with his mouse.
View 3 Replies
Dec 22, 2011
In Visual Basic 2008 Express Edition, how would I send keystrokes to a specific window. Right now, I just keep the window I want on top and use sendkeys.send("{enter}"). The window that I want to send keystrokes to is my applications
View 4 Replies
Oct 7, 2009
Within my program, I have identified a process via System.Diagnostics.Processand.GetProcesses. Now I need to close one and only one of its windows whose window title i know. How do I do that?
View 7 Replies
Dec 19, 2008
In Visual Basic 2008 Express Edition, how would I send keystrokes to a specific window. Right now, I just keep the window I want on top and use sendkeys.send("{enter}"). The window that I want to send keystrokes to is my applications window.
View 13 Replies
Jun 15, 2010
if its possible to have mouse events like mouse movements, mouse clicks and so on in a specific window only. I'm not sure if you understand this so ill give you an example.
Okay lets say i want this program to only click within a window like Firefox or windows media player only. So that means if i minimize the window it will still click inside that window while its minimized, and i could continue doing other things while its clicking inside that window.
View 3 Replies
Jun 4, 2011
If I set the TopMost property of my form =True , it becomes and remains the top most window over ALL the desktop windows.how to make my form TopMost ONLY for a specific window (external to my program), knowing the Hwnd of the external window itself?
View 2 Replies
Jan 30, 2011
I want to make a screenshot of a specific window of which I know the handle. I know there is a BitBlt function but I can't get that to work with the handle, I prefer it to work even if the window is not active but I'm not sure if this is possible at all.
View 1 Replies
Sep 19, 2009
How can I move my window to a specific System.Windows.Forms.Screen?
View 4 Replies
Jun 25, 2009
How would I go about referring to specific listview items directly.
Under certain circumstances I want to check a specific listviewitem, but i can't seem to refer to the specific item of the listview...
View 4 Replies
Sep 16, 2009
any method that can check for specific value of a string whether it exists in the string and if it does then that whole string will be captured with that specific text.
View 15 Replies
Sep 30, 2010
How can i check if a dataset contains a specific value?
View 1 Replies
Dec 22, 2009
I'm writing an application that will be used in a mobile environment where network connectivity will be up/down regularly. How do I check to see that a specific network is available?
View 2 Replies
Jul 23, 2010
i need to check for a specific DateTime value in my table from my code (VB.NET) and i don't know how to format the DateTime as a string. i've read that SQL Server will recognize my string if it's in either date, time, or date and time format. i mean:
'May 15, 2004'
'5/15/2004'
'20040515'
[code]......
View 4 Replies
Jun 30, 2011
I have a winform application and this winform application has created few files. I want to implement "find target" function in my application to show those files. Those files located in a same folder. See the picture:Let's say that I have created few files in "C:Test" folder and this folder has this file: "C:TestFile1.txt". How to create "find target" functionality using VB.NET?
View 2 Replies
Jul 24, 2011
I wonder if it is possible to find a specific row and specific columns in data base file (Access) . You see , I am using a DataGridView control to show only SOME of the columns (fields) of a table from an Access file . For example , lets say that in the DataGridView control I only show the following fields :Field1 , Field2 and Field3 .Now , when the user selects an entry in the DataGridView control , I want to insert the text from Field4 into a text box on the form .
The problem , however , is that I don't know how to get the specific row in the data base file and also I don't know how to get the text in column (field) Field4 of that row .One thing that might be important is that the index of the row in the data base file is not necessarily the same with the index of the current row in the DataGridView control . This is because in the DataGridView control the rows are order by the contents in the ID Field .ol .
View 2 Replies
May 10, 2011
I'm wanting to add a some extra code within my application. My app is a single form that sets some environment variables before calling a one of two possible 3rd party executables to run. I have set via regedit the file association for files to open via my app but what I want to do is have my app check to see if either 3rd party app is already running. In short I'm trying to ensure either 3rd party app stays as a single instance.
If a user were to try an open another instance: 1) my application should simply terminate (no warnings, no msg boxes etc...) 2)the file that the user was trying to open should open within the existing instance of the 3rd party application. The problem is I don't quite know how to achieve both parts I imagine that this 'instance check' should happen as the first bit of code so that if no instance of either 3rd party app is found, then proceed with rest of my application. I have tested using some lines of code at the top of Sub New(). Here's what I have so far for checking for both 3rd party applications:
Public Sub New()
If IsProcessRunning("ustation") = True Then
Me.Close()
[code]....
This gives me an error when I debug (Cannot access a disposed object)
View 14 Replies
Jan 30, 2012
I tried this code but I don't know how to complete it. the code is to check if there is a file with extension ".mdb" in folder Debug in my project, and if there is a file it will get the name of it.
MsgBox(IO.File.Exists(IO.Path.HasExtension(Application.StartupPath)))
View 4 Replies
Jun 7, 2011
I want to be able to check VB code for VB-specific items (for example, vbCrLf instead of ControlChars.CrLF). Is there anything (tool, VS setting or plug-in, etc.) that will check VB code for these?
View 2 Replies
Nov 10, 2008
my question is how can i check a string for a specific char (for example, in the string:"242.421" theres the char "." how can i make a rule so that char can only be typed once... (in a textbox) so when a user click the "." button on their keyboard it won't allow it again (more than once)
View 5 Replies
May 2, 2010
How do I check which window is in focus? For example[code]...
View 1 Replies
Oct 13, 2009
How to check if a window is active? My case is: I have a program which runs in maxmize mode, allways on top, with no option to close and then i run another program which will normally run behind my program, but i want to enter ok or something to that program when i press a button in my program.So i think first i will have to verify if that program is active then i need to send a key (enter) in order for it to continue running while my program is visible to user.
View 3 Replies
Dec 2, 2010
I have a gridview displaying all employees. Upon selecting an employee, I'd like to open a new page or window that would display all of the information for that employee with the option to edit/delete/update. Once this transaction is complete, return to previous page with gridview of all employees. ((language I'm usings is VB))
[code]...
View 1 Replies
Jan 26, 2012
I have a Check Box that the use checks to indicate that a specific situation is present. When the User checks the box he gets a Message Box reminding him that the condition must be fulfilled. This works fine and the database reflectthe fact that the Check Box is filled.
At a later date, if the user calls this record and fills the form, the Check Box is triggered and the message Box appears in the middle of the form fill operation.
Is there a way to prevent this from happening. I want the Check Box checked but don't want the message box if the change is triggered by the fill process.
View 1 Replies
Dec 26, 2009
I need to check for specific words so that the program will know what smtp client will be used. For example. If the from textbox will have @yahoo.com on it then the program will make use of the smtp for yahoo.
View 2 Replies