Search Results - VBForums

Search:

Type: Posts; User: 4x2y

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    20
    Views
    280

    Re: Removing text from several files

    Did you tried my code (post #14)? If not, please give it a try.

    For test purpose
    1- Start new project
    2- Paste my code (post #14)
    3- Copy the file "C:\reports\ASUS-LT-02.csv" to...
  2. Replies
    3
    Views
    122

    Re: Multi-Document Forms

    You can, here is an example running Notepad inside MDIForm

    Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
    Private Declare Function...
  3. Replies
    11
    Views
    221

    Re: [RESOLVED] Why does this work?

    In general, the file extension does not reflect its content as this extension is used by the system to find out which programs open this file when you double click on it and which icon to use for...
  4. Replies
    11
    Views
    221

    Re: Why does this work?

    It is not EXE file but it is just plain text file with EXE extension.

    IO.File.WriteAllLines writes plain text to the file name you specified regardless of its extension or even if it hasn't...
  5. Thread: Delimiter issue

    by 4x2y
    Replies
    7
    Views
    151

    VS 2013 Re: Delimiter issue

    Declaring a property with predefined default value doesn't mean you can't change it later in any place of your code, but it is ensure that your code will work properly even if you forget to set that...
  6. Replies
    20
    Views
    280

    Re: Removing text from several files

    Try the following

    Private Sub RemoveLine(strCsvFile As String, strSimilarFile As String)
    Dim j As Integer
    Dim k As Integer
    Dim strCsvFileLines() As String
    Dim...
  7. Thread: Delimiter issue

    by 4x2y
    Replies
    7
    Views
    151

    VS 2013 Re: Delimiter issue

    You can specify the default value while declaration, so you don't have to set it each time you instantiate the class, like this

    Private _Delimiter As String = Chr(20)
    Public Property...
  8. Replies
    3
    Views
    141

    Re: How can I change color

    TextBox control cannot show different color for each word but RichTextBox control can.

    Where all of other words displayed?
  9. Replies
    1
    Views
    157

    VS 2013 Re: vb.net Tabcontrol with custom shape

    See this http://www.codeproject.com/Articles/91387/Painting-Your-Own-Tabs-Second-Edition
  10. Re: ListView won't accept Columnheaders or any commands.

    Try something like this

    With ListView1
    Dim strData As String
    Dim sData() As String
    Dim i As Byte


    Open "C:\Data.csv" For Input As #1...
  11. Re: ListView won't accept Columnheaders or any commands.

    There is no property to Show/Hide a column, so add columns for data you want to show only

    Or set width of the column you want to hide to 0 ListView1.ColumnHeaders(2).Width = 0
  12. Re: ListView won't accept Columnheaders or any commands.

    It is named View in the property page

    To change by code use ListView1.View = lvwReport
  13. Re: ListView won't accept Columnheaders or any commands.

    Are these projects on the same machine with un-working ListView?

    Do you receive any error?
  14. Replies
    1
    Views
    133

    Re: SendKeys to Chrome

    Try

    My.Computer.Keyboard.SendKeys("danger")
  15. Replies
    8
    Views
    193

    VS 2012 Re: Ballon ToolTip in TextBox

    I was think the ToolStripTextBox1 is inside ToolStrip control, all you need is replace ToolStrip1 with ContextMenuStrip1


    Private Sub ToolStripTextBox1_TextChanged(sender As Object, e As...
  16. Replies
    8
    Views
    193

    VS 2012 Re: Ballon ToolTip in TextBox

    Post your code to review!
  17. Replies
    8
    Views
    193

    VS 2012 Re: Ballon ToolTip in TextBox

    I have tested the code before posting, it is work without any error!
  18. Replies
    8
    Views
    193

    VS 2012 Re: Ballon ToolTip in TextBox

    Private Sub ToolStripTextBox1_TextChanged(sender As Object, e As EventArgs) Handles ToolStripTextBox1.TextChanged
    If ToolStripTextBox1.Text.Length > 0 AndAlso Not...
  19. Replies
    2
    Views
    141

    VS 2012 Re: Config "GetAsyncKeyState"

    To do this you have to register system wide hotkey, see this http://www.codeproject.com/Articles/4345/NET-system-wide-hotkey-component
  20. Replies
    4
    Views
    214

    Re: Read specific fragment of XML

    To get node's value using its name

    Dim n As Xml.XmlElement= xDoc.SelectSingleNode("//item")

    Label1.Text = n.Item("Title").InnerText
    Label2.Text = n.Item("Author").InnerText
  21. Replies
    4
    Views
    214

    Re: Read specific fragment of XML

    XmlNode has ChildNodes property which you can use




    Dim n As Xml.XmlNode = xDoc.SelectSingleNode("//item")

    Label1.Text = n.ChildNodes(0).InnerText
    Label2.Text = n.ChildNodes(1).InnerText
  22. VS 2013 Re: [RESOLVED] Reporting Backgroundworker Progress in a user defined Subroutine

    Nice!

    BTW: i did a mistake, no need to cast sender because it is not passed as Object

    Sub MySub(worker As System.ComponentModel.BackgroundWorker, Var1 As String, Var2 As String)

    ...
  23. Replies
    4
    Views
    214

    Re: Read specific fragment of XML

    Select all nodes of type <item>

    Dim xNodeList As Xml.XmlNodeList
    Dim xDoc As Xml.XmlDocument = New Xml.XmlDocument
    xDoc.Load("path\to\xml\file")
    xNodeList =...
  24. VS 2013 Re: Reporting Backgroundworker Progress in a user defined Subroutine

    Pass BackgroundWorker to your sub


    Option Strict On
    Option Explicit On

    Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    ...
  25. Replies
    4
    Views
    147

    Re: No progress with progress bar

    Try to add My.Application.DoEvents() inside For...Next loop
  26. Re: Listbox items to text boxes - Help.

    Dim x As Integer
    'set of textboxes
    For x = 0 To txtVal.UBound
    txtVal(x).Text = List1.List(x)
    Next


    Be sure List1 contains items >= txtVal.UBound
  27. Re: Expand Treeview using Background Worker

    Nice to here that,
    Final step, mark this thread as RESOLVED :)
  28. Re: Expand Treeview using Background Worker

    Try this, i hope it works for you!
    Option Strict On
    Option Explicit On

    Public Class Form1

    Private Sub TreeView1_AfterSelect(sender As Object, e As TreeViewEventArgs) Handles...
  29. Re: Expand Treeview using Background Worker

    The same list with showing the progress of the background operation.


    Option Strict On
    Option Explicit On

    Imports System.IO
    Imports System.ComponentModel

    Public Class Form1
  30. Re: Expand Treeview using Background Worker

    @UCPocoAPoco

    Here is a working list demonstrate how to call PopulateChildNodes from BackgroundWorker1_DoWork, try to adapt this code to work with your project.

    Option Strict On
    Option Explicit...
  31. Replies
    23
    Views
    1,319

    Re: Help with multiple groups of text boxes

    Of course, there is, press Ctrl+F and change search scope to Entire Solution
  32. Replies
    23
    Views
    1,319

    Re: Help with multiple groups of text boxes

    You need to debug your code to see if all items of the values array are not refer to any textbox other than F2TOTALxxTOTAL



    Dim txt As TextBox
    For j = 0 To values.Length - 1
    ...
  33. Replies
    23
    Views
    1,319

    Re: Help with multiple groups of text boxes

    The wrong isn't in this code, but it seems that you didn't set the Tag property of the new TextBox controls you added, Read my post #15 again.
  34. Replies
    5
    Views
    232

    Re: Strange Graphic has appeared in a form!

    It seems to be the Form's picture, check the Form's picture property!
  35. Replies
    1
    Views
    105

    VS 2010 Re: Big problem about sendkeys

    MSDN says here https://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys(v=vs.110).aspx


    And suggest
  36. Replies
    2
    Views
    704

    Re: shellsort and selectionsort code help

    There are many sorting methods here in addition to ShellSort and SelectionSort.
  37. Replies
    1
    Views
    171

    VS 2013 Re: [RESOLVED] File does not exist?

    What if you have the correct file name & extension but the file is really not exist?

    When dealing with file it is recommended to always check if it is exist or not to prevent exception


    If...
  38. Replies
    15
    Views
    1,051

    VS 2010 Re: TreeView node drag/drop help

    To restrict Drag&Drop for a node, you have to save extra info about it in its Tag or Name property while populating, e.g. to prevent number node from being parent to another node, add something like...
  39. Re: Basic Tutorial/Book about API windows using VB6

    And this one, you will find there two excellent programs API-Guide & ApiViewer
  40. Replies
    1
    Views
    232

    Re: How to exit from one loop in VBA?

    Convert Read sub to function that return value indicate if you reach EOF or not, something like this


    Private Sub Form_Load()
    For j = 1 To 100
    For i = 1 To 3
    If Read =...
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.