Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.11 seconds.

  1. Re: ComboBox Item Tool Tips. 90% Working. Drawing Bug.[UPDATED THE OP WITH SCREENSHOT

    NO! DrawItemState shouldn't be compared as a boolean!
    Set Option Strict On and you'll see VB shows your code is in error!

    try,...
    If (e.State And DrawItemState.Selected) = DrawItemState.Selected...
  2. Replies
    3
    Views
    128

    VS 2008 Re: Drag and Drop from Picturebox

    Zhi-Xin Ye code works for me in Win7,.....
  3. Replies
    36
    Views
    5,120

    Re: AppActivate and FindWindow

    Calling Windows APIs are so fast I would just look for both types are not worry about windows versions and setting manifests, etc..., something like...


    ' find a running windows calc,
    hWnd =...
  4. Replies
    24
    Views
    265

    VS 2013 Re: Checkboxes behave as radio buttons

    I think i got the wrong idea, I was going across multiple usercontrols, never mind LOL!
  5. Replies
    24
    Views
    265

    VS 2013 Re: Checkboxes behave as radio buttons

    code remove!
  6. Replies
    36
    Views
    5,120

    Re: AppActivate and FindWindow

    You can use utility like SPY++ or similar.
    Here is is a simple one, (made in VB10), you drag the arrow to a window and it will display some info (text, classname) and has copy button, its based on...
  7. Replies
    36
    Views
    5,120

    Re: AppActivate and FindWindow

    :thumb: Thanks for the info, that explains a lot
  8. Replies
    36
    Views
    5,120

    Re: AppActivate and FindWindow

    Ya because calculator's classname in Win7 is "CalcFrame",
    so try, FindWindow("CalcFrame", "Calculator")
  9. Replies
    36
    Views
    5,120

    Re: AppActivate and FindWindow

    Thats odd, under Win7 for "calc.exe" I get,
    Window Text: Calculator
    Window ClassName: CalcFrame

    Whats really nuts is, in Windows 10 I launch "calc.exe" and the calculator runs, ok great, now I...
  10. Replies
    36
    Views
    5,120

    Re: AppActivate and FindWindow

    Heres a quick Windows 10 Desktop fix...


    Dim hWnd = FindWindow("ApplicationFrameWindow", "Calculator")
    If Not hWnd = IntPtr.Zero Then ' found
    ' if minimized then restore.
    If...
  11. Replies
    36
    Views
    5,120

    Re: AppActivate and FindWindow

    What OS ver?

    FWIW, I tried it on Win10 and it couldn't find calc running, so using FindWindow instead to get the handle, Edit. getprocess was returning two different handles for mainwindow, I've...
  12. Replies
    8
    Views
    191

    VS 2010 Re: get the time of execution of exe

    You can get process start time from Process.GetCurrentProcess.StartTime.
  13. Replies
    36
    Views
    5,120

    Re: AppActivate and FindWindow

    WAIT, WHAT? That shouldn't happen! When you press the button the second time then,.. as the button is pressed down your app gets focus, and then when you release the button the button's click event...
  14. Replies
    4
    Views
    187

    VS 2010 Re: Search inside sentence

    Not pretty ;) ,...



    Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

    Dim sentence As String = "I went to the...
  15. Re: Use multiple mousedown event to get mouse positions

    how bout,..


    Public Class Form1

    Private clickCount As Integer = 0
    Private textBoxes As List(Of TextBox)

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs)...
  16. Replies
    36
    Views
    5,120

    Re: AppActivate and FindWindow

    IsIconic will tell you if window is minimized, ShowWindow will let you change windowstate.. could use GetProcessesByName to get handle also,..

    Tested on Windows 7


    Imports...
  17. Replies
    2
    Views
    123

    Re: Skip to New Line Format

    Something like this?


    Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    ' format text to 60 chars wide max per...
  18. Replies
    5
    Views
    183

    Re: Invoking instance WMI

    I have no problem running it from BGW...

    Imports System.ComponentModel
    Imports System.Management

    Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles...
  19. Replies
    5
    Views
    183

    Re: Invoking instance WMI

    No need to modify the function, just call the function from your code, something like,..



    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick...
  20. Replies
    5
    Views
    183

    Re: Invoking instance WMI

    Problem is you're trying to set a lables Text in the DoWork event.
    One simple solution might be to pass the results using the e.Result ,..



    Private Sub BGW1_DoWork(sender As Object, e As...
  21. Replies
    10
    Views
    290

    VS 2013 Re: nice control used nowerdays

    Select the form and open the Document Outline Window, there you can see the parent child relationships and change them as needed.
  22. Replies
    10
    Views
    290

    VS 2013 Re: nice control used nowerdays

    SPY++ says its a TreeView control.

    http://i.imgur.com/8YtCni2.png
  23. Re: A question WRT FolderBrowserDialog

    Oh OK, VS2010 here defaults to x86, switched to x64 and error gone!

    EDIT So this can't be used in x86 apps?
  24. Re: A question WRT FolderBrowserDialog

    I'm getting error on the ShowDialog line,
    Am I using it wrong?



    Using ofd As New OpenFolderDialog
    If ofd.ShowDialog(Me) = Windows.Forms.DialogResult.OK Then
    ...
  25. Re: Why doesn't this work in a Win.10 machine ?

    Strange, no error here (Win10 Pro / VS 2013 & 2015)


    Dim dat As Date = DateTime.Now
    dat = dat.AddDays(-1)
    MessageBox.Show(dat.ToString
  26. Replies
    3
    Views
    230

    Re: How to save multiple jpg images as one?

    Heres a function I made awhile that might help get you started,..



    Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    ...
  27. Re: TextBox done with selction of a RadioButon

    Well normally you just let VB create the subs for you using the dropdown lists in the code window or by just double clicking on the control in the designer to get a default sub for the control( if it...
  28. Re: TextBox done with selction of a RadioButon

    You have 3 subs for the rad buttons, but all 3 have the same handles clause (Handles PrimeRibRadioButton.CheckedChanged).
  29. Re: executing Windows Shell script from vb.net

    You need to tell us what the error is!

    Wild guess , try using .Length -1 instead of .Count -1 .
  30. Re: executing Windows Shell script from vb.net

    You could loop thru the lines of the returned text until you find what it is you need,...


    Public Class Form1
    'Testing: Win7-64/ VS 2010 FW 4.0 / Compile: x64 / Run As Admin.
    Private...
  31. Re: sort array of chars and numbers issue

    Heres one way,...



    Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    Dim f As New List(Of String)
    ...
  32. Replies
    3
    Views
    1,021

    Re: [RESOLVED] No Prefix for VS 2015

    KEEP UP THE GOOD WORK!


    .m
    .:ammo:
    .:ammmmmhiiihmmm.
    .... ...
  33. Replies
    2
    Views
    125

    Re: form.Autoscroll

    I think its because it scrolls the selected control into view by default, one way I've seen this fixed is to Override ScrollToControl,......
  34. Replies
    3
    Views
    1,021

    [RESOLVED] No Prefix for VS 2015

    Please add prefix for VS 2015.

    When starting a new thread (in VB.net) there isn't a prefix selection for "VS 2015".
  35. VS 2012 Re: New code snippet not showing in Intellisense

    I don't see mine or the default snippets in Intellisense (in VS2010 or 2015) , are they supposed to be displayed there?
    I just type the shortcut followed by the Tab key.
  36. VS 2010 Re: Surpressing Script Errors in WebBrowser - Not Working

    Thats what I'm thinking, and I have no experience with JS Alert dialogs.
  37. VS 2010 Re: Surpressing Script Errors in WebBrowser - Not Working

    Did you use SPY++ to verify that the window is a dialog with classname #32770?

    "&Yes" and "&No" work for me, Added this to the class,..


    Public ReadOnly DialogButtonYes As String = "&Yes"...
  38. Re: Need help in getting text from a control in a child window of another program

    That works! :thumb:
  39. Re: Need help in getting text from a control in a child window of another program

    Not that I am aware of.


    Ya I see that, I'm not sure how you get them handles! :confused: Maybe I try a enumchild routine and see if it can find them, tho I suppose its possible the strip could...
  40. Re: Need help in getting text from a control in a child window of another program

    Try SPY++, you can use the find tool and drag it over controls to get their classname.
    In one of my apps I get a textbox in a VB10 app and code is like,..

    Dim Txtchild1 = FindWindowEx(hWnd,...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width