Search results for query: *

  1. A

    Multiple Line Drawing

    Hi, I'm using the code Sub PicCanvasMouseDown(sender As Object, e As MouseEventArgs) XPrev = e.X YPrev = e.Y End Sub Public Sub PicCanvasMouseUp(sender As Object, e As MouseEventArgs) XCur = e.X YCur = e.Y End Sub Public Sub PicCanvasPaint(sender As Object, e As...
  2. A

    Bitmap Saving

    Again, thanks for the help :). Sorry to bother you again, but this really is starting to bother me. I made a paint event, and put in the code Dim p As New Pen(PenColour, PenWidth) Dim g As Graphics = e.Graphics g.DrawLine(p, XPrev, YPrev, XCur, YCur) and nothign happens. Yet it works fine...
  3. A

    Bitmap Saving

    Thanks for the help :). However, when i save the picture, instead of it just being a blank bitmap, it turns out to be a bitmap with a white backround (although changing the backcolor of the picturebox does save). If it helps any, here's the code i'm using to draw onto the picturebox. Dim XPrev...
  4. A

    Bitmap Saving

    I'm trying to save an image drawn onto a PictureBox, using the sub procedure Sub SaveImage(ByVal pb As PictureBox, ByVal sFile As String) Dim bmp As New Bitmap(pb.Width, pb.Height) Dim g As Graphics = Graphics.FromImage(bmp) Dim pe As New PaintEventArgs(g, New...
  5. A

    GTK# Resources

    I was wondering if anyone has any good resources on downloading/installing/using GTK# to write VB.NET applications ? Thanks :)
  6. A

    Answered Class Library Reference Problems

    Oh, right. Thanks anyway.
  7. A

    Answered Class Library Reference Problems

    I'm trying to create a program with 1 exe project and 2 class library projects. When i add a reference to one of the class libraries, and access things from the main exe project, it works fine. In order to access items in the class library in the exe, i add a reference to the class library in...
  8. A

    Simulating Freehand Drawing With Ellipses

    Hi, I'm trying to make a Freehand drawing tool in a program that uses Ellipses closely packed together. On the MouseDown Event, I've got Dim g As Graphics = pictureBox1.CreateGraphics Dim p As New Pen(PenColor, PenWidth) XPrev = e.X YPrev = e.Y If e.Button = MouseButtons.Left And DrawType...
  9. A

    Resizing Image in a Picturebox

    Hmmm... That doesn't seem to be working, it just stays the same as when it's Normal. EDIT: Sorry, just tried putting it on Stretch, and it works fine. Thanks :)
  10. A

    Resizing Image in a Picturebox

    I'm writing a sort of Screen-shot application, that captures the screen and displays it in a picturebox. It all works fine, except the screenshot is the full size of the screen, therefore only a small part of it is displayed in the picturebox. How would i make it so that the screen shot...
Back
Top