VS 2008 Getting Image From 3rd Party App?
Aug 23, 2009
Some will remember my first thread about extracting an image from a 3rd party application. The solution that was offered was to use the Easy Screenshot class that is in the code bank.While this solution works, there are obvious drawbacks. I'm trying to fully automate this program, and needing the window to come to the foreground, even momentarily, defeats the purpose of it.Is there another way to get the image held in a picture box of a 3rd party application?
View 10 Replies
ADVERTISEMENT
Feb 1, 2009
does anybody know of a 3rd party spell checker that will work with VB 2008 in a non web application??
View 2 Replies
Jul 19, 2011
this is an interesting problem and to be honest, I'm not sure there's a solution to it. But thought I'd ask the brain-trust here and see what comes up.I'm developing a dll that is loaded and ran within a third-party application. The third-party company provides an API to use that leverages their application's internal objects so that I can automate our processes. It's really pretty slick. They have a class object that represents the internal structure of their supported documents, appropriately titled Database. I would like to serialize the Database class using the ConfigurationConverterBase (to create a TypeConverter for conversion to and from) in conjunction with custom configuration elements and properties to store this information and retrieve when necessary. I've created the converter and all the necessary code for the custom configuration process. And it all works like a charm with one exception... the Database object does not have the Serializeable attribute applied.
Since I don't have control over the API they developed, I cannot simply add it. And since it is sealed, I cannot inherit it. This leaves me with an ugly option of converting the document to a temporary file that is a text-based version of it, then streaming it into memory before creating a binary format that can be saved into the config file. This is an ugly approach, but will get the job done.
Does anyone know how to work around the original issue for a more streamlined approach?
View 1 Replies
Nov 30, 2010
I am trying to create an interface between a third party application which can make use of C/C++ DLLs, but no interface directly to .NET. What I was hoping to accomplish (not sure if possible though), is create a very basic C++ DLL (not .NET), which the third party application would call directly. This DLL would contain a basic method such as "DoSomething()". Somehow, from my .NET application, I want to "listen" to this DLL and "takeover" the DoSomething() method, and then returning the result back to the DLL, which will in turn return the result back to the calling third party application.
I don't even know if this is possible because I'm sure I would somehow have to get a hold of the memory space of the DLL as initiated by the third party application. Also, it seems that creating a managed DLL does not work, based on feedback from other individuals who have tried this.
View 1 Replies
Dec 4, 2009
I have to write a program that will allow a usert o track the invitation list for a party. The user can enter the name of a person to be invited. When the send Invitatin button is clicked, the name appears in the checked listbox. This counts as an invited person.When an invited person confirms that they will be attending, the user will check the name in the checked listbox. this counts as a confirmed person.
What I am having a hard time figuring out is the codes! What would I declare my integer variables to hold the count of invited persons and the count of confirmed persons? And how would I code a loop to check if the name enetered in the name textbox already appears in the list box, if so, display a message telling the user that this person has already been invited?
View 3 Replies
Aug 14, 2011
I'd like to verify if an image control has an image loaded . If it does , I want to unload that image (and load no image) , but if the image control has no image loaded , I want to load an image . Is it possible ?
If ImageMY.Image.Equals(Nothing) Then
ImageMY.Image = System.Drawing.Image.FromFile("C:ImageBlaBlaBla.jpg")
Else
[code].....
View 3 Replies
Apr 8, 2011
I've completed projects similar to this in the past but this one has me stumped. Trying to retrieve text from a text box in a third party application. Using SPY++ I found that this control is the second control in the list so I coded the following: Dim parentWindow as integer = windows.ReturnWindowHandle({windowname})
If parentWindow > 0 then
Dim childWindow as integer = FindWindowEx(parentWindow, 0, Nothing, {child window name})
Dim field as integer = 0
[Code].....
This worked great. Closed the app, came back the next day and this same code did not work. Used spy++ and found that the control had moved to the 4th position. Closed it, reopened it, this time it moved to the first. What is the best way to find this control each time when there are are 50+ controls on the screen and they all appear in spy++ like this:
Window 0022063A "" Edit
Window 00270652 "" Edit
Window 001A0630 "" Edit
and they continue to rearrange themselves each time the application is closed and reopened?
View 3 Replies
Jan 23, 2010
I've been browsing around but the examples I find to do this are either for older VB (which I don't dominate that well and are having some trouble 'fixing') or quite basic and don't allow me to do what I want. Basically, what I want it to get the text on some of the text boxes on a 3rd party application. After some research I concluded these are considered child windows and... Well and from then on I found scattered pieces of information that keep me awake at night So, in order to get the text I want, what should I do?
View 4 Replies
Nov 2, 2010
In VB6 you could BITBLT things around before refreshing the screen. In .NET, I'm aware of DrawImage, but that can only be done on a paint event rather than before anything gets painted. The issue I have is, I need to open several files with image data in them and then build a bigger image with those smaller images. Before I could open them, BITBLT them to a Buffer. As far as I can tell .NET offers no way to do this as the only function I've been able to find (DrawImage) only works within the paint event. Is there still a way to do this in VS08 or no?
View 6 Replies
Oct 14, 2009
Ive been programming in VB6 for years, i figured its time for an upgrade. Here's what im doing, and what the problem is:
Im loading a bunch of pictures on top of one image. They are all PNG files, and some of the images have transparent edges, and some semi-transparency within the image itself.
So basically, i need to be able to load these images on top of the other images, and still maintain the transparency.
Is this possible in VB08? This is one of the main reasons i moved to 08 from vb6, more things possible including multithreading.
View 11 Replies
Jun 19, 2009
I need to know how to use listview, I'm having trouble using it.What are listviews uses?What can be listed in listview?What cannot be listview?If an image is in listview, will it display a thumbnail of the image?
View 4 Replies
Sep 4, 2011
I want to draw an image onto another image object but use an alphamask specified from another image that is grayscale.
I am drawing an animation manually so don't want to do this pixel by pixel as this would be extremely inefficient.
View 2 Replies
Sep 15, 2009
I'm having a problem getting the src of the image the mouse is hovering over in a webbrowser. I can get an href just fine, just not an src. To get the href, I used this
Something = Webbrowser1.Document.ActiveElement.GetAttribute("href")
When I try to do it for an image, nothing happens. How do I get the image location?
View 2 Replies
Oct 3, 2011
I am trying to edit an image. I can open the image with Picturebox1.load(mypicture)
I can change the pixels/edit the picture by Dim img as new bitmap(picturebox1.image)
[Code]...
now here is the weird part. When I save the image the filesize INCREASES..but the picture dimensions are the same Example... TEST.PNG 1.3KB, when opened up via picturebox/saved the image is now 2.3KB
not sure why...i even though I specify system.drawing.imaging.imageformat.PNG
samething with JPG... it actually SHRINKS it evenmore.. example 88KB jpeg.. saved as jpeg is now 47.7KB...
View 7 Replies
Mar 18, 2012
I am trying to read a 16bit binary file (tif image) and pixel values of the image ranges from 1200 to 4500. I tried to use BinaryReader using ReadUInt16 but I get EndOfStreamException Unhandled error. ReadByte method works fine with an 8bit tif file. I do not know how to read a 16bit image file using binaryReader. Shouldn't I use ReadUInt16 since values of pixels range from 1200 to 4500?
[Code]....
View 10 Replies
Jun 8, 2010
Screen and send are both bmps:This is what I've tried so far but it doesn't work
For y = 0 To screen.Height - 1
For x = 0 To screen.Width - 1
If getpixel(screen, x, y) = getpixel(send, 0, 0) Then
[code].....
View 2 Replies
Apr 5, 2010
How do I create a program that finds the position of an image that is contained in another image?
View 1 Replies
Aug 1, 2009
I'm trying to get the image's name from a imagelist..[code]ofcourse that "name" doesn't exists, and I'm trying to find out what another correct way to get the name of that image.
View 1 Replies
Oct 8, 2009
I've spent the best part of the week learning about TCP/IP and sockets but it's really draining my enthusiasm for my project. The basics are simple enough and the MSDN examples are fine and I can put together a simple server/client easily now, but once I start getting into asynchronous connections, threading and all the other stuff, I'm getting bogged down and frustrated. I've followed a dozen tutorials and examples now and they're all too confusing and half of them simply don't work.
I think what's most frustrating is that I really don't wish to become an expert on sockets or TCP, which seems to be the advice on most forum replies. I really want to be getting on with my project which has ground to a halt since I started looking into this. Yes, I know the world isn't always that simple.
So, what I'm looking for is a 3rd party app or some working code that will let me set up a server and multiple clients. All I really want them to be able to do is to send strings to each other, without blocking the application. Really, that's it, just the ability to pass strings back and forth between server and client, preferably in as simple a format as possible - e.g SendMessage(Client,String).
View 10 Replies
Aug 25, 2010
I am trying to use some 3rd party web service for which i hv sample file which is writen in C# and same I am trying to rewrite in vb.net for implement till last line I hv understood and implemented , but I am not able to understand last line in this code so pls help me to understand the last line of this code how to write same line in VB.net
AgentWS = new AgentWebRef.AgentWebServiceService();
EventWS = new EventWebRef.EventServiceService();
//The client application will receive a unique SessionId from the Agent
//Web Service upon issuing its first request. The application must
[code].....
View 2 Replies
Aug 13, 2009
I have a third-party .dll file provided to me by the manufacturer. I have never worked with .dll files before, so I am wondering:
How can I add the file to my project?How can I utilize intellisense to use the methods in the dll?
View 8 Replies
Dec 21, 2009
I have a third party dll that contain a class, SampleClass1
Public Class SampleClass1
Public SomeValue As Double
Public Function Test() As Double
[code]....
My intention is if the dll is found, use it. Else ignore it. However, if the dll is not found, the program throw an Invalid OperationException.
View 7 Replies
May 28, 2009
I am writing a small application that will display some info to my end user. I have another program that the end user will have open while running my appplication. What I am trying to do is have my application launch itself (and maintain positioning if other app location changes) and "tether" itself to the other application.Ideally the top left of my application would attach to the top right of the other application.I have tried for countless hours working with the GetWindowPos API but the values returned are either all zeros or it just doesn't work.I do a Try/Catch to see if the other app is running and I fetch the Handle of the process. This works fine. Then I try to get the positioning of this process and set my .Left property to the returned RECT's .Left property. no dice.This is Visual Basic 2005 ExpressOther application is a PuTTY window that is not a fullscreen app.
View 3 Replies
Jul 27, 2011
Is there any code for vb.net so i can zip and unzip file without any 3rd party programs e.g. (i know this is not right)
Using zip As ZipFile = New ZipFile
zip.AddDirectory(directory)
zip.Save(targetZip)
End Using
View 1 Replies
Jun 12, 2010
my program launches a 3rd party program with a few switches to update itself.Once these updates are complete I need to manually click save from the applications menu. This can be done via the keyboard (Alt Gr + M then Alt Gr + S)
The application will take several seconds to load at which point the application will open maximised and the save option will be enabled.
View 1 Replies
Jan 5, 2009
the best 3rd party component in vb.net.
The most important I want is listview / combobox
View 4 Replies
Jul 9, 2010
I have a 3rd party DLL which converts my file(ex: text file) their intermediate format.
this function convert the file to their intermediate format and stores the result in targetdirectory.
Dim result As Result = test.Convert(file, targetdirectory)
If Not result = result.Success Then
MsgBox("Convertion failed")
[Code].....
View 3 Replies
Feb 29, 2012
Does anyone know of a good 3rd party reference for Win32 API for .Net where VB.Net is the target language Most API references target C as the language of choice. Frankly, I hate C and all C like languages.
View 11 Replies
Jan 20, 2009
I'm using VB 2008 and I'm trying to add a xmlns="mynamespace" attribute to an XDocument's root element.The XML document is created by a 3rd party, and I have loaded it into a VB XDocument object. As it comes, it has no namespaces. I have been working on a local copy and I added in a namespace in a text editor, so that I can use the XMLToSchema in VB to enable intellisense etc, as per the instructions in the Beth Massi vids at MSDN. Now the rest of the code works I want to open the live documents again. Without the namespace, my XML literals don't resolve.I've tried unsuccessfully to add in the XMLNS property to the root tag using a few methods, and the nearest I got was the following three code samples.
Dim myNS As XNamespace = "urn:nbf:namespacename"
myXML.Element("nameofrootelement").Add(myNS)
^^^^ The namespace was added as the value of the root element, not as an attribute.
XML.Root.Add(New XAttribute("xmlns", "name"))
^^^^ Generated the error: Run-time exception thrown : System.Xml.XmlException - The prefix '' cannot be redefined from '' to 'name' within the same start element tag.
but
XML.Root.Add(New XAttribute("test", "name"))
^^^^ works correctly. Presumably it doesn't like me manually trying to set a reserved attribute? This namespacing seems way too over complex from some of the Googling I've done.I thought to .ToString it, then modify, then .Parse it also, but I wanted a better solution so that it would help me understand it a little better! I did try this though, and as you rightly point out, it affects all the descendants too, so thus it still breaks.
I will be working with multiple XML feeds all produced by different third parties, and I think for simplicity I will be leaving out the namespacing entirely!My own custom parsing function rewrites the third party feeds into one uniformed document, which then gets processed by another routine. I'll be able to add a ns to that intermediate piece of XML which will help when coding the secondary function.
View 1 Replies
Sep 3, 2010
I am working with dev ex controls and on a menu bar item there isnt a property for setting the button to Visible or not Not Visible. Can you add properties like this to pre made controls? If so how would you do it?
View 2 Replies