_HAWK_'s Profile User Rating: *****

Reputation: 1159 Grandmaster
Active Posts:
4,444 (1.64 per day)
02-July 08
Profile Views:
Last Active:
User is offline Nov 18 2015 02:39 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Dream Kudos:
Expert In:

Latest Visitors

Icon   _HAWK_ - I got your Foo right here!

Posts I've Made

  1. In Topic: Move GDI+ Drawing

    Posted 4 Nov 2015

    Make a Rectangle variable at class level then you will have a reference so now you can move the rectangle and draw the image to the rectangle - there is an overload for the DrawImage method that excepts a Rectangle structure.

    Public Class form1
      Private imgRect As New Rectangle(x, y, width, height) 'set these parameters with the values you need
      Private Sub form_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
        'if keydown key = right change the rectangle's x position
         imgRect = New Rectangle(imgRect.X + 1,imgRect.Y, imgRect.Left, imgRect.Top)
        'do other movements
        Me.Refresh() 'draw again
      End Sub
      Private Sub form_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
        e.Graphics.DrawImage(Img, imgRect)
      End Sub
    End Class
  2. In Topic: SQL table transfer with relations

    Posted 1 Nov 2015

    I don't think you are setting this up the right way, but it is hard to follow what your saying. Why is there more than one DB? Why not a field that toggles on whether the record/job is incomplete rather than it being a separate record in another DB? If you show the layout of the tables and the relationships then describe in details the query that does not seem to be working and maybe we can help. As for now there is too few details for us.
  3. In Topic: Not Switch between Machines

    Posted 12 Oct 2015

    Stop using On Error Resume Next and move to using Try/Catch blocks for exception handling. It is a legacy leftover, and does not give you the control you need over exceptions. Debug your code and see what is happening in your loop of IP addresses. There is likely an error that stops the loop from continuing. You might need a Try/Catch inside the loop so each iteration can be checked without crashing the entire loop when any one item causes an error.
  4. In Topic: Database does not update

    Posted 9 Oct 2015

    My suggestion is to get rid of those buggy Typed Datasets and TableAdapters and just use ADO objects. They are more reliable.
  5. In Topic: Problem printing using PrintDocument. Can't get second page to pr

    Posted 5 Oct 2015

    You put the HasMorePages = True in the loop. You have to check the row level where your printing against the bottom of the page and if near the bottom then start the second page. The thing to remember is the loop variable will need to be stored at class level so when the loop starts again it starts at that position in the collection to continue printing. The row variable can be used in the draw methods for y axis printing of text.

    Private index As Integer = 0 'starts at zero
    Private Sub PrintDocument4_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument4.PrintPage
      'omitting other printing for clarity on loop part
      Dim row As Integer = e.MarginBounds.Top ' you need to decide where this starts 
      For i As Integer = index to lId.Count - 1
        index = i ' set this for memory and second page printing
        row += 20 ' decide how far down you move for each line
        If row > e.MarginBounds.Bottom -20 Then 
          e.HasMorePages = True
          Exit Sub
          'continue printing
        End If
     End Sub

My Information

Member Title:
Master(Of Foo)
Age Unknown
Birthday Unknown
Denver Colorado
Years Programming:
Programming Languages:

Contact Information

Click here to e-mail me
Website URL:
Website URL  http://


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  1. Photo

    Drainage Icon

    06 Jan 2015 - 19:14
    Hey Hawk,
    Was not able to find a way to private message you so had to resort to this. Could you please get in contact with me ASAP?
    Thanks a lot!
  2. Photo

    trevster344 Icon

    16 Mar 2012 - 08:31
    Seems to be that kind of year lol.
  3. Photo

    _HAWK_ Icon

    14 Mar 2012 - 16:42
    Super busy!
  4. Photo

    trevster344 Icon

    14 Mar 2012 - 13:23
    Hey man, how have you been?
  5. Photo

    DimitriV Icon

    29 Jan 2012 - 18:56
    Go bro!
  6. Photo

    _HAWK_ Icon

    12 Dec 2011 - 20:39
    Careful that **it is addictive!!!
  7. Photo

    trevster344 Icon

    12 Dec 2011 - 16:40
    Ever since you introduced some possibilities of drawing cool graphics to me, earlier this year. I've found myself nonstop drawing everything including the simplest of things lol.
  8. Photo

    trevster344 Icon

    29 Nov 2011 - 15:20
    Yea all that weather is chilling the south quite a bit.
  9. Photo

    _HAWK_ Icon

    19 Nov 2011 - 11:15
    Not bad so far. Good snow in mountains already.
  10. Photo

    trevster344 Icon

    18 Nov 2011 - 09:15
    How's that onset of winter treating you up there in CO hawk!? I'll be up there soon to meet it head on, myself.
  11. Photo

    ricardosms Icon

    01 Nov 2011 - 03:21
    I saw your note... I took me over a week to figure it out.
    Just prepoaring for the grand oppening that never happens.
  12. Photo

    _HAWK_ Icon

    02 Oct 2011 - 05:46
  13. Photo

    smohd Icon

    02 Oct 2011 - 02:10
    New name ?
  14. Photo

    _HAWK_ Icon

    17 Sep 2011 - 14:34
    Cooling off - 'bout time!
  15. Photo

    trevster344 Icon

    16 Sep 2011 - 22:32
    How's that Colorado weather treating ya?
  • (3 Pages)
  • +
  • 1
  • 2
  • 3