Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 4.92 seconds.

  1. Re: SendKeys not working using Midi Data to HotKeys conversion

    You're using AppActivate wrong...


    AppActivate("your app titlebar text")
  2. Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists

    I think the OP wants to keep clicking at random points within a region defined by a color. Iíve seen these type of questions before, where the OP thinks clicking at different points will appear more...
  3. Re: SendKeys not working using Midi Data to HotKeys conversion

    Are you clicking a button remotely? Try using Spy++ to identify the button if so. You'll need FindWindow, FindWindowEx, and SendMessage for this method
  4. Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists

    Google VB.Net MouseEvent API
  5. Replies
    4
    Views
    189

    VS 2019 Re: Help with tables

    Which version of VB are you using? Can you post your actual drawing code?, because none of what you have posted makes any sense in VB.Net
  6. Replies
    4
    Views
    189

    VS 2019 Re: Help with tables

    Supposing you're using VB.Net and GDI+, you can create a Point array and use the Graphics objects' .DrawLines method...

    Dim points() As Point = New Point(){New Point(140, 204), New Point(123,...
  7. Re: Modifying an array based on a structure within a function

    There is the .Net String.Replace function, and also the legacy Replace function...
  8. Replies
    12
    Views
    319

    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...
  9. Replies
    12
    Views
    319

    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...
  10. Replies
    12
    Views
    319

    VS 2019 Re: WndProc for console applications??

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

    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...
  12. Replies
    6
    Views
    219

    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...
  13. Replies
    6
    Views
    219

    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...
  14. Replies
    10
    Views
    408

    VS 2010 Re: Moving away from or extending Enum

    You mean a Dictionary(Of enum, class)??? :D
  15. 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...
  16. 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
  17. 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...
  18. VS 2019 Re: Using arrays to add information to radio buttons/checkboxes on a form

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

    You mean...


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

    ??? :D
  20. 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,...
  21. Replies
    5
    Views
    303

    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 =...
  22. VS 2019 Re: Strange One - Comboboxes highlight when TableLayoutPanel is Dock = Fill

    To deselect any items in your ComboBox... - ComboBox.SelectedIndex = -1
  23. Replies
    5
    Views
    208

    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...
  24. Replies
    10
    Views
    408

    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...
  25. Replies
    10
    Views
    408

    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
  26. 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...
  27. 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...
  28. Replies
    4
    Views
    266

    Re: Option Strict On causing error

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

    I wouldnít recommend doing that with system cursors...
  30. 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>
  31. 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...
  32. Re: Changing the screen mousepointer

    You need to use Cursors.Current = ...
  33. 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
  34. Replies
    4
    Views
    200

    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
  35. 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...
  36. Replies
    4
    Views
    231

    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
    ...
  37. Replies
    4
    Views
    231

    Re: ListBox items will be added infinitely

    Can you show us your code?
  38. Replies
    3
    Views
    189

    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...
  39. 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...
  40. 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.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width