Search:
Type: Posts; User: .paul.
Search:
Search took 4.92 seconds.
-
You're using AppActivate wrong...
AppActivate("your app titlebar text")
-
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...
-
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
-
Google VB.Net MouseEvent API
-
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
-
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,...
-
There is the .Net String.Replace function, and also the legacy Replace function...
-
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...
-
@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...
-
Does the Console window expose a Handle? Look at extending NativeWindow, which can have a wndProc
-
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...
-
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...
-
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...
-
You mean a Dictionary(Of enum, class)??? :D
-
What jmcilhinney told you, might not return the controls in the order you want them to be...
-
Yes. Keep it simple, using one array for each separate group of controls
-
Also, declaring and initializing radiobuttons at form scope wouldn't work...
-
-
You mean...
If (index <= _destinationOptions.Length - 1) Then
??? :D
-
To create an array of RadioButtons, that would be parallel to your city names array...
Dim RadioButtons() As RadioButton = {RadioButton1, RadioButton2, RadioButton3, RadioButton4, RadioButton5,...
-
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 =...
-
To deselect any items in your ComboBox... - ComboBox.SelectedIndex = -1
-
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...
-
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...
-
You could use a second enum for extended information...
Enum vType
Field1
Field2
Field3
End Enum
-
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...
-
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...
-
Option Strict on does not cause an error... It reveals your error :D
-
I wouldn’t recommend doing that with system cursors...
-
@Poppa Mintin...
Imports System.Runtime.InteropServices
''' <summary>
''' contains API + local functions for creating
''' a cursor from a bitmap on the fly
''' </summary>
-
By ‘the crucial point’, if you mean the cursor location, or hotspot, you can put it at any location in your image...
-
You need to use Cursors.Current = ...
-
I can't guarantee they'll be in the correct order without sorting them...
Dim UserControl As UserControl() = Me.Controls.OfType(Of UserControl).ToArray
-
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
-
All of those KeyPress Handlers have the wrong signature...
The signature they have...
sender As Object, e As EventArgs
The signature they should have...
-
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
...
-
Can you show us your code?
-
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...
-
You don't need to be looking to close crashed forms. The correct way is to avoid the crashes properly...
-
And don't Dispose the images in your List(of Bitmap) after using them. Just cycle through them as jm suggested.
|
Click Here to Expand Forum to Full Width
|