Search Results - VBForums

Search:

Type: Posts; User: 4x2y

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: Form Caption is Centered on 8.1, yet left aligned on 7

    Windows 8 shows all app's titles centered, maybe changing theme can make a difference, i'm using Win 7 so i cannot test.
  2. Re: How do I highlight the next item in a ListView after removing the preceeding one?

    My code handle this situation and will never cause any error, try it without modification and see.
  3. Re: How do I highlight the next item in a ListView after removing the preceeding one?

    Try this



    Private Sub cmdDelete_Click()
    If lstBatch.ListItems.Count > 0 Then
    If vbYes = MsgBox("Are you sure you want to delete the selected item?", vbQuestion + vbYesNo, "") Then
    Dim...
  4. VS 2012 Re: Treeview Nodes' images not changing

    TreeNode class has two properties regarding image, ImageIndex and SelectedImageIndex, for each node you have to set them to image indexes you want to show when the node selected or not, the TreeView...
  5. VS 2013 Re: Dynamically loading a control array? Trying to make Whack the Mole game.

    Search Google for vb net control array, you will get many results discuss how to handle control array in VB NET
    Ex: http://msdn.microsoft.com/en-us/library/aa289500(v=vs.71).aspx
  6. Thread: Split a sentence

    by 4x2y
    Replies
    9
    Views
    242

    Re: Split a sentence

    Yes,

    Dim a = s.Split({"delimiter"}, StringSplitOptions.None)
    return the same result as VB6 Split

    Thanks!
  7. Thread: Split a sentence

    by 4x2y
    Replies
    9
    Views
    242

    Re: Split a sentence

    I cannot figure out how to make NET Split return the same result as Vb6 Split with the given example

    "A delimiter B delimiter C delimiter D delimiter i delimiter R"

    VB6 Split return "A B C D i...
  8. Thread: Split a sentence

    by 4x2y
    Replies
    9
    Views
    242

    Re: Split a sentence

    Split function can help when delimiter is two or more chars


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim s As String = "A delimiter B...
  9. Replies
    7
    Views
    317

    Re: Hello, i need help about Excel files

    Try the attached project, it is open a sample file and read the content of column A then display with Chart control.

    Note:
    * Excel 2007 or later must be installed in your machine.
    * The project...
  10. Replies
    6
    Views
    260

    Re: How to create a TextBox array ?

    Select the text box control and Copy then Paste as many as you want.
  11. Replies
    9
    Views
    292

    Re: Splitting text file by number of lines

    Split function has optional param limit you can set it to number of lines you want.
  12. VS 2010 Re: How to read file.txt with specific group of multiple line & view in the textbox

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    Dim xread As System.IO.StreamReader
    Dim line As String
    xread =...
  13. VS 2010 Re: How to read file.txt with specific group of multiple line & view in the textbox

    Try this

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    Dim xread As System.IO.StreamReader
    Dim line As String
    xread...
  14. VS 2013 Re: I need to get my tree view to download a file for each node thats selected ...VB

    Save the image URL in node Tag property and use ImageLocation to show it and Image.Save to save

    Here is a working sample to start with.


    Public Class Form1

    Private Sub Form1_Load(sender...
  15. Re: Unable to add OK/No button to existing Msg Box in Excel 2010

    Use IF statement with MsgBox


    If MsgBox("Do you wish to Continue?", vbOKCancel) = vbOK Then
    ' enter the workbook.
    Else
    ' close the workbook.
    End If
  16. Replies
    1
    Views
    138

    Re: Selected Listbox Item to Textbox

    Private Sub ListBox1_Click()
    TextBox1.Text = ListBox1.List(ListBox1.ListIndex)
    End Sub
  17. VS 2012 Re: How to handle ToolStripBar Layout?

    This is what the ToolStrip control do by default! when the form resized and there isn't enough space to show all button, a dropdown button appears which show the hidden buttons as menu.

    Yo can...
  18. VS 2013 Re: HowTo Show The Real Selected File Name from OpenDialog1 in a TextBox1?

    To know where is your app folder use My.Application.Info.DirectoryPath, so yo can try

    My.Computer.FileSystem.MoveFile(TextBoxX1.Text, _
    ...
  19. VS 2013 Re: HowTo Show The Real Selected File Name from OpenDialog1 in a TextBox1?

    What do you mean by real name?

    Your file name is BestVBForums.txt from where you get BestOfForums?
  20. Replies
    5
    Views
    262

    VS 2008 Re: Undo listview column reordering

    Play with this code

    Private Sub ListView1_ColumnReordered(sender As Object, e As ColumnReorderedEventArgs) Handles ListView1.ColumnReordered
    If e.OldDisplayIndex >= 3 AndAlso...
  21. Thread: vb6 and XML

    by 4x2y
    Replies
    5
    Views
    277

    Re: vb6 and XML

    I think it is installed in all versions of windows.
  22. Thread: vb6 and XML

    by 4x2y
    Replies
    5
    Views
    277

    Re: vb6 and XML

    You need to use one of msxml.dll versions
  23. Re: No Control Arrays a showstopper? (Visual Studio/Visual Basic Express 2013)

    Creating Control Arrays in Visual Basic .NET
  24. Replies
    40
    Views
    2,258

    Re: Array Help

    You must use Try...Catch inside your decrypt code
  25. Replies
    11
    Views
    1,035

    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.
  26. Replies
    16
    Views
    2,778

    Re: vb6 MultiThreading ?

    check this and this
  27. 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
  28. Replies
    4
    Views
    434

    Re: Get Focused Application Name

    Use GetForegroundWindow function then use returned handle with GetWindowModuleFileName function
  29. 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...
  30. Replies
    6
    Views
    376

    Re: Concatenation's, is this possible?

    Why?

    Check url variable, it may contains different pattern!
  31. Replies
    6
    Views
    376

    Re: Concatenation's, is this possible?

    Use Like operator



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

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

    try


    s = Replace(s, reza & vbNewLine, "")
  33. 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!
  34. 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))
  35. Replies
    1
    Views
    210

    VS 2010 Re: Open program in background from VB

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

    Why using API not lvSearch.ListItems.Add method?
  37. 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
  38. 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
  39. Replies
    2
    Views
    274

    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
    ...
  40. Replies
    8
    Views
    449

    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"
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.