|
More site info...
Visual Basic 6 and Earlier | Forum profile
|
|
Forum profile page for Visual Basic 6 and Earlier on http://www.vbforums.com.
This report page is the aggregated overview from a single forum: Visual Basic 6 and Earlier, located on the Message Board at http://www.vbforums.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "Visual Basic 6 and Earlier" on the Message Board at http://www.vbforums.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on Visual Basic 6 and Earlier:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
450
|
1,503
|
4,034
|
|
Post:
|
1,751
|
5,760
|
15,778
|
|
|
Visual Basic 6 and Earlier Posting activity graph:
|
Top authors during last week:
user's latest post:
Help needed creating a multiple...
Published (2009-11-26 07:54:00)
Using ADO ... Check our Database Development FAQ for the tutorial.. Database Development FAQ VB6 and ADO
user's latest post:
text boxes validation in visual...
Published (2009-11-26 10:24:00)
Please do not post multiple threads for the same question (original thread here ). This thread is now closed.
user's latest post:
VB Math Expression in a Textbox...
Published (2009-11-26 12:58:00)
Quote: Originally Posted by dilettante I'd assume no operator precedence or parentheses are required and based on the % operator probably Integer or Long calculations are all that's required. I hacked one up pretty quickly. This isn't too tough. Code: ?5 mod 2 1 IMO you have to assume operator precedence or it's not math. Also Code: MsgBox 2 + 2 / 2 - 1 * 5 Mod 2 'gives 2
user's latest post:
Graphic Problem????
Published (2009-11-26 15:04:00)
textheight includes space above and below character, you will need to deduct a percentage of the textheight (trial and error method i would believe), then adjust the currentx to the correct position
user's latest post:
Need Help With 3 Questions ?
Published (2009-11-26 15:21:00)
Quote: Originally Posted by Kawser how do I program the InputBox so it can only take in binary numbers also InputBox1 & InputBox2 has to have the same length. You can't. You can validate what the InputBox returns after it returns. When the 2nd inputbox returns its value, you can compare lengths at that point. A bit more advanced option would be to create your own inputbox-like object using a form, but may be overkill for a school...
user's latest post:
Why does VB execute every...
Published (2009-11-26 15:25:00)
Quote: Originally Posted by alexdata Is there a way of running those commands "intergrated" into the VB app? not shell'ing them away,but running them inside the program somehow? Well, if you know how to replicate external app's functionality then design a form/class/module and simply show it or call same function/sub, etc... This way functionality you looking for will be "embedded" into your own...
user's latest post:
Sort the files in a listbox by...
Published (2009-11-25 09:03:00)
vb Code: dim alist ( ) as string ' string array redim alist ( lbdraw. listcount - 1 ) ' size array for i = 0 to lbdraw. listcount - 1 alist ( i ) = folderpath & "/" & lbdraw. list ( i ) '...
user's latest post:
Very tricky one.
Published (2009-11-26 00:02:00)
Try the MouseDown, and then the SendMessage handlers that comes with Visual Basic. If that isn't the case. Then you can write your own Command Button, as an OCX and deploy it on your current machine during Setup. But I will be able to say this: Try the Me h.Wnd to discover what Window is running. Then do a SendMessage, when the connection to the Window's Command Button has been executed. Then send the Window a MessageBox, using this...
|
|
|
|
Latest active threads on Visual Basic 6 and Earlier::
Started 2 days, 6 hours ago (2009-11-26 06:40:00)
by seenu_1st
set the textbox font to "Terminal" then u wil get for Chr(200) = "╚"
Started 2 days, 23 hours ago (2009-11-25 14:05:00)
by RhinoBull
Unless I didn't understand it your code makes little sense...
Try this instead - hopefully it works as you intended:
Code:
Option Explicit
Dim arMessages() As String
Private Sub Form_Load()
ReDim arMessages(4) '<<< 5 messages
arMessages(0) = "Message 1"
arMessages(1) = "Message 2"
arMessages(2) = "Message 3"
arMessages(3) = "Message 4"
...
Started 1 year, 11 months ago (2007-12-25 02:32:00)
by leinad31
Have you tried searching for code samples?
Started 2 days, 3 hours ago (2009-11-26 09:23:00)
by seenu_1st
try this function... for ur 1st question
Code:
Function RomanToArabic(ByVal Roman As String) As Integer
'-- Convert Roman number to Arabic number
'-- Return -32768 as an error flag if Roman string is invalid
Dim i As Integer
Dim Unit As Integer
Dim OldUnit As Integer
OldUnit = 1000
For i = 1 To Len(Roman)
Select Case UCase(Mid$(...
Started 2 days, 2 hours ago (2009-11-26 10:14:00)
by si_the_geek
To start with, read each character of the text, eg:
Code:
Dim intPos as Integer
For intPos = 1 to Len(Text1.Text)
MsgBox Mid(Text1.Text, intPos,1)
Next intPos
Then change the part inside the loop to check what the character is, and act on it appropriately.
For example, if it is an operator, store it to a variable.
If it is a number, and you haven't stored a ...
Started 2 days, 2 hours ago (2009-11-26 10:30:00)
by emartinho
Which line gives you the error? That would help identify the problem.
Started 6 days, 6 hours ago (2009-11-22 07:04:00)
by westconn1
i found this a bit interesting so i wasted some time on it
vb Code:
Private Sub Form_Load ( ) Pic. Font . Size = 14 Pic. ForeColor = vbBlack End Sub Private Sub Text1_KeyPress ( KeyAscii As Integer ) Select Case KeyAscii Case Asc ( "." ) Pic. FillStyle = 0 Pic. FillColor = vbBlack Pic....
Started 3 days, 4 hours ago (2009-11-25 08:50:00)
by si_the_geek
Are you simply copying the program, or are you actually Installing it?
If you aren't installing it, find out why you need to in the article Why doesn't my program work on another computer? from our Classic VB FAQs
To create an installation package you need to use a program like P&DW that comes with VB, or one of the many other tools available (such as the official replacement, VSI)....
Started 2 days ago (2009-11-26 12:18:00)
by RobDog888
Use the Replace function.
Code:
Dim str As String
str = "Material Type, Style and color"
MsgBox Replace(str, "and", "&")
Started 6 days, 5 hours ago (2009-11-22 07:29:00)
by akhileshbc
What about using Global or Public variables for storing the values.?
So, you can use them anywhere in your program....
|
|
Hot threads for last week on Visual Basic 6 and Earlier::
Started 6 days, 5 hours ago (2009-11-22 07:29:00)
by akhileshbc
What about using Global or Public variables for storing the values.?
So, you can use them anywhere in your program....
Started 1 week, 1 day ago (2009-11-20 01:28:00)
by dee-u
Started 4 days, 11 hours ago (2009-11-24 02:07:00)
by akhileshbc
Background Load and Unload - Correct way ?
Hi,
I use background pics(created using photoshop for nice interfaces ) in Forms...
This is how I load and unload it:
Code:
Private Sub Form_Load()
frmMain.Picture = LoadPicture(App.Path & "\data\back.jpg")
End Sub
Private Sub Form_Unload(Cancel As Integer)
frmMain....
Started 1 week, 1 day ago (2009-11-19 19:27:00)
by bushmobile
are you setting the MSFlexGrids to .Redraw = False before altering them?
Started 4 days, 9 hours ago (2009-11-24 03:36:00)
by hamzabo7
"Else" alternative
Hi,
I would like to find out if there is an alternative to else or else if so that if the value of the if does come true the computer still goes on to check the second eg:
Code:
if text1.text= "1" then label1.caption= "1"
else if if text2.text= "2" then label2.caption= "2"
end if
see here if text...
Started 2 days, 7 hours ago (2009-11-26 06:11:00)
by danasegarane
Set the dropdownstyle to DropdownList.
Started 1 week ago (2009-11-20 15:23:00)
by CVMichael
VB6 has a Timer function... it's called Timer ... seriously...
Started 4 days, 7 hours ago (2009-11-24 05:48:00)
by si_the_geek
To find out the Date of a file, use the FileDateTime function, eg:
Code:
Dim datFile as Date
datFile = FileDateTime("C:\folder\file.ext")
For sorting, store the details to an array and then sort it - there is a very good sorting article in the "Data Types/Variables" section of our Classic VB FAQs
Started 4 days, 4 hours ago (2009-11-24 09:02:00)
by Justa Lol
you could use inet but then you need an available port 80...
Started 6 days, 1 hour ago (2009-11-22 11:45:00)
by MartinLiss
At the very top of a code module put
Code:
Option Explicit
Public testVar As String
Option Explicit is optional but you should always use it.
If you then want to initialize testVar you can do it anyplace.
If it happens that you don't want to ever change the value then do
Code:
Option Explicit
Public Const testVar As String
at the top of the code ...
|
|