Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 2.95 seconds.

  1. VS 2019 Re: While in DesignMode drag Item on Control and then Programmatically add another.

    Custom Events and RaiseEvent

    (In your custom control)


    Class MyControl

    Public Event MyEvent(ByVal AParameterIWantToSend As TheTypeOfThisParameter, ByVal AnotherParmeter As AnotherType,...
  2. Re: Any better method to incorporate particular Range from Excel Sheet to ListView

    You asked if there was a better way than that you’re using, which is exactly what ChrisE has given you…
  3. Re: how to transfer list box data to datagridview in vb2019

    Show us your code, then we can show you how to filter your dgv data or even construct your dgv data based on selections in your listboxes
  4. Re: An Ideal option required instead of Listbox. Coud you suggest

    You can query an Excel Worksheet with SQL, then bind it to the DataGridView
  5. Re: An Ideal option required instead of Listbox. Coud you suggest

    The ListView is not the best choice for displaying from a database. The ListView is a display control, but the DataGridView is designed to be used with databases. There are plenty of properties you...
  6. Replies
    5
    Views
    197

    Re: Discovering non-ascii codes in text files

    They’re not non-ascii codes. They are unrecognised characters or characters that have no text representation…
  7. Thread: Save question

    by .paul.
    Replies
    2
    Views
    144

    VS 2010 Re: Save question

    Application settings consumes two files: <app>.exe.config and user.config, where app is the name of your Windows Forms application. user.config is created on the client the first time your...
  8. VS 2019 Re: How to do calculation using radio button and check box?

    Try this...


    Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click

    Dim intCount As Integer = grpSubject.Controls.OfType(Of...
  9. Replies
    5
    Views
    238

    VS 2019 Re: Running time of Active Application...

    Public Declare Function GetActiveWindow Lib "user32.dll" () As IntPtr


    Dim proc As Process = Process.GetProcessById(CInt(GetActiveWindow))
  10. Replies
    5
    Views
    238

    VS 2019 Re: Running time of Active Application...

    Dim myProcessList As Process() = Process.GetProcesses

    For Each myProcess As Process In myProcessList

    If myProcess.MainWindowTitle <> "" Then

    Dim myListView As ListViewItem =...
  11. Replies
    5
    Views
    238

    VS 2019 Re: Running time of Active Application...

    Try this...



    Dim proc As Process = Process.GetCurrentProcess
    Dim ts As TimeSpan = Now - proc.StartTime
    MsgBox($"Uptime = {ts.Hours:00}:{ts.Minutes:00}:{ts.Seconds:00}.{ts.Milliseconds}")
  12. Re: An Ideal option required instead of Listbox. Coud you suggest

    The ListView control can be used as a multi-column ListBox. Set the View property to Details.
    Google it for an example...
  13. Re: Refining AutoComplete Search Combobox from VBA Excel to VB.Net 19 with 2 question

    GC = Garbage Collector
    You don't need to worry what that code does. Just use it as provided and it'll work. I'll tell you though, it's about disposing used objects and freeing up memory.
  14. Replies
    5
    Views
    272

    Re: Datagridview to multiple textbox

    For the TextBoxes, you could use a 2D Array, but as JM said, we need to see the progress you have made, then we can advise how to change your code.
    Show us the code that loads the TextBox, tell us...
  15. VS 2019 Re: [RESOLVED] [Vb.net] Split text from txt file and get second value

    It's Skip(1) that avoids the 'echo' part. FirstOrDefault takes the second element if it exists
  16. VS 2019 Re: [Vb.net] Split text from txt file and get second value

    For Each line As String In System.IO.File.ReadLines(sfilename)
    ' Display the line.
    Dim execommand = line 'already is a string
    Dim run As String
    ' Console.WriteLine("-- {0}", line)...
  17. VS 2019 Re: [Vb.net] Split text from txt file and get second value

    result = line.split()(1) ' this would cut the word echo from the beginning correctly, but it'll fail if the split returns 1 or 0 elements

    Try...


    result = line.split().LastOrDefault
  18. Re: Creating a New Project in Vb.net 2019 for Excel

    Looks like you didn't add the reference...
  19. Re: Creating a New Project in Vb.net 2019 for Excel

    In case you missed it, option 2 is what JM recommended
  20. Replies
    6
    Views
    257

    Re: Updating String() va;ues

    So, you loop through your string array, changing every filename? Why not also change the string array element at that point? Don't use a For Each loop...
  21. Replies
    8
    Views
    392

    Re: Multithreading and timer

    Ok. Why do you need the timer?
  22. Replies
    6
    Views
    584

    VS 2019 Re: vb webview2 new window

    As jm told you, he doesn't know anything about the control you're using. Myself, i'd never heard of it before this thread. That's why you're not getting any answers... No-one has used the webview2...
  23. Replies
    19
    Views
    651

    Re: listbox to richtextbox

    Try this.

    instead of...


    ListBox1.SelectedItem.ToString()

    Use...
  24. VS 2019 Re: [VB.NET] Windows 8 Start Menu Mimic

    https://stackoverflow.com/questions/4307616/listview-text-is-truncated-how-do-i-display-the-entire-text-of-an-item

    https://stackoverflow.com/questions/2701263/get-the-icon-for-a-given-extension
  25. Replies
    19
    Views
    651

    Re: listbox to richtextbox

    ListBox1.SelectedValue is an Object containing a string. Hence the cast...
  26. Replies
    19
    Views
    651

    Re: listbox to richtextbox

    The problem also is ListBox1.SelectedItem is the filename. You need the full path
  27. Replies
    4
    Views
    289

    VS 2019 Re: Running the program???

    Windows Form App (.Net Framework) - that's winforms
  28. Replies
    4
    Views
    289

    VS 2019 Re: Running the program???

    Looks like you've developed a project in .Net Core? That has similar problems to what you're describing. You need to develop a WinForms project
  29. Re: [RESOLVED] visual studio 2017 loop in arraylist not working

    That probably needs a loop step increment of 3 too...
  30. Re: [RESOLVED] visual studio 2017 loop in arraylist not working

    This is a more efficient way to write it...


    LsvwAppList.BeginUpdate()
    Dim items As New List(Of ListViewItem)

    For i As Integer = 0 To NewOrdersfromwebservice.Count - 3
    Dim item As New...
  31. Replies
    3
    Views
    202

    Re: vb.net 2012, set dword value

    Which registry hive is your DWORD value located in? Unless it’s HKEY_CurrentUser, you’ll probably need to give your app admin privileges.
  32. VS 2015 Re: [RESOLVED] Go to text box when button pressed

    :D Claim-jumper :D



    :thumb:
  33. VS 2013 Re: Bingo game: 2D Array and unique random numbers

    This is my solution. I think this is the UK Version...


    Public Class NumberUtilities
    Public Shared Function baseNumbers() As Dictionary(Of Integer, List(Of Integer))
    Dim numbers As...
  34. VS 2013 Re: Bingo game: 2D Array and unique random numbers

    Looks like that allows duplicates?
  35. VS 2010 Re: [RESOLVED] two events occur in the same time which will occur first

    I still use VS2008 regularly. Never liked VS2010, but i have the full pro version in my desk drawer. But, I also use VS2012, VS2015, VS2017, and VS2019
  36. VS 2015 Re: Go to text box when button pressed

    It depends on what type of messagebox you're using... Ok. YesNo, OkCancel, etc
    To select a textbox (named TextBox1)...


    TextBox1.Select
  37. Re: placing shapes in excel using vb.net 2010

    Looks to me that it's a VB.Net question
  38. Replies
    3
    Views
    298

    VS 2012 Re: Need help rewriting a jpg save

    Try...



    Dim bmp As Bitmap
    Dim bmpSave As Bitmap

    bmp = drawImage() ' function than returns a bitmap

    If something Then
  39. Re: Convert from 24hr time in db to 12hr time in program

    Try this...



    Dim dt As TimeSpan = TimeSpan.Parse("16:01:00")
    Dim dateTime = New DateTime(dt.Ticks)
    Dim formattedTime = dateTime.ToString("h:mm:ss tt", CultureInfo.InvariantCulture)...
  40. Replies
    9
    Views
    359

    Re: Nested loop on mutiple combo box

    ComboBox1.SelectedIndex = ComboBox1.FindStringExact(TXB_CODE_ING.Text)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width