User Profile

Collapse

Profile Sidebar

Collapse
michels287
michels287
Last Activity: Nov 10 '08, 09:28 PM
Joined: Mar 14 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • VB6, MySql, Stream Image to Blob, Null Value Error

    With a single record in my table, I can use this code:


    Code:
    Private Sub Command1_Click()
    
    Set cn = New ADODB.Connection
    cn.Open "Provider=MSDASQL.1;Persist Security Info=False;" & _
          "Data Source=localhost;Initial Catalog=testdb"
    
    Set rs = New ADODB.Recordset
    rs.Open "Select * from album", cn, adOpenKeyset, adLockOptimistic
    
    Set
    ...
    See more | Go to post

  • Thanks! Resolved.

    Means a lot.
    See more | Go to post

    Leave a comment:


  • michels287
    started a topic Onscreen keyboard with Masked Textbox

    Onscreen keyboard with Masked Textbox

    I have a masked textbox on my form.
    I have an onscreen keyboard with numbers only.

    The masked format for the masked textbox is: (###) ### - ####

    I want to make sure they enter the phone numbers properly, hence the mask.

    What I cannot seem to figure out is why can I not send the button captions (captions are the value of the number buttons, 1 through 9) into the masked box without an error?
    ...
    See more | Go to post

  • I wish to use the keyboard on screen, not the actual keyboard.

    Thanks.

    Currently working with another recommendation that looks like:

    Text1.Text = Left(Text1.Text , Text1.SelStart - 1) & Command1(Index) .Caption & Mid(Text1.Text, Text1.SelStart + 1)

    But I get errors when I place this in my Command1_Click( Index As Integer)

    'Invalid procedure call or argument"
    See more | Go to post

    Leave a comment:


  • michels287
    started a topic VB6/Blinking Cursor/Textbox/Move Cursor

    VB6/Blinking Cursor/Textbox/Move Cursor

    Right now I have a touchscreen with a virual keyboard.

    I would like to create arrow keys. If the user messed up the inputted text, he can move the blinking cursor left one space at a time between inputted characters to add a letter. Then a button to move the blinking cursor back to the end of the inputted text.

    Private Sub Left Arrow_Click()
    If Text1.SelStart Then Text1.SelStart = Text1.SelStart - 1
    Text1.SetFocus...
    See more | Go to post

  • michels287
    replied to If...Then
    This code works well for me, but can someone explain to me HOW it works?

    Thanks!!!!!!
    See more | Go to post

    Leave a comment:


  • michels287
    started a topic List Box Array and Sounds

    List Box Array and Sounds

    Hello... Currently I have an array of 8 listboxes in VB6. Each item in my listbox plays a wav sound from a large file on my desktop called "Sounds".

    I am using the sndPlaySound API.

    The code I have to link everything up is:


    Private Sub List1_Click(Ind ex As Integer)

    Const sSoundFolder = "C:\Users\Chris \Desktop\Sounds \"
    Dim sToneFile As String
    Dim...
    See more | Go to post

  • I would like the excel sheet to be displayed on the form. I will code it so that once the Open Excel button is pressed, it will move the label to excel cells, save the changes, close it immediately and display the resulting excel sheet on my form.

    Any ideas how to display the excel sheet on a visual basic form? I am doing this because I do not want the user to be able to manipulate my excel spreadsheet to mess up the format, formulas,...
    See more | Go to post

    Leave a comment:


  • michels287
    started a topic Display read only excel worksheet in vb6

    Display read only excel worksheet in vb6

    Hello...

    I am using VB 6 and wish to have a form that displays a read only worksheet from my excel file:

    C:\Users\Chris\ Desktop\myexcel .xlsx

    Anyone have any ideas how to display the first sheet on the form in VB6 with the click of a button?
    See more | Go to post

  • michels287
    replied to If...Then
    Brilliant! Works perfectly. Thanks again for the help!...
    See more | Go to post

    Leave a comment:


  • michels287
    replied to If...Then
    Here is what I have:
    [code=vb]
    Private Sub Form_Load()
    Dim bYes As Boolean
    Dim bYesNo As Boolean
    End Sub

    Private Sub cmdNo_Click()


    If List1.ListIndex > 0 Then
    List1.ListIndex = List1.ListIndex - 1
    End If

    If bYes Then
    If bYesNo Then
    bYes = False
    bYesNo = False
    Else
    ...
    See more | Go to post
    Last edited by debasisdas; Mar 18 '08, 05:45 AM. Reason: added code=vb tags

    Leave a comment:


  • michels287
    replied to If...Then
    Thank you so very much.

    I will try executing this and let everyone know how I do.

    Thanks.
    See more | Go to post

    Leave a comment:


  • michels287
    replied to List Box
    Thanks guys.

    I have heard of arrays and have been reading on them since my post.

    So if I make an array, I have to declare the array? Then I can type code with your recommendations to shift through the list boxes once the command is pressed?

    What does it mean to type a select case?

    Thanks again.
    See more | Go to post

    Leave a comment:


  • michels287
    started a topic List Box

    List Box

    I have six list boxes in my VB6 project and two buttons.

    The first button's job is to select the next item in the current list box. Now that I am adding more listboxes how can I modify the following command so that it will always pertain to the current list box?

    If List1.ListIndex > 0 Then
    List1.ListIndex = List1.ListIndex - 1
    End If

    Also how can I create a way so that...
    See more | Go to post

  • michels287
    started a topic If...Then

    If...Then

    Maybe someone can help me here.

    I have two command buttons: "yes" and "no".

    How can I create a way so that when the user selects "yes" then "no" then "yes" again the number 30 is store in a text box?

    The buttons have to be pushed in that exact order in order for the number to appear.

    Thanks for your help.
    See more | Go to post

  • michels287
    replied to List Box
    This seems to work just fine! Thanks a lot!

    I am using VB6, by the way.

    Chris
    See more | Go to post

    Leave a comment:


  • michels287
    started a topic List Box

    List Box

    Hello...

    I have 6 items in a list box. What code can I use for a button so that when I press the button the next item in the list box would be selected?

    And the other way around? What code can I use so that with a different button the previous item would be selected in the list box?

    Thanks!
    See more | Go to post

  • michels287
    replied to If... Then
    I have my listbox set up!

    Can you recommend a "Yes" code that would get it to go to the next List option?

    Thanks again!!
    See more | Go to post

    Leave a comment:


  • michels287
    replied to If... Then
    Sounds like a good idea! Thanks. Do I still use my sndPlaySound commands in the listbox or is there an even easier way?

    So far... I load:

    Private Declare Function sndPlaySound Lib "WINMM.DLL" Alias _
    "sndPlaySou ndA" (ByVal lpszSoundName As String, ByVal uFlags As _
    Long) As Long
    Const SND_SYNC = &H0
    Const SND_ASYNC = &H1
    Const SND_NODEFAULT...
    See more | Go to post

    Leave a comment:


  • michels287
    started a topic If... Then

    If... Then

    Hello ... I would greatly appreciate some help!

    I am new to Visual Basic and have been working hard on creating a simple application.

    I have two command buttons "Yes" and "No".

    I wish to play tones from my speakers and ask if the person listening can hear them.

    I have loaded the sndPlaySpound API into VB and can get sounds to play just great. However, how do I set...
    See more | Go to post
No activity results to display
Show More
Working...