| | |
Please help me
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jul 2009
Posts: 3
Reputation:
Solved Threads: 0
Hello my name is intekhab khab persuing BCA final
i have some problem in Visual basic coding as i dont know any thing about Visual basic i know c/c++ php Ajax but i dont familiar with visual basic 6.0.Sir gave me assignment and two days of only please help me ,the question of assignment are
01)Program which takes 10 records from the user, there are two buttons on the form. Display, Modify. On clicking the button display information about the requested record, on clicking modify, information of particular student should be changed.
02)Take Two LISTBOXS. First List box has 10 elements. There are three buttons.
i. >
ii. >>
iii. remove
on clicking first button selected item from first list box should be inserted into second one. If second button is clicked than all items of first should be inserted into second one (no duplicate element in second list box). On clicking third button selected element from the second list box should be deleted.
03) Create a menu
Color Font Case
Red Bold Lower
Green Italic Upper
Blue Bold And Italic
Font Name
Form has one Textbox, on clicking any option properties of textbox should change accordingly.
I know this programmes are too simple i alone do this but i have not familiar with this languages
Thank you
Pixelerator http://intekhab.co.cc
i have some problem in Visual basic coding as i dont know any thing about Visual basic i know c/c++ php Ajax but i dont familiar with visual basic 6.0.Sir gave me assignment and two days of only please help me ,the question of assignment are
01)Program which takes 10 records from the user, there are two buttons on the form. Display, Modify. On clicking the button display information about the requested record, on clicking modify, information of particular student should be changed.
02)Take Two LISTBOXS. First List box has 10 elements. There are three buttons.
i. >
ii. >>
iii. remove
on clicking first button selected item from first list box should be inserted into second one. If second button is clicked than all items of first should be inserted into second one (no duplicate element in second list box). On clicking third button selected element from the second list box should be deleted.
03) Create a menu
Color Font Case
Red Bold Lower
Green Italic Upper
Blue Bold And Italic
Font Name
Form has one Textbox, on clicking any option properties of textbox should change accordingly.
I know this programmes are too simple i alone do this but i have not familiar with this languages
Thank you
Pixelerator http://intekhab.co.cc
•
•
Join Date: Mar 2009
Posts: 828
Reputation:
Solved Threads: 150
To add items to a list box you use the additem method...
To make your list box allow multiple selections set its multiselect property to true on/in the property box.
To run through the list to test which one(s) have been selected. Use a for loop...
To remove an item or items from a list box. Once again use a for loop but this time do it backwards...
use the menu editor to create your menu items and if you don't know how to use it, there are several tutorials out there, just search the web.
Now to enumerate through all the fonts on the system, use a for next loop...
That should be enough to get you started. If you have any more questions google and yahoo are your friends as is this forum.
Good Luck
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
List1.AddItem "MyString"
To run through the list to test which one(s) have been selected. Use a for loop...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim ForLoopCounter As Integer For ForLoopCounter = 0 To List1.ListCount - 1 If List1.Selected(ForLoopCounter) = True Then 'do something End If Next ForLoopCounter
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim ForLoopCounter As Integer For ForLoopCounter = List1.ListCount - 1 To 0 Step -1 If List1.Selected(ForLoopCounter) = True Then List1.RemoveItem ForLoopCounter End If Next ForLoopCounter
Now to enumerate through all the fonts on the system, use a for next loop...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
For ForLoopCounter = 0 To Printer.FontCount - 1 List2.AddItem Printer.Fonts(ForLoopCounter) Next ForLoopCounter
That should be enough to get you started. If you have any more questions google and yahoo are your friends as is this forum.
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Random color?
- Next Thread: transparent form prob!!
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





