Search Results - VBForums

Search:

Type: Posts; User: 4x2y

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: order column in listview with name and surname....

    You can reorder header column like this

    ListView1.ColumnHeaders(6).Position = 7


    This will change the column's display order only not the column's index
  2. Replies
    13
    Views
    292

    VS 2008 Re: PictureBox Or Panel

    It is better to draw in a Bitmap then assign it to picPlotter.Image, here is an example


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

    Dim w As...
  3. Replies
    13
    Views
    292

    VS 2008 Re: PictureBox Or Panel

    I think this line frm3DPlot.picPlotter.Image = Nothing cause the problem, why it is there?

    Try to comment it and see if it make a difference.
  4. Replies
    1
    Views
    170

    Re: Directory listing in listbox

    Dim files() As String = IO.Directory.GetFiles("C:\Windows", "*.exe", IO.SearchOption.AllDirectories)

    ListBox1.Items.AddRange(files)
  5. Replies
    3
    Views
    163

    Re: [RESOLVED] Check status of download

    What are you using for downloading?
  6. Replies
    3
    Views
    254

    VS 2010 Re: Convert VB6 code to VB2010

    Take a look at File class ReadAllBytes method
  7. Replies
    4
    Views
    234

    Re: fonts & size in textbox

    Please mark this thread as RESOLVED and rate my post :)
  8. Replies
    4
    Views
    234

    Re: fonts & size in textbox

    You can use the form property ActiveControl to know which control has the focus

    Me.ActiveControl.Font.Name = "Courier New"
    Me.ActiveControl.Font.Size = Me.ActiveControl.Font.Size + 4...
  9. VS 2013 Re: Opening a file type automatically when selecting a folder

    Here is a code you can start with, create new project, add Button1 and ListBox1 to Form1

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

    ...
  10. Replies
    15
    Views
    350

    Re: working on text boxes

    This error comes from different part, maybe the part where you query from the data base
    https://support.microsoft.com/en-us/kb/966148
  11. Replies
    2
    Views
    164

    VS 2010 Re: Starting my Application with an info file

    If you want to register your own file extension and open it with your program when double click in Windows Explorer, read this
  12. Re: Checking for existing open MIDChild Forms?

    Add the following function to the MDI form and call it with the form you want to check if is open or not.

    Private Function IsFormOpen(frm As Form) As Boolean

    Dim blnRet As Boolean
    ...
  13. Replies
    6
    Views
    268

    Re: Adding special characters

    @dilettante Alt+ number usually used to type Unicode symbol in a text

    To test, open Notepad and press Alt+1 to type smile face, but if you pressed Alt+1 in VB6 TextBox control, it will type...
  14. Replies
    6
    Views
    268

    Re: Adding special characters

    Special characters are in Unicode format and built-in VB6 controls cannot show, they are replaced with ?

    Search Google for vb6 unicode controls
  15. Replies
    15
    Views
    350

    Re: working on text boxes

    Something like this


    Private Sub Command1_Click()
    Static sn As Long
    sn = sn + 1
    Text3.Text = Text1.Text & Text2.Text & " " & sn
    End Sub
  16. Replies
    1
    Views
    384

    Re: VB.NET IntelliSense Property Snippet

    Thanks dday9

    In addition to manual editing there is a Snippet Editor which make it much easier.
  17. Replies
    12
    Views
    378

    Re: How to call keyboard buttons

    You can, but you must ensure the focus don't goes to any Button by adding a TextBox control out of screen and always make it focused

    Try this

    Private Sub Form_Load()
    Me.KeyPreview = True
    ...
  18. Replies
    12
    Views
    378

    Re: How to call keyboard buttons

    You have to set form's KeyPreview property to True so that it receive the pressed key before any control, also use different key than vbKeyReturn because any focused Button receive vbKeyReturn before...
  19. Replies
    12
    Views
    403

    VS 2015 Re: [Student] Sorting Array help needed.

    This line Dim intpositie(1000) As Integer declares an array of 1000 items each one is 0
    The best solution is ReDim Preserve the array each time you enter new number, by this way the array will...
  20. Replies
    12
    Views
    403

    VS 2015 Re: [Student] Sorting Array help needed.

    Clear the ListBox.Items before filling with the sorted array


    Array.Sort(intpositie)

    lstNummers.Items.Clear() ' Delete previous entries

    lstNummers.DataSource =...
  21. Thread: masked Control

    by 4x2y
    Replies
    1
    Views
    158

    Re: masked Control

    Use IsDate function
  22. Replies
    6
    Views
    311

    VS 2012 Re: Need help with bank charges homework

    Quick note, the following check will never be True

    'calculate for 60 or more checks
    If decChecksWritten = 60 And decChecksWritten > 60 Then
    lblTotal.Text =...
  23. Re: Creating a MessageBox in a Windows 8 Store app - Sample

    I think it is limited to two buttons only for mobile apps because the device's Back button is used to cancel the message box.
  24. Re: Creating a MessageBox in a Windows 8 Store app - Sample

    I built and tested this on Windows 10 using Visual Studio 2015, as a Universal Windows app running on Lumia 640 XL phone, only message box with two buttons can be shown, if three buttons specified,...
  25. Re: user Selecting an Item in treeview?

    Please mark this thread as RESOLVED (from above thread tools menu) this helps others to find working solution, also rate my post :)
  26. Thread: Move RTB

    by 4x2y
    Replies
    4
    Views
    243

    VS 2013 Re: Move RTB

    So, you need to use SplitContainer, add one to your form, drop RichTextBox in right panel and the other control to the left panel.
  27. Thread: Move RTB

    by 4x2y
    Replies
    4
    Views
    243

    VS 2013 Re: Move RTB

    You can use Dock property RichTextBox1.Dock = DockStyle.Fill

    Also there are some containers you can use to build your form layout e.g. SplitContainer, TableLayoutPanel and FlowLayoutPanel
  28. Re: user Selecting an Item in treeview?

    The simplest method

    Private Sub TreeView1_AfterSelect(sender As Object, e As TreeViewEventArgs) Handles TreeView1.AfterSelect
    If e.Node.Text = "July" Then
    ...
  29. Re: Adding picture boxes in a panel at runtime

    To populate five picture box, you have to create new instance of the picBox inside the loop not outside as you did.

    private void button1_Click(object sender, EventArgs e)
    {
    ...
  30. Re: How to make A Circular or round Eserform

    Please mark this thread as RESOLVED (from above thread tools menu) this helps others to find working solution, also rate my post :)
  31. Re: How to make A Circular or round Eserform

    Try this

    Option Explicit
    Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
    Private Declare Function CreateEllipticRgn...
  32. Replies
    9
    Views
    431

    Re: Richtextbox searching.... extended

    Here, the last line is selected to the end, i don't know what is going in your machine!
  33. Replies
    9
    Views
    431

    Re: Richtextbox searching.... extended

    Try this

    Private Sub highlightLineContaining(rtb As RichTextBox, line As Integer, search As String, search2 As String, color As Color)
    Dim i As Integer = rtb.Text.IndexOf(search) '...
  34. Replies
    9
    Views
    431

    Re: Richtextbox searching.... extended

    Try this


    Private Sub highlightLineContaining(rtb As RichTextBox, line As Integer, search As String, search2 As String, color As Color)
    Dim i As Integer = rtb.Text.IndexOf(search)
    ...
  35. Replies
    12
    Views
    535

    Re: SendKeys on Facebook

    ChrW accept codes range 0~65535 (0~&HFFFF)

    Windows charmap.exe also accepts entering only 4 digits hex, so I don't know how to send these big code
  36. VS 2013 Re: [RESOLVED] Where is VB.NET's start bar shortcut EXE stored?

    The exe itself located here

    C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe

    Replace 14.0 with your version
  37. Replies
    12
    Views
    535

    Re: SendKeys on Facebook

    Wait param is boolean not period, so setting it to 50 hasn't any meaning.

    Add Text box to your form, type the emoji code and use the following code to send it


    SendKeys ChrW(Val("&H" &...
  38. Replies
    12
    Views
    535

    Re: SendKeys on Facebook

    It is not difficult, SendKeys send stroke to the active window, so first activate Facebook field you want to write in then minimize your program window then sendKeys

    Private Sub Command1_Click()
    ...
  39. Re: Return only the last three characters after a specified phrase in a string

    Dim code As String = inputstr.Substring(inputstr.LastIndexOf("(Code: ") + 7, 3)

    7 is the length of "(Code: " and 3 is number of the wanted digits
  40. Replies
    12
    Views
    447

    VS 2013 Re: Label Backcolor Transparent

    The following code should work at run time


    Label1.FlatStyle = FlatStyle.Standard
    Label1.BackColor = Color.Transparent
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.