Search:
Type: Posts; User: Troy Lundin
Search:
Search took 0.17 seconds.
-
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...
-
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,...
-
Code.
Namespace FF1
Public Class Character
Dim cond As Func(Of Boolean) = Function()
If BFF.Main.Game = 0 Then
...
-
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....
-
@jmcilhinney: Which source control would you recommend?
@Grimfort: There are no values being set at the variable declaration.
-
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...
-
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:
...
-
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...
-
Would I be correct in assuming the problems lies in the fact that the form has designer functionality, which apparently isn't needed?
-
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
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
Imports System.Drawing
Imports System.Windows.Forms.VisualStyles
Public Class CheckBoxColumn
Inherits Windows.Forms.DataGridViewCheckBoxColumn
Sub New()
Me.CellTemplate = New...
-
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...
-
Honestly, I have no idea what's wrong then.
I am setting these styles in the UserControl:
SetStyle(ControlStyles.AllPaintingInWmPaint Or ControlStyles.OptimizedDoubleBuffer Or...
-
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...
-
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:
...
-
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,...
-
I really wanted to keep it as a property, and glad I am able to. I should have know about Invoke. /facepalm
Thanks. :D
-
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...
-
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...
-
Good point, kind sir.
I tried this:
Protected Overrides Sub WndProc(ByRef m As Message)
Select Case m.Msg
Case &H83
' WM_NCCALCSIZE
...
-
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...
-
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...
-
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...
-
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...
-
Just wanted to let you guys know I figured it out. The functions are below.
''' <summary>
''' Writes the specified value to the buffer.
''' </summary>
'''...
-
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,...
-
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...
-
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...
-
Ok, thanks.
Also, why am I even getting the Out of Memory error when I still have at least 4GB of memory available?
-
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...
-
You were absolutely right, I was trying to read memory out of my range. I got it now. Thanks for your response. :D
-
I am getting an AccessViolationError with the following code.
Sub Blend(PosX As Int32, PosY As Int32)
GetDrawingDimensions(PosX, PosY)
Data = New BitmapData
...
-
-
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...
|
Click Here to Expand Forum to Full Width
|