Search:

Type: Posts; User: Troy Lundin

Page 1 of 13 1 2 3 4

Search: Search took 0.17 seconds.

  1. Replies
    8
    Views
    979

    VS 2015 Re: Func(Of Boolean) issues.

    Ok, you earned my respect. Your code snippet worked, but why? Is it because it gets invoked before the If statement? So the value is set beforehand which makes it work?

    Also, it does seem...
  2. Replies
    8
    Views
    979

    VS 2015 Re: Func(Of Boolean) issues.

    No, the thread does not touch the UI. The solution is thousands of lines of code. I'll try to provide the step by step.

    The initial call looks like this:

    lbChar.ReadCustomText(Stats.Name, 4,...
  3. Replies
    8
    Views
    979

    VS 2015 Re: Func(Of Boolean) issues.

    Code.

    Namespace FF1
    Public Class Character

    Dim cond As Func(Of Boolean) = Function()
    If BFF.Main.Game = 0 Then
    ...
  4. Replies
    8
    Views
    979

    VS 2015 Func(Of Boolean) issues.

    Good evening.

    I am using Func(Of Boolean) as a conditional, but it doesn't seem to be working correctly. Even though the function returns False, when I use If Condition() Then... it still passes....
  5. VS 2012 Re: Untraceable Crash (Project Solution Included)

    @jmcilhinney: Which source control would you recommend?
    @Grimfort: There are no values being set at the variable declaration.
  6. VS 2012 Untraceable Crash (Project Solution Included)

    I messed up my solution back in July of last year. I did something, no idea what, and it crashes consistently with viewing the designer of certain forms. I recently decided to try and figure it out...
  7. VS 2012 Preventing TabIndex property code from being generated.

    My custom controls are not allowed tab access, much like the Label control, so I would like to prevent designer-code from being generated for the property. I have tried the following:

    ...
  8. Replies
    11
    Views
    1,418

    VS 2012 Re: Win32Exception out of nowhere.

    Microsoft Visual Studio Ultimate 2012 is what the About Dialog says.

    The reason I was returning _color was for testing purposes, as MyBase gives me trouble sometimes. That was my error. I removed...
  9. Replies
    11
    Views
    1,418

    VS 2012 Re: Win32Exception out of nowhere.

    Would I be correct in assuming the problems lies in the fact that the form has designer functionality, which apparently isn't needed?
  10. Replies
    11
    Views
    1,418

    VS 2012 Re: Win32Exception out of nowhere.

    I apologize for the lack of visual representation in my original post. If I may, I would like to try again.

    http://i.imgur.com/PA22bqqs.png
  11. Replies
    11
    Views
    1,418

    VS 2012 [RESOLVED] Win32Exception out of nowhere.

    I have been using this control for over a year now and suddenly it randomly causes exceptions. And by random, I mean I can rebuild the solution and the form with load correctly. Sometimes I have to...
  12. VS 2012 Re: Cannot find file, even though I already found it.

    I understand what you are saying. I am just a bit confused. I have used the same code for over two years now and haven't once gotten an error. In fact, I am able to load two assemblies from the same...
  13. VS 2012 Cannot find file, even though I already found it.

    I am getting an error stating the program cannot find the file, even though the file was found using a loop to grab all files in the directory.

    Code:
    For Each file In...
  14. Replies
    6
    Views
    1,068

    VS 2012 Re: Finding Patterns In A Byte Array

    I realize now, after multiple iterations, that what I am trying to do is impractical and gives poor results. As for reinventing the wheel, I have already come up with algorithms that compress better...
  15. Replies
    6
    Views
    1,068

    VS 2012 Re: Finding Patterns In A Byte Array

    I am trying to do a type of compression. I tried to make the OP simple to understand but I think I failed. Let me go into more depth.

    I have an image. My current method of compression simply...
  16. Replies
    6
    Views
    1,068

    VS 2012 Finding Patterns In A Byte Array

    Assume the following byte array: {0, 0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4}.

    I am trying to find the patterns in the array. I have been able to find the following patterns...
  17. Custom DataGridViewCell flickering when painted.

    Imports System.Drawing
    Imports System.Windows.Forms.VisualStyles

    Public Class CheckBoxColumn
    Inherits Windows.Forms.DataGridViewCheckBoxColumn

    Sub New()
    Me.CellTemplate = New...
  18. VS 2012 Re: How would one get items to appear in a ListBox contained in a UserControl?

    Got rid of the styles and no changes.

    Edit: I figured it out. It was totally an oversight. In my DrawItem event for the ListBox, I was evaluating a property that was Nothing until runtime, so it...
  19. VS 2012 Re: How would one get items to appear in a ListBox contained in a UserControl?

    Honestly, I have no idea what's wrong then.

    I am setting these styles in the UserControl:
    SetStyle(ControlStyles.AllPaintingInWmPaint Or ControlStyles.OptimizedDoubleBuffer Or...
  20. VS 2012 Re: How would one get items to appear in a ListBox contained in a UserControl?

    That's not quite the issue I have. Let me use some bullets.

    - If I add items to the UserControl at runtime, using myUserControl.Items.Add, the items will display in the ListBox properly.
    - If I...
  21. VS 2012 [RESOLVED] How would one get items to appear in a ListBox contained in a UserControl?

    I created a UserControl. This UserControl contains a Panel which contains a ListBox. This is so I can draw a custom border for the ListBox. I am exposing the ListBox's Items property like so:

    ...
  22. Inconsistent results with Marshal.ReadInt32.

    The title may be confusing. Let me explain. I have the following method:


    Sub SpeedStitchTest()
    Drawn = False

    bmpData = bmpMap.LockBits(New Rectangle(0, 0, bmpMap.Width,...
  23. VS 2012 Re: Trouble with Func(TResult).

    I really wanted to keep it as a property, and glad I am able to. I should have know about Invoke. /facepalm

    Thanks. :D
  24. VS 2012 [RESOLVED] Trouble with Func(TResult).

    Ok, bear with me on this one. I am sure I am just messing up something very simple.

    I have this declared:
    Property CheckStateCondition As Func(Of Boolean)

    Then, I use it like so:
    If...
  25. VS 2012 Re: Removing the Scrollbar from a TabControl.

    I am talking about the ScrollBar that appears in the tab when controls are out of view. I want to hide the default one so I can use my own. In my previous post, I explained that I figured out how to...
  26. VS 2012 Re: Removing the Scrollbar from a TabControl.

    Good point, kind sir.

    I tried this:

    Protected Overrides Sub WndProc(ByRef m As Message)
    Select Case m.Msg
    Case &H83
    ' WM_NCCALCSIZE
    ...
  27. VS 2012 Removing the Scrollbar from a TabControl.

    I am creating a custom-drawn TabControl (overriding OnPaint) and would like to know how I could remove (or hide) the scrollbar so I may add my own, custom scrollbar.

    I have tried the three methods...
  28. VS 2012 Re: Finding rectangles of solid color in an image.

    Exactly! The extra rectangles are what happened when I used the example from the first link in the first post. The union-ing is what I was talking about in my previous post.



    The code you...
  29. VS 2012 Re: Finding rectangles of solid color in an image.

    Thank you for your reply, Boops.

    I always tend to focus on functionality before focusing on speed. After a bit of thinking: I wonder if I could just get all the smaller rectangles produced by the...
  30. VS 2012 Finding rectangles of solid color in an image.

    I am trying to find a way to determine where rectangles of solid color are in an image. Below is a sample image.

    http://i.imgur.com/ixNCuEA.png

    I have searched Google but I assume I am not...
  31. Replies
    6
    Views
    1,673

    VS 2010 Re: Reading bits in Big Endian format.

    Just wanted to let you guys know I figured it out. The functions are below.



    ''' <summary>
    ''' Writes the specified value to the buffer.
    ''' </summary>
    '''...
  32. Replies
    6
    Views
    1,673

    VS 2010 Re: Reading bits in Big Endian format.

    Let me try this again. Say I have the following value: &H5858A911A. This is the little endian representation of the value.

    The big endian representation of the value would be: &H1A918A855.

    Now,...
  33. Replies
    6
    Views
    1,673

    VS 2010 Reading bits in Big Endian format.

    I have never had to bother with Big Endian format before. Recently, my work has required me to mess with it a bit and it's a complete headache.

    I understand that to convert from little endian...
  34. Replies
    5
    Views
    939

    VS 2010 Organizing images based on size.

    My program utilizes various images of different sizes. I want to organize these images so that they all fit into a predetermined space without resizing any of them. They need to be organized in such...
  35. Replies
    2
    Views
    569

    VS 2010 Re: Managing Bitmaps

    Ok, thanks.

    Also, why am I even getting the Out of Memory error when I still have at least 4GB of memory available?
  36. Replies
    2
    Views
    569

    VS 2010 Managing Bitmaps

    I have 6 bitmaps, all the same size. Their ImageFormat is Format32bppPArgb. Sometimes when I try to resize the bitmaps I get the Out of Memory message. This doesn't happen all the time, only after...
  37. VS 2010 Re: Marshal.ReadInt32 -> AccessViolationException

    You were absolutely right, I was trying to read memory out of my range. I got it now. Thanks for your response. :D
  38. VS 2010 [RESOLVED] Marshal.ReadInt32 -> AccessViolationException

    I am getting an AccessViolationError with the following code.

    Sub Blend(PosX As Int32, PosY As Int32)
    GetDrawingDimensions(PosX, PosY)

    Data = New BitmapData
    ...
  39. Re: Easy Screen Capture Class - Capture Screen, Desktop Region, Form, or Controls

    Yes.
  40. Re: Easy Screen Capture Class - Capture Screen, Desktop Region, Form, or Controls

    I have been using this for awhile and just recently I have decided to test the speed of it. I am capturing a window (480, 320) that runs at 60fps. I found using this test that, even though I capture...
Results 1 to 40 of 496
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width