a while ago I developed an interface that shows raster maps under VB 6.0 (see, for example, slide 5 "Forest Stand Development" on [URL]
I would like to rewrite the code in VB 2008 (or download open source code) to transfer everything to VB 2008. But rather than just putting a picture control on a form as I did before under VB6, I would like to learn and adopt some new technology while continuing to use classic Windows form coding. WPF technology (see [URL] is way over my head.
I would like to load a GIF file, and start with the first pixel and check to see if that pixel color is closer to Black, Red, Green or Yellow, then take what ever color it closest matched to and output that color as a number, 0, 1, 2 or 3. So just for a small example a 5x4 GIF would be converted to something like this: 0112223322220111332?
How do i determine the pixel width and pixel height of the largest image i can paint onto the graphics object of a printer while inside a printpage event?
during the development of my project, i've fall in the need to change the position of some forms, pixel by pixel using a timer.Now, i've checked that the movement is very fluid when form is not very heavy, when it contains few elements, but when it has a lot of elements inside, the movement becames nervous and not fluid, the movement becomes jerky.
How can I find out the pixel colour of a certain point on a web browser. For instance,WebBrowser1.getPixelColor(0,0) would get the rgb colour value of pixel 0, 0.It doesn't have to be rgb it might be hsl or whatever.The web browser is showing a local web page that is hosted on a network. If there is an error then the screen goes all grey. What I want to do is, if this does happen, display an alert message like - "An error has occurred
I have an empty picture box with the background colour set to the transparancy colour. How can i get the colour of the pixels within the transparant picture box so that i can create a bitmap of the transparant section of the form?
I will like to know if there is a MAP SDK or control that I can use on a Windows Form only Visual Basic 2010 application. That can be either free or paid.
The application is simple. Show a map of a country and have about 200 pushpoints and able to click on the pushpoints and get a small amount od text from it.
I am connecting imaje ink jet printer to a PC to print variable data. During the data transfer "incorrect raster data received" error displayed on screen of Imjae.
I'm putting this together mainly just to ask if there's any interest in it. Since I don't use VS2010, I can't use the SDK which I'm sure does some nice things, however I can use the REST service and, with an API key from Bing, I'm able to get what I want.I'll just show some screenshots and if anyone is interested, I'll put the code and full explanation together.I also have a splitter container such that the Results group is in the upper container pane and the Map group is in the lower one:When the user adjusts the splitter (or the form, if it moves the splitter vertically), then after a one second delay, it will refresh the information. I do this because I can tell Bing what size map to return:
How to map a network drive to be used by a service. My question is relatively similar, and I realize there are others that are.. but I can't get it to work. I am creating the service thru visual studio 2010.
I attempted to map using WNetAddConnection2- and it successfully maps and is instantly lost (check if drive is mapped right after mapping it). I tried something else. saw some information about using WSH.. I added the reference and tried using wsh... didn't work.I tried WNetUseConnection and that failed as well.
Attempted running the service under a different profile- that didn't work Once I actually get access to the network drive, i need to copy files from that share into a local directory. Maybe I'm missing the boat here but If someone could give me a thorough explaination of what is actually going on and a direction to head I can probably figure it out
I have a button in my visual basic application that finds an address on a Bing map. It then launches the browser, passing the address of the property on the URL. Used to work just fine, but it doesn seem to work anymore and I don't know why. For example, if I cut/paste the following URL into my browser, bing maps comes up but does nothing.
[URL]
However, when I bring up bing maps and cut/past just the address into the search box, if finds the parcel. if an address can still be passed on the URL?
I am trying to write some code to serialize the XML returned by the Bing Maps REST location query. So far my code parses down to the "ResourceSet" level and then screws up. am trying to have the "ResourceSet" element parsed into an object of "LocationResourceSet", since this is a location query and the "ResourceSets" vary depending on the type of REST call
I have a program that when you press a button it maps 2 drives, updates a registry value and then starts a executable which is stored in a SQL table. I'm having issues after the file opens. The program it opens does not seem to be working quite right. When you open the program by clicking on the .exe it works file.When I call it from the app, I have issues with the program after it opens. Can someone explain to me the difference between double clicking an .exe and using process.start? Is there a different way to do it? My code is listed below.
I need to get the DataGridView to perform the way it should perform. I'm new to the .NET environment, but I learn fairly quickly. However, I find it difficult to decipher themassive black box of the DataGridView control enough to make it do anything other than what it already does--Draw very slowly.
I have a form that uses a button to draw a line and a second button to draw a rectangle. I have a third button to clear the form but can't find a code example to code the Clear button.
I have to draw a bar graph in my vb.net program. I used AxMSChart to create a graph. Everything has gone fine but when i published this and run on Vista PC, all form was good except my form includes MSChart. It says class not registered.So i have to draw a graph except MSChart tool.
I am working on a WPF application and I am looking to retrieve the color value of a pixel on the screen (the screen being the Window that my application is displaying).I have found a tutorial that shows how to do this using the gdi32 API but since this is a WPF application I am looking for a way to do this without using GDI.
I have also found an example of how to retrieve a pixel from within a picture using a CroppedBitmap; however,I'm not using an image in my application.
How can i get a x,y location of colored pixel in my picturebox ? so say the pixel i wanted to get was the rgb 0,0,0 for black, How would i find the black pixel and return it's x,y ?