|
I doubt you're going to find an example of this. Also, VB.NET doesn't support pointers, so a fast search through pixel data would be pretty slow. Writing that aprt of the app in C# would speed it dramatically. Search the articles for "Image processing for dummies" and you'll find examples on how to examine and manipulate pixel data using pointers in C#.
The search logic would probably go something like... scan the screen for the first pixel in the top left corner of the image you're searching for. If found, then start scanning the capture image from that pixel and comparing to the pixels in the search image. If you get through the search image without missing a pixel in the capture image, you've found what you're looking for.
But, then again, you didn't describe what you meant by "image or picture search".
|
|
|
|
|
I am coming from a REALbasic background so I'm not sure if this is possible or will be explained correctly.
What I had in REALbasic was a Class with a subclass of their httpsocket (to download a webpage). By subclassing it, it gave me access to it's events like DownloadComplete, Error, DataReceived, etc...
Is this type of thing possible in VB.Net? I have it working without the subclassing using the webrequest and webresponse functions but i need to run multiple requests at the same time and stop any of them at any time. The app is running tests using web tools on an internal network and then parsing the results into the app.
I don't NEED to use webrequest / webresponse if something else will do the trick better.
Thanks in advance to anyone with helpful information.
Dave
|
|
|
|
|
This sounds like you would wrap the WebRequest/WebResponse in your own class, and launch multiple instances of it under new threads, or keep the wrapper class and use the Begin... versions of the methods you're using now.
|
|
|
|
|
I have a object on my form in VB.net 2005 that doesn't handle mouse click event. I want to put a clear (transparent) panel over the object, just to capture the mouse events. Everytime I create a panel with the bg color matching the transparency key, I get a hole in my form, which I dont want. Any idea how to create a "clear" panel or picturebox?
Any simple ideas?
|
|
|
|
|
Does that "object" get the focus? If so, you might set the KeyPreview property of the form to True and then test in the form's MouseDown event for ...
(1) a mouse click (e.g. e.Button = Windows.Forms.MouseButtons.Right), and
(2) the "object" having the focus (e.g. Me.ActiveControl.Name = "Label1").
When those conditions are met, the "object" has been clicked.
|
|
|
|
|
I set the keypreview property of the form to true. However, when I click on the object, it doesn't get sent to the forms mousedown or mouseclick event handler. When I click on the forms background, it does go to my handler.
For some reason, the form doesn't see mouse events on the object.
I just thought a clear (transparent) panel/picturebox, or something to overlay the object would be the simpliest solution, but obviously its not so simple, or I'm missing something.
The object i'm referring is a video window from a digital recorder that is brought into the toolbox as a com object from a dll. They didn't implement mouse click events.
|
|
|
|
|
It would appear that you need to discuss this issue with the creators of the dll so maybe they can change the dll to raise the mouse events. Other than that, I have no idea. Sorry.
|
|
|
|
|
|
Is it possible to call the identity monitors method that is available in the Display Properties, so that numbers are displayed on the desktop of each monitor?
Could someone nudge me in the right direction? Thanks!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
No love for Jon-Boy?
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
No, it's just what you want is so obsurce as to never have been tried. I still can't find anything on it. As far as I can tell, there is no public launch point that can get at that part of the Display control panel.
I think this would take a call to Microsoft's Developer Support to find anything out on it.
|
|
|
|
|
Oko Dave. I figured someone must have tried using it for a multi monitor app. I'll just create my own version of the same thing.
Glad someone round here is still looking after me
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Hi,
My Front end is VB.net 2008
I have a form. In this form, I have a menu control, this menu control has four buttons.
On clicking the first three buttons, open the window with Show() event.
and the fourth button open the screen with ShowDialog()
Now, One by one I am clicking the button , so finally i have now four windows of this application.(Three with Show() and one with ShowDialog())
Right?
Now I am minimizing all the windows with the help of Window + D Button.
After this, If I use the keyboard(Alt+ Tab) keys. This is opening the showDialog window on top because , Show dialog's TopMost = True.
Now I come back to my problem. That's why I cannot use the show/Showdialog overloaded menthod to pass the Me/form-id
Again, I use the keyboard(Alt+ Tab) keys, to minimized all windows. In the taskbar and Startmenu properties , I have selected the Group Similar Taskbar buttons
This resulted in the heap of my application windows, one on the other.
I hope you have understood this point. By doing this , same kind of windows lie one on the other.
Now i click on one of my application window , and If I click the window other then the Show Dialog opened Window, this is not bringing the show dialog window to topMost.
Note:- There is no parent child window requirement. That's why I can't use the Show/Show Dialog overloaded method to pass the Me/Form-id
This is the problem.
Please let me know if you still face any problem in understanding the question.
|
|
|
|
|
I want to write a text file on a different computer over LAN.
Any idea about it?
|
|
|
|
|
share the target directory and write textfile to \\computername\sharename\filename.txt
Tosch
|
|
|
|
|
For the win.
Use the streamwriter or my.Computer.FileSystem.WriteAllText
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
So far, i have gotten the hang of using VB 2008, and managed to read and write to one serial port. Now, I need to open two different ports simultaneously. One port needs to be read and write and the other just to read and trigger and event when it fills a statement. My questions are,
1. Can I open multiple ports by using the same method as oepning a single port?
2. When I receive data from the two ports, can I invoke two different receive events?
Much help would be appreciated on this. Thanks in advance.
Quin
|
|
|
|
|
yes.
yes.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Thanks for the quick reply.
I'll test it out some more before asking for more help on this. Hopefully, there won't be too much problems.
|
|
|
|
|
I am doing a hardware based project and planning to establish communication with the computer using Serial Port RS-232 using an interface IC MAX 232.
I am doing my project VB.Net 2008 and have no prior experence with the same. My computer doesnot posses a serial port so I am using USB to Serial convertor. My PC has COM3 port. Please can someone help me with the serial programming as MSDN was of no help. Also the binding navigator command is unable to calculate the maximum number of records present when the form is opened.
|
|
|
|
|
Ishaan Karnik wrote: Please can someone help me with the serial programming as MSDN was of no help
If you think that is the case, then you are using the wrong search term. I found loads of Serial/RS232 tutorials with VB on MSDN.
Try altering your search!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi,
You want the SerialPort class.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I meant MSDN was of no help because it confused me.
From where exactly should I start.
I have no experence in this issue and even a begginer in VB.Net.
Do i need to get some dll or I can directly start as shown in MSDN.
I am using Visual Studio 2008.
Thank You.
|
|
|
|
|
Hi,
if you are a beginner in .NET or in one of its languages, then a serial port application is not a good start. You should get well acquainted with the platform before you start tackling a serial communication, since that is, although not very complex, well hard to debug and get it right, since it takes some doing to figure out which end is or isn't doing what.
Once you know .NET and either C# or VB.NET you will need the SerialPort class. There are some good articles on CodeProject about serial communication.
The port being USB connected is rather irrelevant, assuming you install the driver that came with the USB-to-serial cable. The driver turns the port into a regular serial port, so it shows up
in all serial port enumerations, and most/all serial apps can use it, whether
HyperTerminal or some .NET based app using SerialPort class.
The app never is aware the USB-based serial port is connected in a different manner,
all the nasty details are hidden by Windows and the device drivers.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
hi
modified 28-Nov-12 8:55am.
|
|
|
|