API Functions (Locating Text Box Anywhere On The Computer)?
Jun 30, 2010
I want to learn more about API codes, but I don't know how to get started. The thing I want to accomplish today is:basically I want to be able to locate a certain text box anywhere on my computer, and then I want to be able to write something to it. For example here on Firefox, you see the navigation toolbar. I want my program to find the name for that window, and then to type for example ("www.vbforums.net") automatically.
I am loading a KJV.rtf file at program startup into RichTextBoxDisplay. When I want to select, lets say, Matthew Chapter 1, I want the program to take me to Matthew Chapter 1. I know I could just load a seperate file into the rtbDisplay, but do you know how many chapters and books are in the Bible..
I do not have access to the DLLs currently in production on a new project I am taking over. The source code is accessable but I want a copy of the original DLLs that were compiled and implemented in production via GAC. When I explore 'C:WINDOWSassembly' the DLLs are properly registered there as expected. I understand the GAC store the DLLs somewhere. where so I can get copies of them. The OS of the machine is Windows 2008 Enterprise.
I have a problem with MDI forms and their location. I have a container form within which I open several child forms. Also note that in the container form I have a ToolStrip at the top and it is also docked to the top. In each of the child forms I have set the following properties. I have set them at design time as well but it wasn't working for some reason so I put them in the form_load event as well.[code]...
I am trying to extract a filename from a route.the example string is: "c:/windows/example.cpp"..I need to be able to somehow extract "example.cpp" where "example.cpp" could be any word with any extension. The rest of the route is unecesary...
I am trying to make a program which outputs an Invoice Number, which consists of the first 3 letters of a person's first name and the last 3 digits of their zip code. The user enter their first and last name, then enters their city, state, and zip such as:
Name: Billy Jones City, State, Zip: Chicago, Illinois 42349 Therefore, the invoice would look like: Invoice: Bil349
I can get the first 3 letters of the first name fine using the substring function, but I have been stumped on how to get past all of the text to get the last 3 digits of the zip code entered.
I can get a user to locate and size a PictureBox by using the values from TrackBars but is there a way in which a user can do the same by dragging using the mouse?
1.) I have extended the Tree View Control into a user Control with the following code to include a key value and a value, like it was in VB 6 and .Net 1.0, and it allows me to read the key of a created (extended) Tree Node, but once I insert the node into the extended tree view control, it will not let me referece the key property of the node in the context of a nodes.find.
Let me say that I have 'f' as a file/folder path. Dim f As String = C:UsersTom BluewaterMusic Dim d As String = Path.GetDirectoryName(f)
Is it possible to locate f within its parent directory (d) as shown in the picture below? I know that you can open its parent directory like the following. Process.Start("explorer.exe", Path.GetDirectoryName(f))
And that's not exactly what I want. In this case, the Music folder won't be selected. I could search this place for a clue. But there was no hit. It seems that the search function doesn't always work here.
I'm very new to VB, so I was in the very first tutorial, it has me play a sound file. So I put that in, ran it, and it came back with an error saying "system cannot find this file." I guess I'm not terribly surprised, since the file they gave has no C: or anything like that. What I want to do now is play my very own sound file, but I don't want to go through the whole C:Documents and Settings... thing, so is there a way I can put my own sound file in the project directory and say something like %ProjectDir%/sounds/mysound.wav?
i want to locate specific coloured pixel on whole screen (if i set it to red then it should point cursor on the first red pixel that was found on screen)i managed to get cursor coordinates and pixel color of place where cursor is pointing, but i cant figure this out.
When I attempt to add a Service-based Database in VS2010, when starting a new project in VS2010, I receive the following error immediately after clicking "Add" when the Service-based Database is selected.A network-related or instance-specific error occured while establishing a connection to SQL Server. The server was not found or is not accesible. Verify that the instance name is correct and that SQL Server name is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified.)I've googled this problem and found this topic (url...), which wasn't able to help me. I'm still finding additional topics to troubleshoot with as well..
I'm writing a VB.Net WinForms application that has multiple data girds on any given form. On one such form, the data grids are loaded into split containers which in turn are located on a tab control. The load method for each data grid is threaded so that an animated "Loading" form can be shown. I would like to position the new loading form (which is smaller than the grid) on top of, and preferably in the center of, the grid that is loading. Whats the easiest way to find the grids location within the main form so that I can adjust the loading forms location?
Ok. So I have a form, a textbox, and a RichTextBox. In the RTB, there is justsomemiscellaneoustext. In the textbox, it says "Save "Test"". When I press Button1, I want my program to parse the text in the textbox, find "Save", and realize that means to save the text in the RTB to a txt file with the name "Test" (the text next to 'save' in quotes).
I am attempting to grab an attribute from an XML file and place it in a VB Class as a string. However when i try to run the program, I get a Null Reference Exception on line 21. why I'm getting this and not the placeID (line 2 on XML code)
Private Shared roomDoc As XmlDocument Private Shared rooms As XmlNode Private Shared roomList As XmlNodeList
Is there a way to see exactly what the functions are doing. What i mean is there a way to see the class? I know what it does, i just want to know the code. For example the function: Membership.FindUsersByName()
I am createing a console application and I was wondering if there was a way to display text like a computer was typing it itself. In further detail, if i wrote the line,Console.writeline("pie")console.read, and then i started the app, it would type each letter a quarter second or so apart, not just display the text. So it would first display p, then a couple miliseconds later it displayer i, and then e.
P.S the video game fallout has a feature where there are computers in the game are displayed how i want my text to come out. Look up a video of it.
I wrote a program that copied an image from the clipboard and stored it on a file. The machine I wrote it on ran Vista. When I copied the programs over to a computer running XP the program wouldn't recognize that there was an image on the clipboard. It will recognize that there is text on the clipboard but not images. When I transfer the programs over to a computer running Windows 7 it works just like it did on the Vista machine. So I figure the problem is somehow related to the XP operating system. But how? Lots of programs I use on the XP machine can copy images to and from the clipboard. So why can't the one I wrote in Visual Basic?