Search Results - VBForums

Search:

Type: Posts; User: 4x2y

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. VS 2013 Re: Determine whether Hibernate is enabled or not

    No, it is not always there because Windows delete "hiberfil.sys" when hibernate disabled to free disk space.

    Anyway getting hibernate status from the registry is better.
  2. VS 2013 Re: Determine whether Hibernate is enabled or not

    Dirty code :)

    If File.Exists("hiberfil.sys") Then
    ' hibernate enabled
    Else
    ' hibernate disabled
    End If

    hiberfile.sys always on boot drive and cannot move elsewhere...
  3. Replies
    3
    Views
    182

    Re: Cancel System Mouse Click

    Run your Exe as admin
  4. Replies
    2
    Views
    185

    VS 2013 Re: Listview + IO.StreamReader

    First column is Subitem(0), so to skip it use For...Next instead of For Each



    For Each item As ListViewItem In Me.ListView1.Items
    line = ""
    For j = 1 To...
  5. Re: How to set a double value in the NumericUpDown

    Set NumericUpDown's property DecimalPlaces to value greater than 0
  6. Replies
    2
    Views
    213

    Re: Edit Automatic Date picker

    You cannot disable them, but you can prevent choosing Sun and Sat days

    The following code jump to Mon when choosing Sun or Sat

    Private Sub DTPicker1_Change()
    If Weekday(DTPicker1.Value,...
  7. Replies
    12
    Views
    315

    Re: Alternative to .wav files?

    I always run VB6.exe elevated, but i have to run it as admin when it requires to access the registry to register a component. (easier than using regsvr32.exe :))
  8. Replies
    12
    Views
    315

    Re: Alternative to .wav files?

    I frequently receive this error, to solve i run VB6.exe as admin so that it can access the registry.
  9. Replies
    12
    Views
    315

    Re: Alternative to .wav files?

    Use MMControl to play mp3
  10. Replies
    12
    Views
    315

    Re: Alternative to .wav files?

    As far as file size is matter, mp3 will be better.

    when converting .wav to .mp3 choose Bitrate 320 kbps for best acceptable result.

    See wav vs mp3
  11. Replies
    5
    Views
    247

    Re: I have a problem when re-sizing a form.

    Can you post your form or screen shoot of it?

    I have tested TPL (9 columns 50% each x 6 rows 50% each) when resize, all cells remains equal size.
  12. Replies
    43
    Views
    1,113

    Re: What are you listening right now?

    I'm listening to the song of comet 67p
  13. Re: Why does my app close after I click this button?

    Pyth007 post time 10:28 PM
    4x2y post time 10:28 PM

    :D
  14. Re: Why does my app close after I click this button?

    just a note, your code starts with Me.Visible = False but there is no Me.Visible = True at the end.
  15. Replies
    1
    Views
    199

    VS 2013 Re: Filter and Removing strings from list box

    Replace For Each with reverse loop, because removing item inside For Each loop cause it fail.

    For Each item In ListBox2.Items
    If item.ToString.Contains("@") Or...
  16. Re: Creating rounded corners for a label control?

    Use the code in this article

    to adapt it for Label, add Inherits Windows.Forms.Label just below Public Class UserControl1
  17. VS 2010 Re: Text in two colors in the same item of one ListView

    You cannot if COMMAND & HIC are in the same column, but if they are in different column then try


    Dim lvi As ListViewItem

    lvi = ListView1.Items.Add(New ListViewItem({"COMMAND",...
  18. VS 2008 Re: new to visual basic problem with if condition

    Another implementation


    Option Strict On
    Option Explicit On

    Public Class Form1

    Private AR As New List(Of String)
    Private EN As New List(Of String)
  19. Re: Back to Basics-Resizing Shapes and Images

    Set Stretch property to True
  20. Re: Back to Basics-Resizing Shapes and Images

    I don't understand why you are concern about TabIndex when resizing?

    Try this simple code, it works with all controls except Line because it doesn't have Width, Height, Left and Top properties.
    ...
  21. 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.
  22. 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.
  23. 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...
  24. 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...
  25. 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
  26. Thread: Split a sentence

    by 4x2y
    Replies
    9
    Views
    319

    Re: Split a sentence

    Yes,

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

    Thanks!
  27. Thread: Split a sentence

    by 4x2y
    Replies
    9
    Views
    319

    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...
  28. Thread: Split a sentence

    by 4x2y
    Replies
    9
    Views
    319

    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...
  29. Replies
    7
    Views
    400

    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...
  30. Replies
    6
    Views
    305

    Re: How to create a TextBox array ?

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

    Re: Splitting text file by number of lines

    Split function has optional param limit you can set it to number of lines you want.
  32. 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 =...
  33. 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...
  34. 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...
  35. 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
  36. Replies
    1
    Views
    152

    Re: Selected Listbox Item to Textbox

    Private Sub ListBox1_Click()
    TextBox1.Text = ListBox1.List(ListBox1.ListIndex)
    End Sub
  37. 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...
  38. 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, _
    ...
  39. 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?
  40. Replies
    5
    Views
    296

    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...
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.