Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

llandyw

@llandyw
About
Posts
8
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • check if 5 min have passed
    L llandyw

    Why not just use a timer? Set one up so it triggers in 600 seconds, and use the event to set a flag? Andy

    C# question

  • SplitButton doesn't do background color [solved]
    L llandyw

    Figured out how to alter an existing image. Pretty simple really. This colors the last 4 lines of the image itself. This of course only works for a 16 x 16 image, but can easily be changed for different placement and image size. Since I have 2 controls in 3 different places, I just do:

    instance.Image = ColorImage(instance.Image, newColor)
    
    
    Private Function ColorImage(ByRef theImage As System.Drawing.Bitmap, \_
                                ByRef theColor As System.Drawing.Color) \_
                                As System.Drawing.Bitmap
        Dim x, y As Integer
    
        For y = 12 To 15
            For x = 0 To 15
                theImage.SetPixel(x, y, theColor)
            Next
        Next
        ColorImage = theImage
    End Function
    
    Visual Basic question

  • SplitButton doesn't do background color [solved]
    L llandyw

    I have a splitbutton toolbar control that doesn't seem to work right. The BackColor property can be set and read, but doesn't show up on the control itself. I have an image with transparency, and no matter which way I change the backcolor (programmatically or in the properties), it uses the regular control color. I even checked the designer code, and the color is there. Anyway, I'm trying to implement the last chosen color for font and hiliting (the way Word/Wordpad does for their controls. Thought I'd try the background color first. Does anyone know of any code to alter a portion of the image itself? I know there's the wordpad sample, but it's a variety of C. Maybe I can convert it (if I can find it)

    modified on Saturday, March 13, 2010 5:09 PM

    Visual Basic question

  • Having trouble, batch build VB 2008 Pro
    L llandyw

    Must have last been available in VS 98 (6). Unfortunately, that one doesn't work on Windows 7. Maybe I should try loading it into the VPC. Anyway, sure would be nice if it allowed debug/release at the same time in batch.

    Visual Basic debugging announcement

  • One more problem
    L llandyw

    Also noticed something else re: richtextbox. Tried setting up a reverse find. Seems that no matter what I did, the find always started at the end. I used instance.Find(theText, startPos, RichTextBoxFinds.Reverse) And while it would find theText, it would always find the same text, last one in the box. I could put a starting position between 2 known locations of theText, and it would make no difference. In the end, I put the text into a string, then did an InstrRev to get the location, then set the SelectionStart and SelectionLength accordingly, and it works. But it should work using the .find!

    Visual Basic help

  • Having trouble, batch build VB 2008 Pro
    L llandyw

    Oh? I know I'd been able to do this with VS 6. Was it taken out in VS 2008 or before? When I did batch build on VS 6, a window would come up with release and debug with checkboxes to include in the build. This window was similar to the configuration manager in VS 2008, but release and debug had separate lines whereas the one in VS 2008 has only 1 with the dropdown for debug, release and whatever else might be added.

    Visual Basic debugging announcement

  • One more problem
    L llandyw

    I am using a richtextbox in my project, and want to be able to drag files into it. While I can get a file and get it to load, the file object is also inserted into the control. There appears to be no handled property on the DragEventArgs of the DragDrop event for the richtextbox. I've been back and forth through the docs and nothing I've tried seems to work.

    Visual Basic help

  • Having trouble, batch build VB 2008 Pro
    L llandyw

    I seem to be having trouble with the batch build. While I can get the item in the build menu, it remains grayed out. I set the solution properties to multiple configurations, but it doesn't stick, and I can't get it to build both the release and debug versions at the same time. I can change configurations and do each one individually, but no batch.

    Visual Basic debugging announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups