Search Results - VBForums

Search:

Type: Posts; User: 4x2y

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds; generated 58 minute(s) ago.

  1. Thread: Array Help

    by 4x2y
    Replies
    40
    Views
    776

    Re: Array Help

    You must use Try...Catch inside your decrypt code
  2. Replies
    11
    Views
    527

    Re: String edit!

    From where these blank lines come from?

    If you build the string yourself then there isn't problem, just remove the unneeded lines.
  3. Replies
    16
    Views
    1,866

    Re: vb6 MultiThreading ?

    check this and this
  4. Re: Invalid procedure call or argument on MSHFlexGrid SetFocus

    If any control Enabled property is False, SetFocus cause Runtime error 5: Invalid procedure call or argument
  5. Replies
    4
    Views
    218

    Re: Get Focused Application Name

    Use GetForegroundWindow function then use returned handle with GetWindowModuleFileName function
  6. Re: How to remove program from startup programatically

    Startup items are stored in the registry under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run and the folder...
  7. Replies
    6
    Views
    267

    Re: Concatenation's, is this possible?

    Why?

    Check url variable, it may contains different pattern!
  8. Replies
    6
    Views
    267

    Re: Concatenation's, is this possible?

    Use Like operator



    If url Like "http://www.mywebsite.com/AccountID=###*" Then
    clicksettings()
    End If
  9. Replies
    18
    Views
    494

    Re: remove a word (line) from a text file

    try


    s = Replace(s, reza & vbNewLine, "")
  10. Re: How can I know the absolute path of a running process?

    Right click Project1.exe and select Run as admin from the context menu


    Please remove Project1.exe file from your attachment, this is violate forum rules!
  11. VS 2013 Re: Modify text file with string values

    Dim values() As String = File.ReadAllText("C:\test.txt").Split("|"c)
    values(2) = "This is the new information"
    File.WriteAllText("C:\test.txt", String.Join("|"c, values))
  12. Replies
    1
    Views
    148

    VS 2010 Re: Open program in background from VB

    Shell("second\program\path", AppWinStyle.NormalNoFocus)
  13. Re: Adding items to a ListView with LVM_INSERTITEM: not working

    Why using API not lvSearch.ListItems.Add method?
  14. VS 2008 Re: combobox1.text is not = "YES" or "NO" or "Maybe"

    If ComboBox1.Text <> "YES" AndAlso ComboBox1.Text <> "NO" AndAlso ComboBox1.Text <> "MAYBE" Then
    MessageBox.Show("Exit Sub")
    End If
  15. Re: Multiple projects in IDE - Possible to see each other?

    Add a new project of type Class Library put your common classes/controls to this library, then you can use from any other project.

    a sample is here
  16. Replies
    2
    Views
    203

    VS 2012 Re: Keypress event

    Try this


    Private Sub TextBox1_KeyPress(sender As Object, e As KeyPressEventArgs) Handles TextBox1.KeyPress
    Select Case e.KeyChar
    Case "Y"c, "y"c
    ...
  17. Replies
    8
    Views
    368

    VS 2010 Re: Adding 1 day - is this code safe?

    You can show the date with any format you need



    Dim sDay As String
    Dim sMonth As String
    Dim sYear As String
    Dim dDate As Date

    sDay = "28"
  18. Replies
    4
    Views
    356

    Re: KeyDown event help

    txtPassword must be focused to work, if you want to work even when txtPassword not focused, set the form's KeyPreview to true and put the code under Form1_KeyDown event.



    private void...
  19. Replies
    3
    Views
    329

    Re: Calculating Word Value

    Replace


    numerology = numerology & indx


    with


    numerology = numerology + indx
  20. VS 2010 Re: Counting the # of a specific character in lines

    Use this function


    Private Function SlashCount(strURL As String) As Integer
    Dim c As Integer = 0

    For j As Integer = 0 To strURL.Length - 1
    If...
  21. Replies
    23
    Views
    1,426

    Re: VB Programming book

    Search Google books for free books like this one
  22. Re: Using an external file to open other files

    You already did most of these steps! opening, searching, founding, asking the user

    The simplest method is saving "gmes.chs" in INI file format, by this way you can delete any value using...
  23. Re: Using an external file to open other files

    Open the file for output and write only lines before and after the line you want to delete!
  24. Replies
    19
    Views
    840

    Re: Help with codes!

    @RhinoBull

    Sorry, didn't see your post before posting my answer!
  25. Replies
    19
    Views
    840

    Re: Help with codes!

    Two Notes:
    1- This line units = Label1.Caption.Value must stop the program with compile error.

    2- Rate will never be 1 because any value less than 150 is also less than 250, therefore Case Is <=...
  26. VS 2012 Re: [Help] Trying to make an 8 x 8 chessboard in a picture box

    Post #11
  27. VS 2012 Re: [Help] Trying to make an 8 x 8 chessboard in a picture box

    NO it will :)

    I wrote the code very quickly without deep tests, but as i said "make the picture height and width are multiple of 8, e.g. 640x640, 600x400, 120x120, etc..."

    Of course your code...
  28. VS 2012 Re: [Help] Trying to make an 8 x 8 chessboard in a picture box

    No, it is, but you need to make the picture height and width are multiple of 8, e.g. 640x640, 600x400, 120x120, etc...
  29. Re: Generating 10 unique random numbers from 1-50 in visual basic 2010

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

    Dim r As New List(Of Integer)
    Dim rg As New Random
    Dim rn As Integer

    Do
    ...
  30. VS 2012 Re: [Help] Trying to make an 8 x 8 chessboard in a picture box

    If the code added under ChessBox_Paint event, how to call it when pressing DrawChess button?
  31. VS 2012 Re: [Help] Trying to make an 8 x 8 chessboard in a picture box

    try this


    Private Sub DrawChess_Click(sender As System.Object, e As System.EventArgs) Handles DrawChess.Click
    Dim paper As Graphics
    paper = ChessBox.CreateGraphics()
    ...
  32. Replies
    7
    Views
    422

    Re: Exit a do loop

    Usually when i have loop that can iterate too much, i do DoEvents each 100 or 1000 according to how many iteration the loop will run.

    instead of


    Do
    DoEvents
    ' other code
    Loop Until...
  33. Replies
    7
    Views
    422

    Re: Exit a do loop

    You must ensure that DoEvents executed frequently
  34. Replies
    7
    Views
    422

    Re: Exit a do loop

    I think this part is buggy
    1-


    If mbSpeedTimer Then 'speed up win if user clicked form or images
    sndPlaySound ByVal 0, 0 'Stop the Sound
    Timer1.Enabled = False
    Exit Do...
  35. Replies
    10
    Views
    391

    Re: Lost Row And Col in IDE

    I think you have to reset VB6 IDE settings:

    1- Close VB6 if it is running.
    2- Run the Registry Editor.
    3- Go to HKEY_CURRENT_USER\Software\Microsoft\Visual Basic
    4- Backup that key from File>...
  36. Replies
    10
    Views
    391

    Re: Lost Row And Col in IDE

    You can access View> Toolbars by right click on the toolbar itself, so do and be sure Standard is checked
  37. Replies
    10
    Views
    391

    Re: Lost Row And Col in IDE

    AFAIK these info shown only in Standard toolbar not custom one, to check go to View menu> Toolbars, the Standard must be checked.
  38. Replies
    10
    Views
    391

    Re: Lost Row And Col in IDE

    Be sure you are opening code editor window not form designer because that space show coordinate info while form designer window is active.
  39. Replies
    10
    Views
    391

    Re: Lost Row And Col in IDE

    Don't reset the Toolbar but move some buttons to another custom toolbar until the Row and Col indicators appear.
  40. Re: auto tab and cmd click when pressing enter key

    Start with this code


    Private Sub TextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyDown
    If e.KeyCode < Keys.D0 OrElse e.KeyCode > Keys.D9 Then
    ...
Results 1 to 40 of 498
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.