Search results for query: *

  1. Megalith

    POST http request using WebBrowser

    I changed the code back to how i had it initially and it functions correctly, it works but as i said it just doesnt look slick. I've also replaced the '+' with '&' i find that the '+' looks right which is why i use it tho technically even back in the qbasic days the '+' would have inserted an...
  2. Megalith

    POST http request using WebBrowser

    it turned out the solution to the problem was very simple and i created a URL that does the required choice. When however i tried to move the application onto the next url the application fails heres what i'm trying to do Private Sub OkClick_Click(ByVal sender As System.Object, ByVal e As...
  3. Megalith

    POST http request using WebBrowser

    i am trying to automate a few functions on a server i visit and have setup a form with a webbrowser on it, I believe i need to use a POST http request to do this but cant find how to use this within the webbrowser. I am using .NET2 to write this application. should i continue to use webbrowser...
  4. Megalith

    mouse wheel events

    i rem'd out the other mouse events and wrote the mousewheel event again and it still wont find it. I dont know why it works in a new application but not in this one. i can live without the function the mousewheel would give and instead use a right click drag to achieve the same result (which i...
  5. Megalith

    mouse wheel events

    i will disable the other mouse events and reintroduce them 1 by 1. using this routine alone in a test app works fine. but for some reason in the application i am developing it wont, my only thought is another mouse event is overriding it but it should still fire shouldnt it? anyway will get back...
  6. Megalith

    mouse wheel events

    hmmmmm well using your method above does indeed work but for some reason my method doesnt, maybe someone could shed some light on it :( Private Sub DataGridView1_MouseWheel(ByVal sender As Object, _ ByVal e As System.Windows.Forms.MouseEventArgs) _ Handles...
  7. Megalith

    PictureBox image pixels

    thats interesting, i will try that now, prefering to keep it api free if poss. :)
  8. Megalith

    mouse wheel events

    i have an issue RE: the mouse wheel event, my application needs to use the mouse wheel to change the row width on a datagridview control the method is nested inside the mousewheel event for the control and adjusts the width using the e.delta property the problem is is that the event isnt fired...
  9. Megalith

    PictureBox image pixels

    If i have the sizemode set to stretch image so that the entire image appears on the picturebox then using get pixel is taking the pixels as though it was displaying at 1:1 and reads from top left so it isnt reading the actual pixel on the screen but from the bitmap of the image.
  10. Megalith

    PictureBox image pixels

    the BitMapData routine uses the entire image, as did my initial suggestion. I am now working on an 'eyedropper' and need to read the color of the pixel actually in the box, how can this be done?
  11. Megalith

    Saving an array of bytes

    the array i created is a short word in UShort containing some values from 0 to 65535 however converting it to bytes proved relatively easy as not many 16 bit values are used, the ones that are i have stored as 2 bytes by adding a sub to divide up into bytes and swap them it works great btw...
  12. Megalith

    Saving an array of bytes

    thats great JohnH, things havent changed that much with basic really ;) one slight problem my array is 16 bit not 8 so i get a value cannot be converted error. looks like i will have to use bitconverter on it or rewrite the array generation code
  13. Megalith

    Measuring Distance

    that would seem right it would be the distance in 'image widths' after the scaling and the distance in pixels before scaling yes the random point would have to be central as the user will no doubt click near the middle. you could use each picturebox's click event, and fill a 5 by 5 array, you...
  14. Megalith

    Saving an array of bytes

    i have an array of 16 bit bytes i wish to save to a file. I have a savefiledialog in my application so it can be placed anywhere the end user requires with the default extension added. How do i save the array though? with an image it is simply a case of doing...
  15. Megalith

    Measuring Distance

    vector distance is the square root of the x difference squared multiplied by the y differance squared i.e. P1(x,y) P2(x,y) a=P1.x-P2.x ' dont worry about using ABS as the square we need is positive b=P1.y-P2.y |V|=sqrt(a*a+b*b) note the angle of travel might be needed this is achieved using...
  16. Megalith

    binary math in 2005

    just what i needed johnH nice to know you can tweak individual bits of code in VB.NET some of this will come in useful with another application i'm working on which has a bank of 16 flags that react with each other, this will tidy the spaggeti in that code . i will look into your method too...
  17. Megalith

    binary math in 2005

    I need to do a simple routine that a processor would handle easily. is there a way to incorporate such a feat in VB.NET. say i want to mirror image the number 73. this is a task done easily on a processor i.e. 75 in binary is 01001011 (8 bits) the mirror is 11010010 (210) i transfer each bit...
  18. Megalith

    PictureBox image pixels

    I reviewed my color count method from above and rewrote it as the routine slowed down exponentially the more colors where in the image. in essence what i did was to create an array colorgrid(255,255,255) each color as it was scanned was added to the the grid incrementing its contents and after...
  19. Megalith

    PictureBox image pixels

    thanks very much thats helped A LOT :) i had read somewhere that getpixel should be avoided at all costs and your explanation of what getpixel actually does makes sense as to why, i can however see places where it would be useful now which is great for my own development too.
  20. Megalith

    PictureBox image pixels

    I am trying to copy the contents of a picture box into a bitmap for further manipulation but i have encoutered a problem, what the sample code below does is to copy the original image into a bitmap, wheres i want to copy only the contents of the controls imagespace into the bitmap i wrote a...
Back
Top