Is there a way to order a listbox so the items are from highest to lowest?
Hi there, I have a listbox called pointslist, it has about 31 numbers, what I would like to do is arrange them from highest to lowest. Would anyone know of a way to reorder them? Thank you!!
View Articlecode line breaking?
Hi there everyone. I have a long line of code, and would like to break it up so it is easier to read. After searching around the net, I have found reference to an underscore at the end of my line I...
View Article[RESOLVED] Problem with Listbox add item using LB_SETTABSTOPS
Dear VB Guru, i have 1List, text1, text2 and command1 i use LB_SETTABSTOPS to set 2 column in my listbox the code is: Sub ListBoxSetTabStops(LB As ListBox, tabStops() As Long) Dim numEls As Long numEls...
View Article[RESOLVED] how to show percentage of profit % between two fields in access
i have a chart that displays income and outcome now i managed to calculate and show the profit between them my question is how do i see that in a percent %? this is the code that calculates between the...
View ArticleRun-time error -2147217900 (80040e14) - Invalid Sql Statement
Hi, When clicking in a button i get the error -2147217900 (80040e14) "Invalid Sql Statement, expected 'DELETE','INSERT','PROCEDURE','SELECT' OR 'UPDATE'". And it's triggered in the following line:...
View Articlehow to check toolbar button menu?
I want to make toolbar button menu checked. Is it possible?
View ArticleAdding multiple controls
Is there a way to add multiple controls (i.e. textboxes) on a form without having to click the control icon each time? I know I can copy and paste, or add them during runtime, but I thought there was a...
View ArticleSUGGEST to get min max date from txt string
I use the tipical free file eof .... to read line by line a txt file. During the loop a get in a mid postion of string a date form each lines and store the date value it in mYDate var. How to get the...
View ArticleUniversity Admissions Point system program not working right
The admissions offices of large Colleges often rely on a point system. A point system similar to the one in Figure 11.31 is used by a large state University. Write a program that displays the...
View ArticleVB6 + WebBrowser + GoogleMaps: It tries to download the image
In most of computers (mine included), a WebBrowser where I execute: Code: WebBrowser1.Navigate "http://maps.googleapis.com/maps/api/staticmap?&size=125x125¢er=" &...
View Articlehow to display 1 line data array from sql to MSHFlexGrid in visual basic 6
help me.. :( how to display 1 line data array from sql to MSHFlexGrid in visual basic 6, if i have table "MS_DATAHAKIM" and data in the table, like this.. and i want to display array data, line 3 to...
View ArticleU.C. Image control with two Images
I have made a user control that acts like a regular image control as I not only needed transparency I also need a handle because I use APIs to do things to the image that I can't do this using a...
View ArticleCan a mouse move event rotate a picture?
Hi there folks. I am thinking about making an interactive clock (analog) to help teach students how to tell time. The yellow wooden ones are great, cause you can move the house and minute hand, but was...
View Articleneed help : Error (row cannot be located for updating)
I am getting error (Row cannot be located for updating) Database : MySQL DB Here's my code Code: Dim rs As ADODB.Recordset Dim sqlCriteria As String Dim i As Long sqlCriteria = "SELECT * FROM...
View ArticleTimers and Select Case Statements
Hello all. I have written some pretty hefty programs in VB6 quite a while ago.... but now have stumbled upon an issue when looking into them further... I have one timer running the backbone of the...
View ArticleApp in the right click context menu that opens up the file which was right...
Hi everyone, Hope my title isn't too long? Basically I am writing an application which opens a text document and does various counts on the contents of the text file. I would like to add this...
View ArticleDay of week problem
Hi, this may seem kids stuff but although I have completed a program and it runs well, I have been banging my head up against the wall to solve a simple problem. I want to show the current day of the...
View ArticleIs there a way to dock a form to the right side of the users screen...
Hi there everyone. I am working on a prog that has lots of features for classroom management. The project has more features, but I would like to add a toolbar on the right side of the screen for...
View ArticleStable Sorting 2D Alphanumeric & Date Arrays
Hi All, I have a requirement to be able to stable sort a 2D array (which contains either alphanumeric or date values) in a legacy VB6 application we are required to support. Below is the array sorting...
View ArticleCopy and double an array
how to post new qus in vb formus because i am new in this .. and i have a problem i want to store array (10) values into array(20 ) values i.e means array1 is stored 2 times in array1 plz help
View Article