Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 1.01 seconds.

  1. Replies
    10
    Views
    203

    VS 2019 Re: WndProc for console applications??

    To monitor the clipboard for changes... This might work in a console app.

    https://www.vbforums.com/showthread.php?348324-RESOLVED-Monitoring-clipboard-for-changes

    Same problem though, as itís...
  2. Replies
    10
    Views
    203

    VS 2019 Re: WndProc for console applications??

    @sapator - Can you also send it to me? Thanks

    @ioo - I think the problem with wndProc, is that it is designed for Windows.Forms, and the Console is a completely different type of window...
  3. Replies
    10
    Views
    203

    VS 2019 Re: WndProc for console applications??

    Does the Console window expose a Handle? Look at extending NativeWindow, which can have a wndProc
  4. Replies
    2
    Views
    178

    VS 2010 Re: Need help regarding codeings

    When you add the treenode, for example splendor.zip, add the full url to the treenode tag, then you can retrieve the full url easily...


    Public Class Form1

    Private Sub Form1_Load(ByVal...
  5. Replies
    6
    Views
    174

    Re: Interpolating values

    The way to do it, is to sort your collection ASC by RPM. Then loop through it until RPM at that index is higher than the target RPM, then test whether that index RPM is closer to target than the...
  6. Replies
    6
    Views
    174

    Re: Interpolating values

    We need you to write it, in plain english, how you'd do that mathematically, then we can help converting that to code.
    I'll start by assuming we're working with an array of Strings, in the format...
  7. Replies
    10
    Views
    369

    VS 2010 Re: Moving away from or extending Enum

    You mean a Dictionary(Of enum, class)??? :D
  8. VS 2019 Re: [RESOLVED] Using arrays to add information to radio buttons/checkboxes on a form

    What jmcilhinney told you, might not return the controls in the order you want them to be...
  9. VS 2019 Re: Using arrays to add information to radio buttons/checkboxes on a form

    Yes. Keep it simple, using one array for each separate group of controls
  10. VS 2019 Re: Using arrays to add information to radio buttons/checkboxes on a form

    Also, declaring and initializing radiobuttons at form scope wouldn't work...
  11. VS 2019 Re: Using arrays to add information to radio buttons/checkboxes on a form

    :thumb:
  12. VS 2019 Re: Using arrays to add information to radio buttons/checkboxes on a form

    You mean...


    If (index <= _destinationOptions.Length - 1) Then

    ??? :D
  13. VS 2019 Re: Using arrays to add information to radio buttons/checkboxes on a form

    To create an array of RadioButtons, that would be parallel to your city names array...


    Dim RadioButtons() As RadioButton = {RadioButton1, RadioButton2, RadioButton3, RadioButton4, RadioButton5,...
  14. Replies
    5
    Views
    278

    Re: Button2 not referenced !

    ReadOnly yb As Integer = Button2.Location.Y

    As si_the_geek says, at that point in your app. Button2 hasn't been declared.
    If you want a readonly value at Form scope...


    Const yb As Integer =...
  15. VS 2019 Re: Strange One - Comboboxes highlight when TableLayoutPanel is Dock = Fill

    To deselect any items in your ComboBox... - ComboBox.SelectedIndex = -1
  16. Replies
    5
    Views
    184

    VS 2019 Re: .net windows frameworks

    I'd recommend adding a class for your calculations...


    Public Class calc

    Public Shared Function getSum(n as integer) as Integer
    Dim result as integer = 0
    ' put your loop...
  17. Replies
    10
    Views
    369

    VS 2010 Re: Moving away from or extending Enum

    If you want to give your enum values distinct values, use powers of 2 i.e. 0, 1, 2, 4, 8
    Enum with distinct integer values can be manipulated with bitwise comparisons, which is especially useful if...
  18. Replies
    10
    Views
    369

    VS 2010 Re: Moving away from or extending Enum

    You could use a second enum for extended information...


    Enum vType
    Field1
    Field2
    Field3
    End Enum
  19. Re: Changing the screen mousepointer

    I wouldn't recommend disposing any system resources, such as cursors, pens, brushes.
    There's no need for an explicit dispose. GC will release it when you change the cursor. If there are no longer...
  20. Re: [RESOLVED] Why does my code not read-in a complete text file ?

    You're using legacy code again, and to be honest it's more difficult using that code, than using readalltext to read the entire file into a string...
  21. Replies
    4
    Views
    243

    Re: Option Strict On causing error

    Option Strict on does not cause an error... It reveals your error :D
  22. Re: Changing the screen mousepointer

    I wouldnít recommend doing that with system cursors...
  23. Re: Changing the screen mousepointer

    @Poppa Mintin...


    Imports System.Runtime.InteropServices


    ''' <summary>
    ''' contains API + local functions for creating
    ''' a cursor from a bitmap on the fly
    ''' </summary>
  24. Re: Changing the screen mousepointer

    By Ďthe crucial pointí, if you mean the cursor location, or hotspot, you can put it at any location in your image...
  25. Re: Changing the screen mousepointer

    You need to use Cursors.Current = ...
  26. VS 2012 Re: [RESOLVED] Giving values to a series of user control internal controls

    I can't guarantee they'll be in the correct order without sorting them...


    Dim UserControl As UserControl() = Me.Controls.OfType(Of UserControl).ToArray
  27. Replies
    4
    Views
    185

    Re: PerformClick a button in TabControl ???

    He didn't mean use PerformClick at all. He said use a sub or function in your form code, that would be called from both your ShutdownToolStripMenuItem_Click and your Shutdown_btn_Click handlers
  28. Re: Capture X & Y coordinates in an array and pass to a public sub for reuse

    All of those KeyPress Handlers have the wrong signature...

    The signature they have...


    sender As Object, e As EventArgs

    The signature they should have...
  29. Replies
    4
    Views
    216

    Re: ListBox items will be added infinitely

    Public Class Form13

    Private WithEvents tmr As New Timer With {.Interval = 1000}

    Private Sub Form13_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ...
  30. Replies
    4
    Views
    216

    Re: ListBox items will be added infinitely

    Can you show us your code?
  31. Replies
    3
    Views
    178

    Re: Api to Drag & Drop / Paste image in vb.net

    Your overlays will have to be semi-transparent bitmaps. That's basic GDI+ stuff.
    I wrote a Paint app when i was new to vb.net. You can probably find it in the codebank. Has some techniques you might...
  32. Re: [RESOLVED] Close a child form of MDI Form on Load

    You don't need to be looking to close crashed forms. The correct way is to avoid the crashes properly...
  33. VS 2015 Re: vb.net memory goes up when pictures are changing in slide show

    And don't Dispose the images in your List(of Bitmap) after using them. Just cycle through them as jm suggested.
  34. VS 2015 Re: vb.net memory goes up when pictures are changing in slide show

    Public Shared Sub ShowImage(ByVal path As String, ByVal pct As PictureBox)
    pct.Image.Dispose
    pct.ImageLocation = path
    End Sub
  35. VS 2015 Re: vb.net memory goes up when pictures are changing in slide show

    Change this code...


    If Me.PictureBox1.Image IsNot Nothing Then PictureBox1.Dispose()

    To this...


    PictureBox1.Image.Dispose
  36. VS 2019 Re: How to get data in a textbox when clicked on a particular button?

    Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    For Each btn In FindControls(Of Button)(Me).Cast(Of Button).Except(New Button() {btnSave, btnEdit, btnCancel,...
  37. VS 2019 Re: How to get data in a textbox when clicked on a particular button?

    Does that resolve your problem? You obviously donít want that handler, handling those four buttons. You should be aware that the code that adds the handler for the table buttons will add a handler...
  38. VS 2019 Re: How to center a line of text from a textbox to a label

    As dday9 says, but to customize it, you just need to change the printBounds rectangle...
  39. VS 2019 Re: How to get data in a textbox when clicked on a particular button?

    Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    For Each btn In FindControls(Of Button)(Me).Except(New Button() {btnSave, btnEdit, btnCancel, btnUpdate})
    ...
  40. VS 2019 Re: How to get data in a textbox when clicked on a particular button?

    Are "btnSave" "btnEdit" "btnCancel" & "btnUpdate" in a GroupBox with a title? In a panel without any text for the text property?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width