Search results for query: *

  1. M

    Set Eastern European or other character set ?

    OK figured it out. What I was doing IS correct, but the text file needs to be saved in UTF-8 for it to display properly in the controls.
  2. M

    Set Eastern European or other character set ?

    Can anyone help me , I need to know if I am setting the font correctly. I can do this in VB6 but cannot in Vb.net I am loading a text file to an array like this: Private Sub LoadFile() 'read the file Dim FILE_NAME As String = FilePath + "Transport.lin2"...
  3. M

    picture box refresh problem

    Wow,orignal post is old. Trojan 2012 this is based on the example of the original post. You really should've started a new thread. Wouldn't just invalidating the image boxes work so that only the regions that needed repainting got repainted? Repainting everything and double buffering unless...
  4. M

    Dynamic Menu additions - how to select ?

    Thanks for the explanation. I will certainly check it out. It might be a waste for this particular function but certainly not a waste to learn it. Many thanks for your help guys :) Sent using Tapatalk 2
  5. M

    Dynamic Menu additions - how to select ?

    I have finally figured out how to add event handlers to dropdown items in the main menu, however I still need to know or figure out if they are being removed properly. Can anyone clarify how to list them? Here is the code incase anyone else has had or is having this problem Private Sub...
  6. M

    Dynamic Menu additions - how to select ?

    I know there is probably a simple solution to this but it is evading me, please help. I have created a menu that alters according to mdichild windows open - see screenshots As I hover over the menu it refreshes by adding or removing the child windows to/from the menu. My question is, what...
  7. M

    Drawing on an Image with transparency? (to erase a section)

    Here is the full code to the createboard form. Below if a view of the part made game. Form consists of a picturebox and 3 buttons Imports System.Drawing.Drawing2D Imports System.IO Imports System.Drawing.Imaging Public Class FrmCreateBoard Private Sub Button1_Click(ByVal sender As...
  8. M

    Drawing on an Image with transparency? (to erase a section)

    Figured the solution. It was indeed the clip region, the FIX is to clip the region myPath gr.SetClip(myPath, CombineMode.Replace) ' set a clip region to the ellipse Dim rect As Rectangle = New Rectangle(cp.X - radius, cp.Y - radius, 2 * radius, 2 * radius) Dim myPath As New...
  9. M

    Drawing on an Image with transparency? (to erase a section)

    Thanks John for the reply This is exactly what i am looking for. Maybe you can help a little further :shame: I have looked up a done as you suggested but it clips a rectangle, not an ellipse ?? I know I must be miss-understanding the Graphics path method. Called by DrawCircle(New...
  10. M

    Drawing on an Image with transparency? (to erase a section)

    Figured out a solution to the transparency, although I had to use a solid colour and convert it to transparent. Im not sure if this is ideal but it works for some images. What I don't want is for it to make any areas transparent that I have not drawn. IE if the user loads an image with the...
  11. M

    Drawing on an Image with transparency? (to erase a section)

    This always happens! I eventually post after days of scratching my head then I figure some of it out. I have figured out the redrawing of the image, I was already doing this when I resized the image! - LOL. Now i need to know how to convert a circle in the image to make a hole - ie...
  12. M

    Drawing on an Image with transparency? (to erase a section)

    First of all I am just an amateur with no formal training, so please don't flame me for my errors - I am really trying to get this right. I have 2 questions 1. How can I erase a circle in an image to make a transparent section 2. How can I reload the edited image to the picture box (so that it...
  13. M

    Web browser control fires many times during website load

    Thanks This is much better. It fires twice for some reason when I initiate the browser control with a homepage (example- on imdb), but from then on only once so far on the previous problem pages. Very helpful. Many thanks :joyous:
  14. M

    Web browser control fires many times during website load

    Hi guys I dont know how to do this, I am looking for how to find out when the web browser control has finished loading completely. On serveral sites the pages loads in parts and is probably built from sections - like php /asp or iFrames. My problem is that I only want to trigger my parsing...
  15. M

    Sorting a colour grid in to order

    Ok, got rid of the class - this was because I did not fully understand list of T and was following examples on the net. I replaced with: Dim colorList As New List(Of Color) Added samples to the list with - So I dont add duplicates: With colorList If Not...
  16. M

    Sorting a colour grid in to order

    I have never used "List of T" so to be honest i am sort of struggling with it. I think "the penny will drop" eventually - so to speak. You see im a self taught hobbiest (probably could have done with learning the basics upwards) Anyway, I created a class Imports System.Drawing Public Class...
  17. M

    Sorting a colour grid in to order

    Many thanks for the reply John, i'll take a look at HLS color tonight. I had a feeling it was down the lines of hue and light. I know nothing about how this works so will have to research.. Im still learning about the graphics object to be honest but I think I get how that works now. Always...
  18. M

    Sorting a colour grid in to order

    Can anyone help me, I have a problem that im not sure how to solve. I am writing a program for changing skin tones in images by remapping the colours. I have the colour extraction working fine in order to create a swatch, but my problem is getting the swatch in order of the lightest colour...
  19. M

    Filestream help required

    Thank you for the reply, I haven't tried using it just yet, but i will do and it looks like its what I need Thanks again!
  20. M

    Filestream help required

    Is there a correct way of doing this in vb.net? I want to read a file as a set of numbers such as long integers ,say the file contains the string "Hello World - Its a beautiful day blah blah blah" This would read as a set of long integers that are 4 bytes long ie ascii (hex) 48 65 6C 6C 6F...
Back
Top