VS 2010 Open Window Handles?
Jun 18, 2012get a listing of all current open windows, with their captions and have the option to close these windows via code.
View 22 Repliesget a listing of all current open windows, with their captions and have the option to close these windows via code.
View 22 RepliesPrivate Sub LinkClicked(ByVal sender As Object, ByVal e As EventArgs)
Dim link As HtmlElement = WebBrowser1.Document.ActiveElement
Dim url As String = link.GetAttribute("href")
[code]...
Okay so here's the question how do I get the links that open in a new window to open in my main webbrowser control. The above code does some, but it's not fool proof.
if you guys have used office 2003 or better( i am sure all) then you would have seen that when the help window open it causes the active windows say of MS WORD to change accordingly so that this help windows fits with it along the right side and this functionality i want to implement in my VB windows application and have no idea how to do it Also i have seen this feature in GOOGLE DESKTOP GADGETS...
i want to implement that when my application opens which ever is the active window( of any application) snaps to the left and allows my application to fir in the right hand side i am developing my application in VS 2005 using Visual Basic.
So I need to grab all the handles and there captions of a window with the Caption "goman" and add them to a listbox
View 2 Replies1. I have an array of windows handles (list of window handles) which are windows I want to minimize when I call the ShowWindow API. But when I call it it sometimes minimizes other windows which aren't the windows I had before. I'm guessing that window handles are changed when other windows are being opened, is there is any option to detect a window in other way? like identity or something like that?
2. I'm trying to change a window size by using the SetWindowPos, but the problem is that I'm using this API while I'm dragging a window which causes the window to change the size for a sec and then go back to the same size, how can I change the window size while I'm dragging it?
3. When a left mouse button is up I want to maximize a window, but when I'm using the ShowWindow API right after the left mose button is up it causes the window to maximize for a sec and then go back I could fix that adding a delay:[code...]
4. Another question, can anyone give me an example on how to put a window right behind other window? (I guess changing something in the Z order?) I already got the two windows handles.
I just want a button to check if a certain process or window is running and if it is i just want it to show a message box.
View 2 RepliesWhen i'm clicking on a link in a page i've navigated to in my web browser it opens with Internet Explorer. How can i make it open in a new window with my webbrowser? I'm using a tab control inted of webbrowser control btw, you can post codes for both of them
View 1 RepliesI am experiencing a strange issue with a VB6 -> VB.Net conversion. There is a function that uses ADOX to look through the tables in a given database, and reset the seed values of any columns in said tables with the auto increment property set to true.I tracked the issue down to a call of "col.Properties("Autoincrement").Value". If this line of code is commented out, then the file handle properly terminates when I close both the ADO and the ADOX connections at the end of the function. If I leave that line in, the handle stays open despite the closing calls and forcing garbage collection.Here's how I am closing the objects:
System.Runtime.InteropServices.Marshal.ReleaseComObject(adoConn)
Dim connection As ADODB.Connection = cat.ActiveConnection
If Not connection Is Nothing Then
[code]....
How do I get the list of open file handles by process id in C#?
I'm interested in digging down and getting the file names as well.
Looking for the programmatic equivalent of what process explorer does.
Most likely this will require interop.
How do you open the autos window for debug in vb .net 2010?
View 2 Replieswhen i use the "anything.show" command, it will always open in a new window... How can i make it open in the same window?
View 11 RepliesI 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].....
I have create a project with one main form window and also i have to use a number of other forms as well. now i want to open these other forms inside the main window and not outside. I'm using Visual Studio .NET 2010 as developing environment.
View 1 RepliesWhen I run project splashscreen is popup and then Logon window is run. But unfortunately when Logon window is run the splashscreen still open like maximized window and I cannot see Logon window. How to fix that problem?
View 1 RepliesWhat i want to do is grab the handle of a webbroswer control and only read the co-ordinates within those bounds. I have successfully manager to do this but the problem i am now having is moving the mouse to those co-ordinates, for some reason after getting the handle and moving the mouse:
Windows.Forms.Cursor.Position = WebBrowser1.PointToClient(New Point(x, y))
It still reads full screen co-ordinates.
I like to open a file. The open option should be shown in a separate window. My code works fine but the open window is not displaying to open a file. Here is the code:
private void OpenMyFile()
{
string path = GetPath() + ViewState["fileopen"];
[Code]....
How would i go about making a form that handles a different forms settings?ei, the Button Forecolours ect.
View 5 RepliesI am making a browser and i have putted tabs in it too. But when i click "open in new window" in my browser the internet explorar pops up. I want my browser window to pop up. Secondly the "open in new tab" option is not avaliable when i right click a link. How to make it avaliable and the new tab should open in my browser(not internet explorar)
View 2 RepliesI am trying to follow this thread
[URL]
and I have it pretty close but have one error.
Quote:Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
That error is on both of these, in blue
Private Sub SpellChecker1_DeletedWord(ByVal sender As Object, ByVal e As NetSpell.SpellChecker.SpellingEventArgs) Handles SpellChecker1.DeletedWord
'save existing selecting
[code]....
I have added the reference, I have also added them to the toolbox. My dictionary is all set. What did I miss?
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 RepliesHow can I get the handle of the window that is below (or behind, whatever you call it) the foreground window?
View 2 RepliesSo i have a program and pretty much they enter a user name and pw.Then press log in Once they press log in i want a new window to pop up With more stuff i will put in it.The log in user name and pw can be anything.But how can i make it to where once they press login button a new window will pop up and the old one with the log in page will vanish and in the new window ima add more codes
View 7 RepliesSo I'm making a program where you enter your name click enter then that window closes and a new one opens up. How would I make a new window open up?
View 5 RepliesIm currently making a program that basically tries to create an account (aint started with database yet) so my program starts off with a window which tells me the basic information and then there is a button on the window, asking me to start creating my account, what I want is for another window a appear asking for the details, how would I go about adding a new window? im using Visual basic 2008 express edition.
View 2 RepliesI am using very simple code to open up a hard coded link in IE.[code]I have looked and everyone has a different way of doing it, none of which I can make work.Is there a simple explanation for making it work ?
View 14 Repliesim trying to run "ipconfig /all" in vb this is the code i have but the window closes down after it has completed the command is there away to keep the window active until the user wants to close it?
[Code]...
I'm running Visual Studio 2008. Often, when I'm in one project, I want to open another project that is related in some way, either to fix a bug that affects both or implement a feature that will benefit both.If I'm currently editing project A, how can I open project B in a new window?
View 4 Replieswe use a terminal emulator called facetwin to run our main unix based applications we want to attach a small document scanner and magnetic strip reader to the system this runs on currently we have a magnetic reader that emulates a keyboard so it sends keystrokes back to the unix app. however the new scanner does not.
[Code]...
Private Sub NTSD_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.AxWebBrowser1.Navigate("NTSD2010.swf")
[Code]....
i wonder how i can open a new form in same window . Example : i have a button on my first form when user click the button , form2 must appear in same window .
View 1 Replies