Search:

Type: Posts; User: moeur

Page 1 of 13 1 2 3 4

Search: Search took 0.16 seconds.

  1. Re: Threading & Accessing controls repeatidly.

    You might want to consider using BeginInvoke instead of Invoke. This way your background code doesn't have to wait for your foreground updates. This is assuming you don't need strict synchronization...
  2. VS 2010 Re: How do I make a button click buttons in flash player?

    I have plenty of ideas. why don't you try programatically sending mouse clicks to the coordinates of the button.
  3. VS 2010 Re: How do I make a button click buttons in flash player?

    The people who write the flash player purposely work to prevent you from doing things like this. They are trying to protect the content of their customers so restrict what can be done via code. It...
  4. Replies
    11
    Views
    1,510

    VS 2010 Re: Formula/Calculation problems

    The book is not wrong. The problem is in the way you express the interest rate.
    a 3.7% rate should be expressed as 0.037
    Putting that number in for r gives you 0.03734 or 3.734%
  5. Replies
    4
    Views
    4,780

    Re: How to load only image thumbnails?

    try rebuilding your project to see if the error goes away.
  6. Replies
    1
    Views
    1,175

    VS 2010 Re: VB.net Mesh Viewer

    If you have found C# code that does what you want then post a link here and someone can help explain it to you.
  7. Replies
    7
    Views
    9,856

    VS 2010 Re: populate ListView using a thread

    The nice thing about BeginInvoke is that it performs the action asynchronously (so it must run on a separate thread) So, if you want your form to load right away and have it be responsive while the...
  8. Replies
    7
    Views
    9,856

    VS 2010 Re: populate ListView using a thread

    The reason to make the loading of listview items asynchronous is to prevent the UI from locking up.
    This is how I would do it.


    Public Class Form1

    Public Delegate Sub...
  9. Replies
    2
    Views
    746

    Re: Subclassing window in other process (winXP)

    Here is a method of "subclassing" external process windows. It was written for VB6, and then converted to VB.NET. It relies on a dll written in C++ that is supplied in both source code and...
  10. Replies
    9
    Views
    9,116

    Re: Calling C/C++ DLL in VB.NET (Return Data)

    You are probably right that it is a format problem. Try examining the bits returned by returning a pointer to a byte array.

    <DllImport("NetTEMPer16.dll")> Public Shared Function...
  11. Replies
    1
    Views
    1,773

    VS 2010 Re: Screenshot of window by handle

    see here:
    http://www.vbforums.com/showthread.php?t=385497
    or here:
    http://www.vbforums.com/showthread.php?t=445006
  12. Re: Conversion from type 'DBNull' to type 'String' is not valid

    to check for null values in a database use
    If Form1.dTable.Rows(ii).Item(g) isNot DBNull.Value then
  13. Replies
    2
    Views
    3,689

    VS 2010 Re: Windows media player

    From my experience, you can only set fullscreen mode while the player is playing. So, what I do is insert the code to go fullscreen in the playstatechange event.


    player_PlayStateChange(sender...
  14. Replies
    14
    Views
    1,563

    VS 2008 Re: PostMessage interrupts

    I'm still confused about what you are trying to do. Will SetCapture work?
  15. Replies
    14
    Views
    1,563

    VS 2008 Re: PostMessage interrupts

    Why do you want to send the mouse clicks to your program via a message? You already have the mouse click data in your MouseProc routine. And, this routine as written (sans the PostMessage calls)...
  16. Replies
    14
    Views
    1,563

    VS 2008 Re: PostMessage interrupts

    Yes, you can install a WH_MOUSE_LL hook and reject any WH_RBUTTONUP messages. The advantage of this hook is that it can be run from VB and you won't have to create a C++ dll.
  17. Replies
    14
    Views
    1,563

    VS 2008 Re: PostMessage interrupts

    Can you explain in more detail what the program needs to do? For example, do you want it to ignore all mouse clicks until you press f12? What is the point of the mouse down and up messages?
  18. Replies
    5
    Views
    900

    VS 2005 Re: Running external program "out of process"

    If there are any spaces in the path string then you must enclose the whole path in double quotes.
    ex: Shell("""C:\Program Files\display.exe""")
  19. Replies
    14
    Views
    1,563

    VS 2008 Re: PostMessage interrupts

    I'm saying that you can't do what you are trying to do.
  20. Replies
    14
    Views
    1,563

    VS 2008 Re: PostMessage interrupts

    There is no way around this that I know of. You'll have to think of another way to do whatever you are trying to do.
  21. Replies
    13
    Views
    13,106

    Re: VBNet Post/Send Message API

    DirectX does not rely on Windows messages to recieve keyboard input. Instead it gets input directly from the keyboard driver. This being the case, you will not be able to inject keypresses into a...
  22. Thread: Page Scrape Help

    by moeur
    Replies
    6
    Views
    1,132

    Re: Page Scrape Help

    curElement.GetAttribute("href")
  23. Replies
    10
    Views
    1,323

    Re: Save dialog popping under active windows

    if you want to use the window handle try this API function


    Public Declare Function SetForegroundWindow Lib "user32" Alias "SetForegroundWindow" (ByVal hwnd As IntPtr) As Integer
  24. Re: Marshal variable length array to Windows API

    Make sure you set dwOutBufLen to the size of your buffer.
  25. Replies
    6
    Views
    3,237

    Re: mixerGetLineControls winmm

    I guess I don't see the problem.
  26. Replies
    10
    Views
    1,323

    Re: Save dialog popping under active windows

    Have you tried calling the appactivate method before launching your dialog?
  27. Replies
    6
    Views
    3,237

    Re: mixerGetLineControls winmm

    Does this help?
    http://support.microsoft.com/kb/178456
  28. Re: Marshal variable length array to Windows API

    Which function are you calling. The Windows API functions usually have a variable passed to them that allows you to tell them how large your array is to prevent crashing. If the array isn't big...
  29. VS 2010 Re: TCP Chat Server Closes Socket on Client DisConnect?

    In your error trap you could set the element of your list = nothing rather than deleting it. Then before you perform any operation with your elements make sure to check whether they are nothing.

    ...
  30. VS 2010 Re: TCP Chat Server Closes Socket on Client DisConnect?

    Wow, fast bump

    I would catch the error and remove the client from the list on error:


    Dim clientsList As New List(Of TcpClient)
    ...
    For Each client As TcpClient In...
  31. VS 2008 Re: How To Add Each href To A ListBox If It Has A Specific Class

    Try something like this:


    For Each temp As HtmlElement In wb.Document.Links
    If temp.GetAttribute("ClassName").Equals("twtr-user") Then
    ...
  32. Replies
    23
    Views
    7,659

    Re: Sending messages between VB-created apps

    What you are doing here is sending a Set Text message to another window (form). This will change the caption of the form to your new message and you can then retrieve the message by reading the...
  33. Replies
    5
    Views
    12,417

    Re: Homemade Infra-red remote control

    If Winlirc works fine then I suggest you use it. I couldn't get WinLIRC to work while any video was playing.

    I suppose the problem you are seeing could be coming from one of several sources:
    ...
  34. Replies
    5
    Views
    12,417

    Homemade Infra-red remote control

    To detect the first pulse edge, monitor the com port's Pin Changed event.

    Private Sub CommPort_PinChanged(ByVal sender As Object, ByVal e As SerialPinChangedEventArgs) Handles...
  35. Replies
    5
    Views
    12,417

    Homemade Infra-red remote control

    Homemade Infra-red remote control [VB 2005]

    If you are building a Home-Theater-PC (HTPC) one of the things you need to install is a remote control and its driver. Even without Media Center this...
  36. Replies
    0
    Views
    731

    Scematic for moeur

    For use in codebank post
  37. Re: SysListView32 Get Item Text, how to with LVM_GETITEMTEXT ?

    It is not a trivial thing to convert VB or C++ to C# when working with API's.
    Here is a working example in C# of accessing a listview's column data....
  38. Re: SysListView32 Get Item Text, how to with LVM_GETITEMTEXT ?

    how did you get the handle to the listview?
  39. Replies
    1
    Views
    1,020

    Re: Callback from C++

    A while ago I tried to do this and finally had to give up. It is very complicated.
    See my previous attempt.
    http://www.vbforums.com/showthread.php?t=327589
  40. Re: SysListView32 Get Item Text, how to with LVM_GETITEMTEXT ?

    The problem with getting items from a listview in an extrnal process is that the Windows operating system doesn't know how to marshal data for any user defined message. Yes, LVM_GETITEMTEXT is a...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width