Search:
Type: Posts; User: cameron2
Search:
Search took 0.17 seconds.
-
Hmmm that is weird.... I don't think i can help you here, you will never be able to do it if the handle keeps changing.
-
Just thought i'd show you how to use it:
Public Const WM_GETTEXT = &HD
dim text as int32
text = SendMessage(handle, WM_GETTEXT, Nothing, 0)
I am assuming you know the declaration for...
-
Yeah if you have the textboxes handle you can use SendMessage() and WM_GETTEXT.
-
Ah ok sendkeys can be used for reasons as stated in previous postand if you use it along with mouse movements and clicks and your browser is in the foreground you might get what you need.
...
-
Dim radians As Single, degrees As Single
radians = degrees / 180 * math.PI
MsgBox(CStr(Math.Tan(radians)))
Instead of math.tan use any one you like.
-
Well you could use Sendkeys:
There are various examples on this site showing you how to move the mouse, click it and type text using sendkeys.
However there are a number of problems with Sendkeys...
-
Hmmm can you tell what process a window belongs to if you have its handle?
That way you can use enumwindows and get all the process.
-
Ah i've done this in one of my programs:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As...
-
In the label click event set a boolean value to true and in that code check if that boolean is true.
Oh and if the user "unclicks" the label set the boolean to false.
Example:
Dim isclicked ad...
-
The program from the link i gave you above actually gives you the API declaration, you just need to know the API's name, search with it in the program and it will show you the declaration, copy-paste...
-
Here's what i did:
I had two radiobuttons and a button,
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
RadioButton1.Checked =...
-
Oh woops my bad, thought he wanted to set the window caption.
Hmmm in that case you are going to have to use Findwindow to get the window handle then Findwindowex (maybe more than once) to get the...
-
No problem:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
Declare Function...
-
Here i have some code that populates a list of Windows and their handles:
Private Function EnumWindowsProc(ByVal hWnd As IntPtr, ByVal lParam As IntPtr) As Boolean
Const maxCount As...
-
Hi,
Lets say i have a list of all windows and their captions, what i would like to do is get and list their child windows for example their textboxes or buttons etc. I think their might be an API...
-
If i have a window's caption and handle how can i get it's processname?
Thanks.
-
How would i copy the selected item from a listview into a listbox.
Thanks.
-
Well you can do what the exception says and add references to System.Xml, System.Xml.Linq, and System.Core
You are using vb.NET right?
-
You can check the number of the string, if it's decimal is .49 and under you don't -1 if it is .50 and above you can -1
-
just let it round up and -1 off the answer.
-
Well then your going to have to use the API's Findwindow, FindwindowEx and SendMessage, google them, learn about them, and learn how to get a controls handle and how to interact with that control.
A...
-
When you bring up taskmanager you can see the amount of users logged in, if you use Findwindow and findwindowex you should be able to read the listview control.
There could be some value in the...
-
Yourbutton.performclick()'if the button is on your form
Or if it is somewhere else you can use API:
http://www.xtremevbtalk.com/showthread.php?t=123910
Theres a post that has it all.
-
if Price >= 0.00 and <= 150.00 then
'do stuff here
end if
-
Well you can do what you want like this:
TextBox1.Focus()'gives textbox control
SendKeys.Send("Hello")'types hello into it
SendKeys.Send("{ENTER}")'to press enter
-
The following code makes a picture go to the top left corner of another picture box when you click it:
Private Sub PictureBox3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...
-
RichTextBox1.Visible = False
-
Yes as alex said .NET uses the full name of controls rather than shortened versions for example: Dim label As New Label to create an instance of a label.
-
Um not really...... do you mean namespaces? What conventions are you talking about?
Sorry that i don't understand.
-
Yeah i'm not sure, it would be handy to have that function.
-
I'm not sure what you mean by coding standard.
-
Yeah thats a good idea, also make it so you roll a dice to see how many squares you advance and put bonuses in like swap places, go back to start advance 4 squares. Things like that, be imaginative.
-
No worries, remember to mark thread as resolved :D
-
Yes if they are pictureboxes read my post, you must set BOTH pictureboxes margins to 0, 0, 0, 0
-
Nah its the margin feature that sets a margin between controls. For picture boxes there should be a margin property which is 3, 3, 3, 3 as default. Set both pictureboxes margins to 0, 0, 0, 0.
-
Have a look at Jmc's code: http://www.vbforums.com/showthread.php?t=351533
-
I don't think this is possible, why don't you just make one merged picture.
-
Ah i see well i'll see what i can do picture boxes don't have opacity properties :(
-
Ah now i see, um you could check to see if the Windows key + L has been pressed that way you can block those keys from being pressed. Or do something else when the user presses them.
Search for Low...
-
Set picturebox 2 to have no border.
Or:
Set the forms transperancy key to a colour and set the pictureboxes back colour to that same colour.
|
Click Here to Expand Forum to Full Width
|