| |
thread by: sashi |
last post Dec 4 '06 by: sashi
BLOB - Save image to database
BLOB's are a way of storing images in a database. The following procedure will show you how to create a connection to your database and how to store an image using BLOB.
Dim CN As New ADODB.Connection
Dim RS As ADODB.Recordset
Dim DataFile As Integer, Fl As Long, Chunks As Integer
Dim Fragment As Integer,...
|
thread by: bero81 |
last post Oct 6 '08 by: BACKPACK
I have to set the interval time,over one minute in vb6.
the point is,i set the inteval at 1 minute and write down:
timer1.interval=60000,because 1 minute is 60000,
but when i do the same thing for 2 minutes i write down timer1.inteval=120000,and i've got the problem "Invalid property value"....how can i sort that problem out ?????
Thanks a...
|
thread by: lee123 |
last post May 26 '09 by: QVeen72
in my code i am using this syntax:
Private Sub mnuName_Click()
Dim str As String
Adodc1.Recordset.MoveFirst
str = InputBox("What Name Can I Find For You......?", "Who Name Can I Search For You Today?")
Adodc1.Recordset.Find "lessorsname='" & str & "'"
End Sub
But the problem is what if the name doesn't...
|
thread by: anjalimahey |
last post Nov 1 '08 by: thorpie
I am not able to add a dll in my VB6 project. It is located in project folder.
I made a declaration in my form
Private Declare Function FindPattern Lib "iEdit_Find.dll" (ByVal lpszPattern As String, ByVal lpszSource As String, ByVal nMatchCase As Long, ByVal nStart As Long, nlen As Long) As Long
but when I run my project it gives the following...
|
thread by: Option^Explicit |
last post Jul 17 '05 by: J French
What example can someone give to show how to use Goto Label: , but not to be
used for error control.
What if I want to use it to skip across a bunch of code?
|
thread by: sea |
last post Jul 17 '05 by: Rick Rothstein
I have text files in the following format:
123,34,
,345,890,
123,23
..
..
..
As you can see, the problem is that (1) the commas can occur in
|
thread by: William Bub |
last post Jul 17 '05 by: Tom
Is there an accurate way to create a "stopwatch" good to 1/10 of a second?
I'm not sure if I should use the timer control, or some way to access the
computer timer. I found the following site
http://searchvb.techtarget.com/tip/1,289483,sid8_gci535495,00.html
which has the following:
> Want to really get down to instants? This tip from...
|
| |
thread by: Simon |
last post Jul 17 '05 by: Simon
Using qbasic, the following accepts input from com1, and prints its output :
OPEN "com1:9600,n,8,1,CD0,CS0,DS0,RS" FOR INPUT AS #1
WHILE INKEY$ <> " "
INPUT #1, a$
PRINT a$
WEND
What would the same set of commands look like in VB. I am reading the
|
thread by: ruvi |
last post Jun 21 '09 by: ahmedtharwat19
I am getting runtime error 3021 - Either EOF or BOF is true or the current record has been deleted.....
I have 2 combo boxes in a form- One for the client and the other for the project.
When the form loads, the client combo box gets populated with all the clients.
When a particular client is clicked, the project combo box gets populated with...
|
thread by: Pavan Arise |
last post Jul 17 '05 by: Pavan Arise
Dear all..
I have a picturebox filled on a form. The picturebox has some
graphics displayed on it.I was trying to save the picturebox, but
continuesly failed to do so. I am clueless of why it is happening. I
tried to save the image of the form & also the picturebox, but always,
i see a blank file saved. Is there a way to save whatever is...
|
thread by: debasisdas |
last post Dec 31 '11 by: tuxalot
This program checks if webcam is available, if available then capture video and displays in picture box.
Add this code to the general module (.BAS file)
----------------------------------------------------------------------
Public Const ws_child As Long = &H40000000
Public Const ws_visible As Long = &H10000000
Global Const WM_USER = 1024...
|
thread by: redan |
last post Aug 22 '07 by: Robbie
Hello,
I have a code in which I set the size of the window before they are open, like that :
Public Sub Form_Load()
Me.width = 8160
Me.Height = 5970
Me.Show
End Sub
|
thread by: vdraceil |
last post Jan 4 '08 by: QVeen72
Hi experts, I have a question. Is it possible to set (change/edit) the system time and date by coding in vb6.0? I think it's not possible (80%) but maybe experts might have an answer - I suppose.
|
thread by: margetts |
last post Jul 17 '05 by: Hal Rosser
Hey there, what i want to do is have a text field that can only accept
numbers, full stops and the backspace key.
I currently have the below code to accept only numbers, but no full stops or
backspace.
Im sure this is really simple, and i will be greatful for a respons..
Private Sub txtBal_KeyPress(KeyAscii As Integer)
If KeyAscii <...
|
thread by: mikaeri |
last post Jul 9 '07 by: Killer42
Hello everyone,
I have two different tables:Products&Variations. One of them is for product characteristics and the other is for keeping the track of any variations made on proucts.
I have a form of the table Products. I want to have a command button on this form that is disabled by default(I managed to do this).And I want this button to be...
|
| |
thread by: BadOmen |
last post Jul 17 '05 by: BadOmen
I want my program to send a mouse click to the window at the current mouse
position, how do I do that?
Example:
I have my mouse over a button in Word and then my program is sending the
left mouse click and the button under the mouse is clicked.
Yours, Jonas
|
thread by: Killer42 |
last post Jun 21 '07 by: Killer42
Public Function DistanceBetween(ByVal X1 As Single, ByVal Y1 As Single, ByVal X2 As Single, ByVal Y2 As Single) As Single
' Calculate the distance between two points, given their X/Y coordinates.
' The short version...
DistanceBetween = Sqr((Abs(X2 - X1) ^ 2) + (Abs(Y2 - Y1) ^ 2))
' The longer version, to illustrate how it works......
|
thread by: Hiren Joshi |
last post Feb 13 '16 by: Cjpa
Hi,
I am displaying a message in Message Box but it comes in only 1 line....
Is there any way i can make 2 or 3 lines wherever i want in Message Box display? I mean to say I need Line Break in Message Box.
E.g. My Message is supposed to read as follows:
"You had Enough Attempt of Login,
|
thread by: metalheadstorm |
last post Oct 8 '07 by: Killer42
ok how do you do and if statment to see if a value is between to other values such as
If test.Text >= 20 Then
Hopperfullpic(0).Visible = True
Hopper1pic(0).Visible = False
Hopper2pic(0).Visible = False
Hopper3pic(0).Visible = False
Hopper4pic(0).Visible = False
ElseIf test.Text < 20 > 15 Then
...
|
thread by: Lavs |
last post Mar 28 '07 by: Lavs
Halu! Is there anyone who could give me an advice about this code?
I have a file named db1.mdb in with a full path of "c:\firstfolder\copy db1.mdb" which i want to transfer to another directory "e:\secondfolder". This is supposed to be creating a backup routine for an application i am developing.
This is the code that i used.
I am using...
|
thread by: Raoul Watson |
last post Feb 9 '06 by: Dean Earley
Is there a way to simulate a selection (let's say to the third item on the
list) and cause the highlight to appear?
Any ideas welcomed and appreciated. Thanks!
|
thread by: |
last post Jul 17 '05 by: name
I'm trying to create a vbscript so that I can autologin and
get my tasks done unattended. As part of my code, I'm trying
to click to get the vbscript to click the "Login" button but
I'm always getting that error mentioned below. The unusual
thing about it is that the login and password fields are
filled but the line of code where it's...
|
thread by: aviraldg |
last post Nov 7 '07 by: aviraldg
How do I write data at the end of a file (size unknown) in binary mode ?
|
| |
thread by: Corey |
last post Jul 17 '05 by: Cor Ligthert
I'm trying to finish off do an ASP.NET project where a DropDownList box is
used to access a Table.
Once you Make a selection on an item in the DropDownListBox, it updates a
DataView, and text boxes on the form get updated.
I'd like to do this without a submit button.
Shouldn't the DropDownList box PostBack?
Why does SelectedIndexChanged...
|
thread by: Kris M |
last post Jul 17 '05 by: Bert Byfield
How do i handle a null value for a date variable type. I am retrieving date
data from an access database and storing the records in an array for
processing. The array field has a date type and the db records are date type
with null permissible.
How should i handle the insertion of a null date record into the array? I
just cant leave it empty...
|