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
D

D111

@D111
About
Posts
19
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Don't you just love the way hackers think
    D D111

    http://www.24.com/news/?p=tsa&i=562584[^]

    --- The sum of the intelligence of the world is constant. The total number of people is always increasing.

    The Lounge com question announcement

  • Brings back memories [modified]
    D D111

    I've just modified it to use

    tags


    The sum of the intelligence of the world is constant. The total number of people is always increasing.

    The Weird and The Wonderful

  • I could be rich! (A billionaire)
    D D111

    if (ChancesOfHappening(softwarePackages) > ChancesOfHappening(carWashes)) { return "Why didn't I think of that"; }

    --- The sum of the intelligence of the world is constant. The total number of people is always increasing.

    The Lounge

  • I could be rich! (A billionaire)
    D D111

    I agree. I have a friend in Cape Town who believes that the best way to wash a car is to wait for it to rain.

    --- The sum of the intelligence of the world is constant. The total number of people is always increasing.

    The Lounge

  • Brings back memories [modified]
    D D111

    After reading a few posts on this forum, it makes me remember some horrible code I have written before. (While I was a VB5 programmer) It also reminds me of some horrible code I've seen some other people write, like the following:

    private bool isValid(int testValue, int minValue, int maxValue)
    {
    for (int counter = minValue; counter <= maxValue; counter++)
    {
    if (testValue == counter)
    {
    return true;
    }
    else
    {
    if (counter == maxValue)
    {
    return false;
    }
    }
    }
    }

    To make matters worse, they then called this method a few hundred times with min and max Values of 0 and about 500.

    --- The sum of the intelligence of the world is constant. The total number of people is always increasing.

    The Weird and The Wonderful

  • For loops and array
    D D111

    whats so difficult about: for (int c = 0; c < _myHand.CardCount; c++) { e[_myHand.Cards[c]]++; } This might not work, depending on how the value of the cards are stored, though, in which case just cast to int

    --- The sum of the intelligence of the world is constant. The total number of people is always increasing.

    The Weird and The Wonderful c++ data-structures

  • I could be rich! (A billionaire)
    D D111

    Or I could just sell a packet of chips in South Africa every 7.8 second for the next 100 years..... The only problem is I'd have to sell them at a price no-one would buy them at. -- modified at 14:38 Wednesday 6th June, 2007

    --- The sum of the intelligence of the world is constant. The total number of people is always increasing.

    The Lounge

  • I could be rich! (A billionaire)
    D D111

    I've worked it out that if I wash a car every 31.5 seconds, every day, without any sleep, for the next 100 years with 1 day off every leap-year, and I charged R10 ($1.42) per car, I would make R1Billion ($142 857 142.85) :-D

    --- The sum of the intelligence of the world is constant. The total number of people is always increasing.

    The Lounge

  • How to know a EXE file was written by .net language or not?
    D D111

    I cant remember where exactly, but thers PE00 somewhere in the header.

    --- The sum of the intelligence of the world is constant. The total number of people is always increasing.

    C# csharp tutorial question

  • Using Else with blank If
    D D111

    Shouldn't it be: bool b = (x == y); ---------- bool b = (x = y); would set x to y and then b to x

    --- The sum of the intelligence of the world is constant. The total number of people is always increasing.

    The Weird and The Wonderful linux help

  • MSIL Conversion
    D D111

    THANKS! :-D

    Visual Basic csharp data-structures tutorial

  • How to show a gif animation on a form ?
    D D111

    Put a PictureBox on the form and in the code type the following when you want to display the gif.

    PictureBox.Image = New Bitmap("GIF PATH")
    

    Where PictureBox is the name of the picturebox and "GIF PATH" is the path of a gif file. If you have a stream loaded with the gif picture in use the following:

    PictureBox.Image = New Bitmap(GIF STREAM)
    

    Where PictureBox is the name of the picturebox and GIF STREAM is the the stream. This can be useful if the gif is an embedded resoource in your app. In such a case (The gif is an embedded resource) use:

    PictureBox.Image = New Bitmap(GetType(FormName).Assembly.GetManifestResourceStream(("GIF RESOURCE NAME")
    

    Where PictureBox is the name of the picturebox, FormName is the name of the form and "GIF RESOURCE NAME" is the complete name of the gif including any folders and the root namespace of your project and the .gif file extension. eg: "MyProject.MyGif.gif" All this works for animated gifs as well. Hope it's useful. I also hope I didn't misunderstand you and that you actually meant 'How to programatically create an animated gif'

    Visual Basic tutorial question

  • Cursors
    D D111

    Anyone know how to programatically create a cursor? A simple method (Or code to place in a method) like: Function CursorFromBmp(ByVal CursorPicture As Image, ByVal HotSpot As Point) As Cursor would be nice. The cursor should look exactly like the image. The Transparancy Color should be Color.Transparant.

    Visual Basic tutorial question

  • MSIL Conversion
    D D111

    Does anyone know how to or know where to find an article explaining converting MSIL code to VB or VC# (Or just about any other language, actually) code. The MSIL I want to convert is the Byte Array returned from he MethodBody.GetILAsByteArray Function. MethodBody is a type in the System.Reflection namespace. :~

    Visual Basic csharp data-structures tutorial

  • Screen-Saver Preview
    D D111

    How would you add preview support to a screen-saver you write in VB.Net? :~

    Visual Basic csharp question

  • .exe running problem
    D D111

    When I run my project from withinn Visual Studio (F5), it runs fine and it works and everything but when I tryand run it from it's BIN directory, no forms etc... load. If I then run Windows task manager (CTRL+ALT+DEL), and go to the proccesses tab, it shows that the app is running but no forms are showing as supposed to be. :confused:

    Visual Basic csharp visual-studio help

  • DLL Functions
    D D111

    Is there anyway you can write functions in DLL's in VB that can be declared using the Declare keyword or is there any way to add references to DLL's using code. If you can please explain how to do either, I'm completely useless when it comes to DLL's. :confused:

    Visual Basic tutorial

  • close form
    D D111

    Closing and Closed events only exist as Closing and Close in .NET Framework versions 1 and 1.1 . If you upgrade to version 2 (2005 edition) just be aware that the events have been renamed FormClosing and FormClosed.

    Visual Basic question csharp

  • FREE Material on the .NET Framework
    D D111

    I'm sure if you printed it out there would be other content: The URL at the bottom of the page!:)

    .NET (Core and Framework) csharp dotnet
  • Login

  • Don't have an account? Register

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