Creating a combobox in Visual Basic
March 20th, 2010
Combo boxes act like a list but they take up less room on-screen. After the user clicks a combo box, a drop-down list of options appears for the user to choose. Combo boxes are sometimes referred to as a drop-down list.
To create a combo box, you need to use the COMBOBOX command, which is identical to the LISTBOX command.
COMBOBOX #Windowhandle.comboboxname, arrray$(), [action], xpos, ypos, width, height
After the user selects an item in a combo box, you use the following two commands to identify what the user chose:
PRINT #1.combobox, "selection?"
PRINT #1.combobox, "selected$"
To see how a combo box works, try this following program: -
'Develop a combobox drop-down list in Visual Basic
Module
Sub Main()
Private Sub cmdLoadList_Click()
array$(0) = "HTML"
array$(1) = "CSS"
array$(2) = "Javascript"
array$(3) = "jQuery"
array$(4) = "Visual Basic "
array$(5) = "Object Oriented Programming"
Console.WindowWidth()
Console.WindowWidth = "200" 'Insert value of Window Width here
Console.WindowHeight = "300" 'Insert value of Window height here
COMBOBOX #1.combo1, array$(.[Action], 50, 60, 70, 80, 100
OPEN "Here are your choices for your program" FOR WINDOWS AS
#1
Console.WriteLine(#1, + "trapclose [quit]")
WAIT()
[Action]()
Console.WriteLine(#1, + "selection?")
INPUT #1, combo1, selected$
End Sub
End ModuleTop four web developers on the Web
March 4th, 2010
Here is a list of developers that I believe have made a name for themselves for being a “great web developer”.
David Walsh -
• Consultant on the Mootools Framework
• Very knowledgeable on topics about Mootools, Javascript, CSS, PHP
• Live examples of working code that you can implement into your own website
(With links in the code, linking back to his website of course)
Follow him on Twitter -http://twitter.com/davidwalshblog
Website: http://davidwalsh.name/
James Padolsey -
• Great understanding of jQuery
• Developed a jQuery Application, that allows the user to study specific parts of jQuery’s source code
• His ability to communicate effectively towards other bloggers, programmers and web developers
• Co Author: of “jQuery Cookbook”
Follow him on Twitter -http://twitter.com/jamespadolsey
Website: http://james.padolsey.com/
Chris Coyier -
• Professional style towards Web design, CSS, HTML and jQuery
• Passionate about his design and development work
• Provides screencast’s on web design and development for beginner, intermediate, experienced web developers
Follow him on Twitter – http://twitter.com/Chriscoyier
Website: http://css-tricks.com/
Jason Knight –
• Attains 25 years of experience in software development, graphic design and programming
• Incredibly intelligent on “Web Standards”, cross-browser compatibility and making your site have an overall better performance
• His entrepreneurship
Website: http://deathshadow.com/
Let me hear your opinion in the comments below. If you think that I should’ve added someone else, let me know.
Thank you
Bill Gates, on improving education and diseases.
March 1st, 2010
Bill gates, speech at TED in 2009.
I thought this was a really good presentation. He talks about how education could get better, and how we can limit the spread of deadly diseases. Pretty cool video.
NOT!
February 22nd, 2010
The NOT operator effects a single boolean expression. If the Boolean expression is “true”, the NOT operator makes it FALSE. This operator can go both ways. Let’s say the boolean expression is “false”, the NOT operator makes it TRUE.
Here is a Boolean expression that is true -
10 < 4,000
This example using the NOT Operator makes the Boolean expression false -
NOT(1 < 78)
Assign a variable name using the NOT operator -
DATA = NOT(2 < 94)
I wrote a program using the NOT operator, try running it.
DATA = NOT(4 < 700) 'The value of DATA is false IF DATA THEN PRINT "Assign some text, and display it here" ELSE PRINT "Assign some text, and display it here" END IF END
Understanding the If Statement!
February 19th, 2010
IF (Boolen expression) THEN 'Put a set of rules here //Instructions 'rules described here //instructions END IF
The most common way to control which line of code your computer
understands is to use the IF THEN statement.
The statement checks if your conditions is true or not.
Creating a basic If statement program:
For an example program using the IF statement try running this.
PROMPT "Do you like LIBERTY basic as a programming language? (Type Y for Yes or N for no)"; True$ IF (True$ ="Y") THEN PRINT "Let's start creating some useful programs using the language." ELSE PRINT "Find another language to use" END IF END
If you want to follow two or more instructions using the IF THEN statement,
you must enclose them with the END IF line, heres an example:
PROMPT "How many pets do you own?"; value IF (value >= 1) THEN PRINT "Put your description here" //rules PRINT "Put your description here" //rules PRINT "Put your description here" //rules END IF END
http://msdn.microsoft.com/en-us/library/752y8abs%28VS.80%29.aspx
Finding a string inside another string
February 18th, 2010
If you have a long string, you sometimes want to know the location of another word or phrase inside the longer string. Suppose, for an example, that you had a string containing a list of names.
"Josh, Mike, dan, chris, tyler"
If you want to know in what position the name “dan” appears in the string, you can use the INSTR command, see the following example.
Names$ ="Josh, Mike, Dan, Chris, Tyler" Position = INSTR(Names$, "Dan", 1) PRINT "Name Dan is located in position = "; Position END
The first line creates the string variable Names$ that stores the string Josh, Mike, Chris, Tyler. And the second line tells your computer to make the value of the Position variable to the value the INSTR function returns.
(The third line prints (displays) the string “Name Dan is located in position = 14)
END means it’s the end of the program.
Hello World!
February 15th, 2010
Welcome, to CSSispoetry. We appreciate everyone that has waited patiently while we redesigned and developed our new website. A lot of hardwork and dedication has been involved into developing this layout. Lots of new and exciting projects are in the making and our plan is to share them with you.
We would appreciate it if you left a message in the box below with your thoughts on our new website.
Thank you