|
Can't you translate the C# to Visual Basic? Just re-arrange some stuff, remove some semi-colons, and then cheat with this page[^].
|
|
|
|
|
If it's only a few pixels you want, you can call GetPixel on the Bitmap object holding the screen image.
|
|
|
|
|
Dear All,
I have an application which i want to integrate with other applications. My application will be running all the time (running on the tray icon) . I have implemented the keyboard hooking to catch a hot key F1 for exmple and call my application. What i need is to read a field value from the external applicaion and call my application passing that value as a parameter (Command()...)
Please give me key about where to look
Thanks in advance
Best Regards
3ala2
|
|
|
|
|
This is not easy. Unless the applications expose this information in an API (not many do), you're going to find this a huge pain. You have to get the window handle of the window that holds the control you want to get the value from. Then you have to go through the controls, an possibly container controls, to find the control you want, then send a WM_GETTEXT message to the control and get the value back. The problem is, there's no guarantee that the control in question will respond to the message!
|
|
|
|
|
I have a 32bit application built on vb.net2003 that uses the bundled crystal reports.
It installs and runs flawlessly on XP platforms.
when I install it on Vista Business (x64), the app runs fine, but any attempt to generate a report (that is, to instantiate a derived report class, as in, "dim rpt as new rptWhataver") results in
Cannot find KeycodeV2.dll, or invalid keycode.
keycodev2.dll is in fact present, and the app was built properly with the keycode property.
again, this app, and the reports work fine in about 1000 locations around the world on XP, win2k, and (gasp!) win98se. Anybody have a suggestion or work-around?
rani
|
|
|
|
|
|
Hello,
I'm using VB.NET 2008 (framework 3.5).
I would like to check permanently if a new entry (row) is added to a table in particular, but I have no idea about how to do this... (is there some equivalent of the FileWatcher for DB ?...)
Thanks in advance
Etienne
|
|
|
|
|
The service could periodically count (SELECT COUNT(*) FROM ...) the number of rows in the table and when the count increases you know a new row was inserted.
A better solution would probably be to use a FOR INSERT trigger on the table, as described by How to: Create and Run a CLR SQL Server Trigger[^].
|
|
|
|
|
ok, i'm going to try it (with the trigger).
thanks a lot !
etienne
|
|
|
|
|
is there any pivot table kind of control in asp.net / vb.net
|
|
|
|
|
is pivot table kind of control used in data reports
spriya
|
|
|
|
|
Native in the VS toolbox?? No.
You'll have to either write one yourself or use a third party graphing library, like ZedGraph.
|
|
|
|
|
hello, ive been working on a tabbed web browser for a little while now, and it's gotten to the point where i would like to add a favorites, and a history menu, i have tried and tried to implement a history menu and a favorites menu and have failed in trying to do so.
it would be great if you could help me out
|
|
|
|
|
All you have to do is add entries to a collection. They can be as simple as adding string objects to a List(Of String), or an XML document. Either way, you can easily serialize the contents to a file to save/retrieve the list.
|
|
|
|
|
ho guys
can any body please tell me about CSLA , how usefull it is to use CSLA .
hello
|
|
|
|
|
|
Hi all.
Do you now VB.NET is object oriented? I heard somewhere that VB.NET is text oriented. Is that true ?
Thanks to you
|
|
|
|
|
Seriously? - Or just trolling?
|
|
|
|
|
YA dear vb.net is fully object oriented language.
Thanx
|
|
|
|
|
|
"Text oriented"?? Never heard of it.
Yes, VB.NET is fully object oriented, as is the entire .NET Framework BCL and .NET CLR.
|
|
|
|
|
If anyone can help with this I'd be grateful! Using VB.2008 express, I'm trying to improve my GPS tracking program by building in the ability to handle multiple large map tiles and tile them into one larger image. Previously I've used only a single map tile and let the program load the one on which the GPS plot is drawn, but there's now a need to scroll across a much larger area of the country. I've searched for code to handle this and come up with only one example which contains the line:-
bltImage = New Bitmap(8000, 8000, Imaging.PixelFormat.Format32bppPArgb)
The map tiles are then read from an array and drawn on the base image.
The '8000' values are mine as the map tiles I'm handling are 4000 pixels x 4000 pixels. I'd very much like to use a dynamic grid of 9 tiles held in the array, which requires the background image (bltImage) to be 12000 x 12000 (I'm assuming) If I use these values the code fails with either a 'Win32 error' or a 'Generic GDI+' error depending on the exact value I increase to. I can usually get away with 9000 x 9000 but I have no control over the original tile sizes and so must work in multiples of 4000. It appears not to matter which type of control I try and load the tiles into, a plain form, a picture box, or a modified version of the excellent image viewer designed by one of the contributors to this site. They all fail if the background image is increased in size to 12000 x 12000. If any can shed any light on where I'm going wrong.....
Thanks in anticipation.
Rob Brookes
|
|
|
|
|
Rob Brookes wrote: They all fail if the background image is increased in size to 12000 x 12000. If any can shed any light on where I'm going wrong.....
GDI won't hanlde an image that large (12000*12000*4 bytes per pixle = 576MB) and that doesn't account for the source images your using to build the single ackground image. The answer is you can't use an image that large, nor should you be using a control to do the drawing for you. You're going to have to make your map by drawing it to the screen yourself, handling scrolling and redrawing from your original source images with your own code.
|
|
|
|
|
Very many thanks for the reply Dave, I'd largely come to that conclusion unfortunately. I've had a partial success by re-scaling the map tiles, as they're loaded, to 3000 x 3000 which works with no noticable effect on the performance of the program. I lose some map resolution but can probably live with that. My coding ability doesn't allow me to draw directly to the screen as yet but I'm working on it. Normally the program dynamically loads the map it needs as a position report is received by the radios but I'm limited to the area covered by the map tiles that way. If a plot appears on the extreme edge of one tile, the program stutters somewhat as it can't decide which tile to load hence I need to buffer the edges of each tile, and one in the centre with another 8 in the wings seemed the most obvious way of doing it. Understandable information on VB.net graphics handling seems a bit thin on the ground. If you can recommend anything to read, I'd much appreciate that.
Regards
Rob
|
|
|
|
|