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

Reputation: 1055 Grandmaster
Active Posts:
4,090 (1.8 per day)
02-July 08
Profile Views:
Last Active:
User is offline Yesterday, 06:13 AM

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: [HELP] Crystal Report Multiple Records

    Posted 20 Sep 2014

    Is there a relationship in these tables? You have to link the tables on the key. You also have to Group the results to get all the related details for each summary.
  2. In Topic: Vb simple calculator

    Posted 19 Sep 2014

    I would concatenate the entries into a string and evaluate that expression with the MSScriptControl. I would have a label that held the expression and a label for the answer.

    'somewhat pseudo code
    Dim ms As New MSScriptControl.ScriptControl
    ms.Language = "vbscript"
    evalString &= {btnNumberOrOperatorClicked}.Text
    lbExpression.Text = evalString
     txtAnswer.Text = ms.Eval(evalString).ToString
     txtAnswer.Text = "ERROR"
    End Try
  3. In Topic: Adding a relationship with an entity in the deleted state...

    Posted 18 Sep 2014

    I am using an example like if I had a table named Records, you will have to change it to what your entity object would be.

    Using model As New EFContext()'the entity container provided by your EDMX.
      dgv.DataSource = model.Records.Where(Function(r) r.Id = "some Id")
      'now the DataGridView has these entity objects as it's DataBoundItem
      'so you can cast it to this same Record entity later
    End Using
  4. In Topic: VB.NET Text file read and split problem

    Posted 18 Sep 2014

    You need a loop to read all lines. Using blocks are great for this kind of work as they will close your stream and dispose the sr object properly.

    Using sr As New StreamReader({path})
     While Not sr.EndOfStream
      'use sr.Readline here and use the split method with your delimiter 
      'which will give you an array, so send the right element to the right place
     End While
    End Using
  5. In Topic: Adding a relationship with an entity in the deleted state...

    Posted 17 Sep 2014

    You don't need a BindingSource when you are using Entity Framework - that adds another layer - bind directly do the entity your displaying data from. Convert your DataItem for the current row into the entity object that it represents and then use DeleteObject for that class and call SaveChanges on the model.

    Dim curRecord = TryCast(dgv.Rows(dgv.CurrentCell.RowIndex).DataBoundItem, Record)
    If Not curRecord Is Nothing Then model.Records.DeleteObject(curRecord)

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

    trevster344 Icon

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

    _HAWK_ Icon

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

    trevster344 Icon

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

    DimitriV Icon

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

    _HAWK_ Icon

    12 Dec 2011 - 20:39
    Careful that **it is addictive!!!
  6. 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.
  7. Photo

    trevster344 Icon

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

    _HAWK_ Icon

    19 Nov 2011 - 11:15
    Not bad so far. Good snow in mountains already.
  9. 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.
  10. 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.
  11. Photo

    _HAWK_ Icon

    02 Oct 2011 - 05:46
  12. Photo

    smohd Icon

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

    _HAWK_ Icon

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

    trevster344 Icon

    16 Sep 2011 - 22:32
    How's that Colorado weather treating ya?
  15. Photo

    _HAWK_ Icon

    02 Aug 2011 - 20:09
    Smohd thanks, but I am sure you beat that between all your forums.
  • (3 Pages)
  • +
  • 1
  • 2
  • 3