Question about Microsoft Visual Basic 6.0 for PC

1 Answer

Multiple option selection in listbox of VB

How can i select multiple option from various option in a listbox of VB

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    An expert whose answer gotĀ voted for 2 times.

  • Expert
  • 33 Answers

Set the 'MultiSelect' property to allow the user to select multiple options by holding down the CTRL or SHIFT keys.

Posted on Feb 15, 2009

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

I want project using vb as front end and oracle as a back end


U can download any project of ur need from

http://www.planet-source-code.com/

After opening the website, select Visual Basic as language in right hand side box and just down to that box search for your project

After searching select the project from a list of project and open it and download it

Jan 11, 2010 | Microsoft Visual Basic 6.0 for PC

1 Answer

How do i add items that are in a listBox


Normally it is something like this:
Dim valuetoinput as string valuetoinput="item_one" ListBox(x).Add(valuetoinput)
where (x) is the number of the list box added to your form.

Nov 16, 2009 | Microsoft Visual Basic Enterprise Edition...

1 Answer

Developing an application with vb.net 2008 and i'm finding it


You need to set up an ODBC DSN and use this in your connection string then instantiate an ODBC connection. For example:

Dim MyConnectionString As String = "Driver={MySQLDSN};SERVER=localhost;DATABASE=MySQLDatabase;" '
Dim conn As New OdbcConnection(connectionString)
conn.Open()
Dim da As New OdbcDataAdapter("SELECT * FROM Customers", conn)
Dim ds As New DataSet()
da.Fill(ds, "Customers")
dataGrid1.DataSource = ds.DefaultViewManager
conn.Close()

Sep 04, 2009 | Microsoft Compilers & Programming Tools

1 Answer

Describe your MicrosI use Adodc for connecting a database but how can i display records to listbox?oft Problem


Hello,
Yo have to bound the listbox to you Adodc controls. Let say's:

Assuming that you have already set you Adodc contrl to assign a connection in one of your database then use the code below to bound your listbox data source to your Adodc datasource.

Set Listbox1.datasource = Adodc1.datasource

Thanks

Aug 01, 2009 | Microsoft Visual Basic 6.0 for PC

1 Answer

Adodc1.RecordSource = ''Select * from wharfdb where entrydate>='' & ''''' & strdate1 & ''''' DataGrid1.Refresh Set DataGrid1.DataSource = Adodc2 Adodc1.Refresh DataGrid1.Refresh BUT SAME...


I think this can be the solution.

Adodc1.RecordSource = "Select * from wharfdb where entrydate>='" & strdate1 & "'"
DataGrid1.Refresh
Set DataGrid1.DataSource = Adodc1.Recordset
Adodc1.Refresh
DataGrid1.Refresh

To see how the first statement is written, see down below.
entrydate > = ' " & strdate1 & " ' "

I hope this works for you.
Greetings.

Jul 08, 2009 | Compilers & Programming Tools

1 Answer

Looking for the code of "print"


You will be using the "Print # Statement" (see the VB Help file for full details). You may also want to check out the printer dialog control to allow your users to select a printer to print to.

Apr 24, 2009 | BDG Publishing Visual Basic Source Code...

2 Answers

VB 6.0 ROUNDING A NUMBER


Use the Math.Round() function. It takes two arguments, the first is your number or a variable holding your number and the second is the number of decimal places. This will only round to fractions of a whole number though and you need to round to the nearest 10. So divide your number by 10 before you round to shift the decimal place once to the left and multiply by 10 again afterwards to shift it back again.

answer = Math.Round(32.1 / 10, 0) * 10

Apr 02, 2009 | Microsoft Visual Basic 6.0 for PC

1 Answer

Vb 6.0 to oracle connectivity problem


Your SQL query does not look valid. Test the query in SQL Query analyzer, and then once it is working, copy it into your VB source. You will of course then need to make the query a string that VB will accept.

Mar 23, 2009 | Microsoft Compilers & Programming Tools

1 Answer

Microsoft Access query in VB


first you need to create a record set to do this, after creating a record set RS1. please follow the code below:
Update the code as per your requirement.
Rs1.Open "Select * from table_name where UserName = '" & UName & "'", Cn1, adOpenDynamic, adLockOptimistic

Mar 14, 2009 | Microsoft Visual Basic 6.0 for PC

2 Answers

Visual Basic 6.0


1. IDE is Integrated Development Environment
2.With VB 6, one can develop applications with feature rich GUIs (Graphical User Interface). Many varieties of general purpose software can be created with little effort, including, but not limited to, image editing software, text editor and database applications.
3.Windows Application Template
-----------------------------------------------------
Used to create Windows-based applications that run locally on users' machines. You can build anything from a simple single-window tool like Windows Calculator to a complete application with multiple windows and advanced capabilities.

Class Library Template
-----------------------------------------
Used to create reusable classes or components that can be shared with other projects.

Console Application Template
----------------------------------------------------
Used to create command-line applications, programs that run from a Windows command prompt and have no visual interface.

My Movie Collection Starter Kit Template
-------------------------------------------------------------------------
Used to create the pre-built My Movie Collection sample application, which you can customize to meet your own needs. For more information, see Starter Kits: Getting Up and Running Quickly.

Screen Saver Starter Kit Template
-------------------------------------------------------------
Used to create the pre-built Screen Saver sample application, which you can customize to meet your own needs. For more information, see Starter Kits: Getting Up and Running Quickly.
4.FormShaper lets you change the shape that windows draws your forms. You can have rectangles, rounded rectangles, ellipses, polygons and any combination of the above! Even save the shapes to a file for use in other projects! See readme.txt in the zip file for more details

5.Description
Used at script level to force explicit declaration of all variables in that script.
Syntax
------------
Option Explicit
Remarks
----------------
If used, the Option Explicit statement must appear in a script before any procedures.
When you use the Option Explicit statement, you must explicitly declare all variables using the Dim, Private, Public, or ReDim statements. If you attempt to use an undeclared variable name, an error occurs.
--------------------------------------------------------------------------------

Use Option Explicit to avoid incorrectly typing the name of an existing variable or to avoid confusion in code where the scope of the variable is not clear.

Feb 20, 2008 | Compilers & Programming Tools

Not finding what you are looking for?
Microsoft Visual Basic 6.0 for PC Logo

Related Topics:

104 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Alex Krenvalk

Level 2 Expert

401 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Are you a Microsoft Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...