Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 3.02 seconds.

  1. 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)...
  2. Replies
    9
    Views
    130

    Re: Nested loop on mutiple combo box

    ComboBox1.SelectedIndex = ComboBox1.FindStringExact(TXB_CODE_ING.Text)
  3. Replies
    9
    Views
    130

    Re: Nested loop on mutiple combo box

    if Array.IndexOf(handleOptions, TXB_CODE_ING.Text) > -1
  4. Re: [RESOLVED] Reflection getting property names returns base class properties last

    Virtual Rep only at the moment :thumb:
  5. Re: Reflection getting property names returns base class properties last

    Your GetDeclarationDepth extension was very useful. Thanks
  6. Re: Reflection get default property value set at design time

    Nevermind... I changed it to a constant. Now have the class names in the right order.
  7. [RESOLVED] Reflection getting property names returns base class properties last

    Iím using reflection to get the properties from 10 concrete classes that either directly or through inheritance, implement an interface. The properties are returned with the sub type properties...
  8. [RESOLVED] Reflection get default property value set at design time

    I have this code...


    Dim instances = From t In Assembly.GetExecutingAssembly().GetTypes()
    Where t.GetInterfaces().Contains(GetType(Shape2D))
    ...
  9. VS 2019 Re: Using a menu item to clear everything, but text in a textbox

    myTextBox.Text = New String(myTextBox.Text.Where(Function(ch) Char.IsLetterOrDigit(ch) OrElse ch = " "c OrElse ch = vbcr OrElse ch = vblf).ToArray())
  10. VS 2019 Re: VB.Net - How do I make a 'TopMost' toggle button with a checkbox?

    TopMost refers to the z-order of controls. Do you mean the top item in a menu???
  11. VS 2019 Re: VB.Net - How do I make a 'TopMost' toggle button with a checkbox?

    If you think you havenít described it accurately, perhaps you need to explain the situation more clearly... Where does the menu come into it?
  12. Re: Large Listbox Causing Performance Issues & Avoid Control Flickerings

    Don't add your items individually. Every time you add to the ListBox it's redrawn. if you don't open your second tab, performance is better because, graphically, the controls on the second tab...
  13. Replies
    5
    Views
    241

    VS 2019 Re: Separateing strings

    Dim newString as String = oldString.SubString(0, oldString.indexOf(ď-ď))
  14. Replies
    2
    Views
    185

    VS 2019 Re: ContextMenuStrip stay displayed

    Are you opening a new or existing text file? You can create or edit text files in code without opening a notepad window and pasting...
  15. Replies
    18
    Views
    460

    VS 2019 Re: Create a List for multiple entries

    Yes. That sounds like a better plan. A Dictionary(of String, List(of String))
  16. Replies
    18
    Views
    460

    VS 2019 Re: Create a List for multiple entries

    But the OP wants a List(of String) as the key...
  17. Replies
    4
    Views
    187

    VS 2019 Re: DrawToBitmap not right

    Working any better?
  18. Replies
    4
    Views
    187

    VS 2019 Re: DrawToBitmap not right

    This is also wrong...

    Control.DrawToBitmap(Screenshot, New Rectangle(20, ListBox1.Top, 1100, 800))

    Left and top should both be zero
  19. Replies
    4
    Views
    187

    VS 2019 Re: DrawToBitmap not right

    Try...

    Dim Screenshot As New Bitmap(1100, 800)
  20. Replies
    18
    Views
    460

    VS 2019 Re: Create a List for multiple entries

    Try this...



    Dim values As New Dictionary(Of List(Of String), List(Of String))
    Dim keywords() As String = {"beautiful", "next"}
    Dim lines() As String = {"this is a beautiful filename.doc", _...
  21. Re: .NET visual form designer, only 50 lines of code!!!

    This is not a question. The place for your code example is the C# codebank, not the vbgeneral forum...
  22. Replies
    2
    Views
    148

    VS 2013 Re: Get activate application name and details

    For the WebBrowser current tab url...

    https://stackoverflow.com/questions/37449378/get-current-url-from-active-tab-chrome-vb-net
  23. Re: Getting the selected item in a ListView control

    I'd use Details View. If you just want one column, don't add SubItems...
  24. Replies
    13
    Views
    411

    Re: Editing a text file

    You can read from My.Resources at runtime, but you can't write to it. For filesystem files, i'd use IO.File.ReadAllLines and IO.File.WriteAllLines
  25. Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists

    As Shaggy Hiker told you... It's unlikely you'll find a block of rgb(55, 80, 120) colored pixels. Actual colors are vague.
  26. Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists

    So what's the problem???
  27. Re: Making 'cut' menu items for specific places in a text box - Windows Form Applicat

    All 3 of the Button_Click handlers i posted there, just use the 4 character spaces " "
    How do you mean by asking how many characters across? If, for example, you have "123456" do you mean a...
  28. Re: How do I code pointers in Visual Basic? (Relating to Cheat Engine) I'm so confuse

    Write up a tutorial article in the codebank...
    probably be interesting to a lot of people, but the vbgeneral forum isnít the place for it.
  29. Re: Making 'cut' menu items for specific places in a text box - Windows Form Applicat

    Try this...

    181301


    Public Class Form1

    Private leftParts As New List(Of String)
    Private middleParts As New List(Of String)
    Private rightParts As New List(Of String)
  30. Replies
    8
    Views
    248

    VS 2012 Re: Best way to multi page report on VB?

    I canít see your attachment. Thereís an known error on the site. Iím not the best person to ask with the way youíre set up with stored procedures and design time data components. When I use ADO.Net,...
  31. Replies
    8
    Views
    248

    VS 2012 Re: Best way to multi page report on VB?

    Your report viewer has a datasource... you just need to ensure you provide the right table. How are you getting your initial table?
  32. Replies
    8
    Views
    248

    VS 2012 Re: Best way to multi page report on VB?

    You could use your original DataTable, along with a combobox for filtering. So you'd just need the one DGV. You can hide any columns you don't want in your reports...
  33. VS 2013 Re: Detect keyboard keydown event anywhere on screen, inside or outside project

    Look into Hooking inputs
  34. Replies
    5
    Views
    216

    VS 2019 Re: display label relative to textbox

    You should note, when setting label locations you can use...

    TxtSearch.Left
    TxtSearch.Right
    TxtSearch.Top
    TxtSearch.Bottom
  35. Replies
    5
    Views
    216

    VS 2019 Re: display label relative to textbox

    It was just an example. 😁
  36. Replies
    9
    Views
    433

    VS 2019 Re: Apply text to PictureBoxes

    https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/types/casting-and-type-conversions
  37. Replies
    9
    Views
    433

    VS 2019 Re: Apply text to PictureBoxes

    As PBox Is already a PictureBox, there is no need for the DirectCast in the AddHandler line. You can just use...

    PBox.Paint, as you did PBox.Click for the click Addhandler line
  38. Replies
    5
    Views
    216

    VS 2019 Re: display label relative to textbox

    Label1.Location = New Point(TextBox1.Right - 10, TextBox1.Bittom + 6)

    Use the code in the Form_Resize event handler
  39. Replies
    9
    Views
    433

    VS 2019 Re: Apply text to PictureBoxes

    It's drawing on the form - behind the controls
  40. Replies
    9
    Views
    433

    VS 2019 Re: Apply text to PictureBoxes

    Handles Me.Paint ???


    For Each Control As Control In Me.Controls 'Loop through all controls in Form1
    If TypeOf Control Is GroupBox Then 'If control is GroupBox
    For Each ChildControl...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width