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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
THANKS! :-D
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'
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.
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. :~
How would you add preview support to a screen-saver you write in VB.Net? :~
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:
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:
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.
I'm sure if you printed it out there would be other content: The URL at the bottom of the page!:)