Search:

Type: Posts; User: cameron2

Page 1 of 11 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Reading textbox contents in seperate program

    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.
  2. Re: Reading textbox contents in seperate program

    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...
  3. Re: Reading textbox contents in seperate program

    Yeah if you have the textboxes handle you can use SendMessage() and WM_GETTEXT.
  4. Replies
    14
    Views
    537

    Re: Get browser control field accessed

    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.

    ...
  5. Re: using sin cos and tan (vb2005/2008)

    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.
  6. Replies
    14
    Views
    537

    Re: Get browser control field accessed

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

    Re: [2008] Hide a 3rd party window

    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.
  8. Replies
    9
    Views
    823

    Re: [2008] Hide a 3rd party window

    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...
  9. Replies
    1
    Views
    497

    Re: [2005] Need help badly about using Or.

    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...
  10. Replies
    18
    Views
    1,044

    Re: [2005] Findwindow API

    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...
  11. Replies
    5
    Views
    34,335

    Re: [2008] Clearing radio buttons

    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 =...
  12. Replies
    18
    Views
    1,044

    Re: [2005] Findwindow API

    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...
  13. Replies
    18
    Views
    1,044

    Re: [2005] Findwindow API

    No problem:


    Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
    (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
    Declare Function...
  14. [2008] Checking if an item is within a listview

    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...
  15. Replies
    2
    Views
    550

    List all child Windows

    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...
  16. Replies
    1
    Views
    487

    [2008] How to get process name

    If i have a window's caption and handle how can i get it's processname?

    Thanks.
  17. Replies
    1
    Views
    464

    [2008] From Listview to Listbox

    How would i copy the selected item from a listview into a listbox.

    Thanks.
  18. Replies
    6
    Views
    1,423

    Re: [2008] Validation

    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?
  19. Replies
    5
    Views
    776

    Re: [2008] Rounding off decimals.

    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
  20. Replies
    5
    Views
    776

    Re: [2008] Rounding off decimals.

    just let it round up and -1 off the answer.
  21. Replies
    8
    Views
    1,358

    Re: Simulate a user web browser click

    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...
  22. Replies
    4
    Views
    606

    Re: [2008] Check amount of users logged on

    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...
  23. Replies
    8
    Views
    1,358

    Re: Simulate a user web browser click

    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.
  24. Replies
    6
    Views
    1,423

    Re: [2008] Validation

    if Price >= 0.00 and <= 150.00 then
    'do stuff here
    end if
  25. Re: Auto-Move/Clicking the Mouse in a WebBrowser Component

    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
  26. Re: [2008] moving a board piece to another square on the board

    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)...
  27. Re: [2008] How To Hide Whole Text Box?

    RichTextBox1.Visible = False
  28. Replies
    12
    Views
    928

    Re: coding standard for .NET

    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.
  29. Replies
    12
    Views
    928

    Re: coding standard for .NET

    Um not really...... do you mean namespaces? What conventions are you talking about?
    Sorry that i don't understand.
  30. Replies
    12
    Views
    934

    Re: [2005] Moveable property

    Yeah i'm not sure, it would be handy to have that function.
  31. Replies
    12
    Views
    928

    Re: coding standard for .NET

    I'm not sure what you mean by coding standard.
  32. Replies
    6
    Views
    475

    Re: Game based on a theme

    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.
  33. Re: [RESOLVED] annoying line which i dont know how to get rid of.

    No worries, remember to mark thread as resolved :D
  34. Re: annoying line which i dont know how to get rid of.

    Yes if they are pictureboxes read my post, you must set BOTH pictureboxes margins to 0, 0, 0, 0
  35. Re: annoying line which i dont know how to get rid of.

    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.
  36. Replies
    12
    Views
    934

    Re: [2005] Moveable property

    Have a look at Jmc's code: http://www.vbforums.com/showthread.php?t=351533
  37. Re: Transparency Problem with Controls like Pictureboxes

    I don't think this is possible, why don't you just make one merged picture.
  38. Re: Transparency Problem with Controls like Pictureboxes

    Ah i see well i'll see what i can do picture boxes don't have opacity properties :(
  39. Replies
    3
    Views
    437

    Re: [2005] Detect if the system is locked?

    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...
  40. Re: Transparency Problem with Controls like Pictureboxes

    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.
Results 1 to 40 of 405
Page 1 of 11 1 2 3 4



Click Here to Expand Forum to Full Width