User Profile

Collapse

Profile Sidebar

Collapse
balid
balid
Last Activity: Jan 17 '08, 09:53 PM
Joined: Feb 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • balid
    replied to Help in Movement
    Try something like this:
    Code:
    If e.KeyValue = Keys.Up Then
             piccar.Top = piccar.Location.Y - 6
          ElseIf e.KeyValue = Keys.Down Then
             piccar.Top = piccar.Location.Y + 6
          End If
    If your previous worked for left to right using Location.X then using Location.Y should work for up and down....
    See more | Go to post

    Leave a comment:


  • balid
    replied to Lost Focus.. basic confusion
    If SubRefcode2 is not on the same form as ScriptID then you will need to reference the form it is on. How are you storing the values on your subform? Are you using a listbox or an array?...
    See more | Go to post

    Leave a comment:


  • balid
    replied to SQL Connection
    You may get answers faster if you show what you currently have. You may or may not be close with what you have....
    See more | Go to post

    Leave a comment:


  • balid
    replied to ListBox Item Renaming
    Do you mean changing the list entries? I think you just need to know the the index value of the list entry you want to change and change the text at that index.

    Code:
    listBox.list(?) = "what ever"
    If thats not it, could you be more specific?

    Thank you,
    Balid...
    See more | Go to post

    Leave a comment:


  • balid
    replied to Problem with Combobox in VB
    Since you want the check to occur when the user has clicked on the Save button put the combobox selection check in the button click event.

    Code:
     
    Private Sub save_button_Click()
       if combobox1.Listindex < 0 then
          ' Not Selected Code
       else
          'Selected Code
       endif
    end sub
    ...
    See more | Go to post

    Leave a comment:


  • balid
    replied to 3D graphics
    "3D State" it may show as "3D Development Studio " if uou search Google for "vb 3d engine free". It is an engine for rendering 3D environments.

    Truevision 3D and Revolution 3D are two mroe 3D engines that I've used in VB6....
    See more | Go to post

    Leave a comment:


  • balid
    replied to 3D graphics
    Bagstoper,

    Do you really need a 3D engine for that? I believe that that game you reference is just using 2D graphics. And I don't think that you really want the overhead of 3D for something that can be handled with 2D. Just a question.

    One 3D engine I have used is 3D State (I believe it is free, or it was when I used it)...
    See more | Go to post

    Leave a comment:


  • balid
    replied to Mouse over
    Have you thought about using a timer to check to see if the mouse is still over the same object? You could code the "mouse move" event of the form or the container that the control is in. I've used the timer version as the user can move the mouse faster then the events can handle some times.

    Just some ideas....
    See more | Go to post

    Leave a comment:


  • Would something like this work?
    Code:
    Dim test As Integer
    
    Private Sub Command1_Click()
       test = Abs(test - 1)
       Timer1.Enabled = (test = 1)
    End Sub
    
    
    Private Sub Timer1_Timer()
       do your code
    End Sub
    ...
    See more | Go to post

    Leave a comment:


  • balid
    replied to Help me
    Use "ON ERROR GOTO" like this
    Code:
    Private Sub Command1_Click()
    On Error GoTo errHandle
    
       PictureBox1.Image = System.Drawing.Image.FromFile("C:\Documents and Settings\robert.lacour.RBG0\Desktop\dans vb stuff\pic\warrior.jpg")
    Exit Sub
    errHandle:
    your code here
    End Sub
    I hope that helps....
    See more | Go to post

    Leave a comment:


  • Why do you need to actually pass the values? Couldn't your function just look at the value of s(i) and apply the appropriate backcolor?

    May be with more information on your function, need, and limits, I may have a better idea for you.

    Thanks....
    See more | Go to post

    Leave a comment:


  • balid
    replied to i need help
    Have you loaded the records into the combo box?

    If the records are already in the combo box then may be something like:
    Code:
    Private Sub Combo1_Change()    [or _Click()]
       Label1.Caption = Combo1.Text
    End Sub
    might work.

    But to load records from a table into the combo box is another story....
    See more | Go to post

    Leave a comment:


  • balid
    replied to help me with my program.
    Just use the variable name in the line of code.
    IE:
    Code:
    public variable1 as string
    public variable2 as string
    
    ... your code ...
    variable1 = "hello"
    variable2 = variable1 + "there"
    
    ...
    
    if variable1 = "hello" then
    end if
    Something like that....
    See more | Go to post

    Leave a comment:


  • The previous example looks like .NET, try something like this:
    Code:
    Private Sub Command1_Click()
       PictureBox1.Image = System.Drawing.Image.FromFile("C:\Documents and Settings\robert.lacour.RBG0\Desktop\dans vb stuff\pic\warrior.jpg")
    End Sub
    ...
    See more | Go to post

    Leave a comment:


  • You first will have to know where the icon you want to use is. Then change the icon for your main form under the forms properties. Then go to the Project properties and select which form has the icon that you wish to use as the icon use when compiling your program.

    Hope that helps....
    See more | Go to post

    Leave a comment:


  • There are loads of free mouse pointer cursors and icon creators out there. Generally my first stop for that kind of stuff is Download.com.

    Good luck....
    See more | Go to post

    Leave a comment:


  • balid
    replied to rename the filename thru vb
    Plus you can override the warning message this way as well....
    See more | Go to post

    Leave a comment:


  • Raiden1985,

    Have you confirmed that that msg.msg value being passed matches your keyUp values or what the value of keyData is?

    That least that's where I would start.

    If you don't mind me asking, is this for an assignment? Because it seems like it would be a lot easier to use the KeyUp and KeyDown events as Killer42 pointed out.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...