Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.11 seconds.

  1. Replies
    2
    Views
    84

    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,......
  2. Replies
    0
    Views
    94

    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".
  3. 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.
  4. VS 2010 Re: Surpressing Script Errors in WebBrowser - Not Working

    Thats what I'm thinking, and I have no experience with JS Alert dialogs.
  5. 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"...
  6. Re: Need help in getting text from a control in a child window of another program

    That works! :thumb:
  7. 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...
  8. 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,...
  9. Re: Need help in getting text from a control in a child window of another program

    Once you have the hWnd of the status bar (where those 3 text controls are) then use FindWindowEx and set childAfter to the handle of the control found previously, start at zero,...I don't know what...
  10. VS 2010 Re: Surpressing Script Errors in WebBrowser - Not Working

    Which part doesn't work? If it is the button click part then try activate the button just before sending bm_click.
    If you're looking for just dialog windows then another way would be to enum...
  11. Re: New VS 15 with VB 14, .NET FW 4.6 and .NET Native

    Well for express desktop there was no ISO. Download "wdexpress_full.exe", The first time you run it add the "/Layout" switch, that lets you DL & save all the files to a folder, (creates sub folder...
  12. Re: New VS 15 with VB 14, .NET FW 4.6 and .NET Native

    I've only installed "VS Express 2015 Desktop" (on 2 Win7 PCs), seems to run just fine w/o internet connection.
  13. Re: Multiple files saving with one dialog box

    Have you tried using, IO.Path.GetFileNameWithoutExtension ? ....


    Using sfd As New SaveFileDialog()

    With sfd
    .Filter = "project definition (*.xy)|*.xy"
    ...
  14. Replies
    20
    Views
    523

    VS 2008 Re: Migration from VB 6 to VS 2013

    Welcome to the forum.

    IIRC you need VS2008 Pro (or better) versions to get the built-in "VB6 to VB.Net" migration Wizard.

    FWIW, When I switched to VB10 from VB6 I installed VS2008 Pro because...
  15. Re: Can't post to tag name

    Maybe loop thru the Frames collection and find out where it is in the array, , something like in post #5......
  16. Re: Can't post to tag name

    For frames I use something like,...


    Dim Elems As HtmlElementCollection = WebBrowser1.Document.Window.Frames("frame_name").Document.GetElementsByTagName("tag_name")
  17. Replies
    2
    Views
    150

    Re: Displaying contents of an Array

    Try it like this,


    'Generate a random number from the values stored in min & max
    Dim randomNumber As Integer = rn.Next(min, max)

    'assign that value to lblRanAns.Text
    lblRanAns.Text =...
  18. VS 2010 Re: Changing a controls default values

    Maybe using IExtenderProvider?,..

    Post#11, http://www.vbforums.com/showthread.php?530585

    http://visualstudiomagazine.com/articles/2008/06/01/resize-textboxes-easily.aspx
  19. Re: Why does VB 2010 keep crashing?

    I doubt 2 gigs of ram is enough.

    FWIW, I've never had any luck with Windows using the swap file as memory, the system just slows to a crawl and crashed.
  20. Re: Opening an application at a specific tab.

    I'm glad it helps, I wasn't sure how you select a tab on an external app, so I looked at taskmanger with SPY++, get the classname of the tab control, google "SendMessage SysTabControl32", found code...
  21. Re: Opening an application at a specific tab.

    UPDATED:
    I don't think task manager has any command line arguments to set the tab, So you'll probably need to send it a message to select the tab. I re-did it like this so it launches and sets the...
  22. Thread: Scrolling

    by Edgemeal
    Replies
    7
    Views
    310

    VS 2010 Re: Scrolling

    Maybe put the panel with pic boxes inside another panel,



    Public Class Form1

    Private dragging As Boolean
    Private pnt As Integer

    Private Sub Form1_Load(sender As...
  23. Thread: Scrolling

    by Edgemeal
    Replies
    7
    Views
    310

    VS 2010 Re: Scrolling

    Do you mean if you drag a picbox to the edge of the panel then the panel will increase or decrease its scrollbars so the the picbox stays in full view?

    FWIW, heres an idea I used before and tried...
  24. Replies
    4
    Views
    273

    VS 2012 Re: ERROR Download File with VB.Net

    It works, but I had to change the target path to a public folder (root of C: failed)!
    It downloaded a 18KB file, when opened in notepad it appears to be a web page (html text), not an exe, so u...
  25. Replies
    2
    Views
    215

    VS 2013 Re: adding times in a Listview

    I'm not sure there is anything built into the framework to auto parse and add times in a format like that, so you'll probably need to split the text by the ":" char and convert those parts into a...
  26. Replies
    14
    Views
    453

    Re: Click on another application is possible?

    Make sure the button text in your code is correct, Findwindow(Ex) ignores case but the text chars must be exact, including any spaces, which from the screen shots that were posted (where they go?)...
  27. Replies
    26
    Views
    475

    Re: Persistent Combobox - Saved Locally

    If just lines of text, try,..



    ' populate ComboBox1 from file
    ComboBox1.Items.AddRange(IO.File.ReadAllLines("somefile.txt"))

    ' save ComboBox1 items to file...
  28. Re: Recursively looping through UserControls?

    How bout,


    For Each sub_UC In Uc1.Controls.OfType(Of subUC)()
    Debug.WriteLine(sub_UC.Name)

    For Each cntrl As Control In sub_UC.Controls
    Debug.WriteLine(cntrl.Name)
    Next
  29. Thread: get text

    by Edgemeal
    Replies
    2
    Views
    197

    Re: get text

    What comes after the name?
    If you know it is a period character for example then you can use the Find method of the richtextbox, then use substring to return just the name part, a function...
  30. Replies
    3
    Views
    287

    Re: Option buttons and Grouping

    Try,


    Dim group1 = GroupBox1.Controls.OfType(Of RadioButton).Where(Function(rb) rb.Checked).Count = 1
    Dim group2 = GroupBox2.Controls.OfType(Of RadioButton).Where(Function(rb) rb.Checked).Count...
  31. Re: which event of form that makes contrlos on it updated

    When you change the combo selection the SelectedIndexChanged event is raised, there you'd call your code. I'd probably create a public sub or property on that secondary form and pass it the index, ,...
  32. Re: How to automate an external program in the background?

    I wish there was a simple answer but there isn't, all I can suggest is you be much more specific, look at other examples, like how to send text to a textbox in another application, how to click a...
  33. Re: How to automate an external program in the background?

    I'm not sure thats possible, normally when you hide a window all of the child controls are hidden too, so any API calls you make to get/set data will probably just fail to work anyway.
  34. VS 2013 Re: Why this code doesn't work? Please give me a hint.

    Try changes,


    Public Class Form1
    Dim Balances(7) As Decimal
    Dim Names(7) As String

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  35. Replies
    2
    Views
    188

    VS 2012 Re: Virtual light box. Almost.

    Quick idea, toggle the WS_EX_TRANSPARENT window flag, it should let you click thru the form and also set the opacity.,


    Imports System.Runtime.InteropServices

    Public Class Form1

    Private...
  36. VS 2012 Re: Change colour of text in read-only text box

    I can't reproduce that here using VB10 on Win7.
    I set readonly to true in props and then I set the back/fore colors. In code I changed the forecolor of the textbox and all text changes to that...
  37. VS 2012 Re: Change colour of text in read-only text box

    If you set readonly in code then you also have to set the color in code somewhere after you set readonly.
  38. VS 2012 Re: Change colour of text in read-only text box

    The Textbox control can not color individual text, you set the ForeColor and all text in the control uses that color.

    If you want to change the Fore/Back Color of specific text then use a...
  39. Replies
    5
    Views
    241

    VS 2010 Re: Acquire Sounds from a specific folder

    I can't really answer that, maybe its a preference thing but I'd want vb.net to be able to access anything I put in Resources, If I needed to use API calls then I would make sub folders, like Images,...
  40. Replies
    5
    Views
    241

    VS 2010 Re: Acquire Sounds from a specific folder

    I use IO.Path.Combine and Application.StartupPath, something like,..



    Public Class Form1

    ' path where images are stored
    Private imagesPath As String =...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width