Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.17 seconds.

  1. Replies
    5
    Views
    2,474

    VS 2015 Re: VB.net Controlling Microphone

    Try (AppCommandConstant * &H10000),..



    SendMessageW(Me.Handle, WM_APPCOMMAND, Me.Handle, New IntPtr(AppCommandConstants.APPCOMMAND_VOLUME_MUTE * &H10000))




    Public Enum...
  2. Replies
    38
    Views
    5,558

    Re: [RESOLVED] FindWindow, etc.

    Once you have the main window handle then try loop until you have all 3 valid control handles, maybe limit it to say one second max just in case the external app window changes it controls in the...
  3. Replies
    38
    Views
    5,558

    Re: FindWindow, etc.

    This is the part that should wait until the app main window is created and has a valid handle,


    hWnd = FindWindow(strClassForm, "frmTest")
    While hWnd.Equals(IntPtr.Zero)
    ...
  4. Replies
    1
    Views
    575

    Re: Context Menu Checked "Check Mark" Color

    I think you might need to draw your own, or maybe re-color the image, something like this?, I don't know how to use ColorMatrix , copied that from somewhere else. :o



    Imports...
  5. Replies
    0
    Views
    1,440

    Poll: How do i make a poll?

    Vote to get counted.

    1. I test/use every new pre-release!
    2. When I find a bug/need a bug fixed.
    3. Only when I have nothing better to do.
  6. Replies
    1
    Views
    447

    VS 2005 Re: Custom Autocomplete for TextBox

    Maybe add handlers to the UC to detect when certain Form events occur, something like...



    Public Sub ClosePopUp(sender As Object, e As EventArgs)
    If PopUpControl IsNot Nothing Then...
  7. Replies
    2
    Views
    615

    Re: VB2010 - Hiding Panel Scrollbars

    From, https://www.codeproject.com/Articles/14189/Pan-scroll-an-image-in-VB-NET



    Public Class PanelEx
    Inherits Panel
    Protected Overrides Sub DefWndProc(ByRef m As Message)
    If...
  8. Re: How do I use WM_GETTEXT in VB.net to Pass text from 1 Progrm to another open Prog

    Try something like this, NOTE I did this in VB10/FW 4.0 so be sure to change the classname for the textbox (WindowsForms10.EDIT...).




    Imports System.Runtime.InteropServices
    Public Class...
  9. VS 2010 Re: Richtextbox resized smaller, vertical scrollbar disappears. Any idea how to fix t

    Still using VB10 on Win7 here, When I have RTB resize with form (anchored on all sides) invalidating the RTB in forms resize-end event works here,...

    Private Sub FrmMain_ResizeEnd(sender As...
  10. Replies
    2
    Views
    711

    VS 2017 Re: TabControl with top edge?

    Maybe draw the tabs 2 pixels lower?...



    For i = 0 To TabCount - 1
    Dim tabRect As Rectangle = GetTabRect(i)
    tabRect.Y += 2
    ...
    Next
    e.Graphics.DrawImage(CType(B.Clone, Image), 0, 0)
  11. Replies
    2
    Views
    666

    VS 2015 Re: Delete Duplicated Urls from richTextBox

    Maybe something like...



    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim hosts As New List(Of String)
    Dim urls As New List(Of String)

    For...
  12. Re: Have a Function I'd like to compile into a dll.

    That function is VB6 syntax, you can still do it that way but the function must return something on every possible path, so you could add Case Else to it,..


    Case Else
    ...
  13. Replies
    3
    Views
    4,470

    VS 2010 Re: Grab text from the web [how to?]

    You can try something like this, and do any additional parsing using some basic string methods.



    Dim elems As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("tr")
    For Each...
  14. Re: capture Combobox Auto-suggest text ?

    The _KeyUp event is still raised even when the autosuggest list is shown, here on Win7 anyway.



    Private Sub ComboBox1_KeyUp(sender As Object, e As KeyEventArgs) Handles ComboBox1.KeyUp
    ...
  15. Re: capture Combobox Auto-suggest text ?

    That may be a bit complicated, I rem this post where the guy was setting the suggestion list size,...
  16. VS 2010 Re: Listview Scrollbar display when Owner Draw set to true

    AFAIK, you just set the ListView.Scrollable Property to True.
  17. Replies
    8
    Views
    877

    Re: Dialog (X) clicked. Continue logic.

    No, because if I need to know that I would set the messagebox button param to MessageBoxButtons.OKCancel, this way if they do close the dialog using the [X] button it will return Cancel.
  18. Re: how to autometically scroll richtextbox to specific line

    FYI, Everything in VB.Net is zero index based, so using 1 for start position actually is skipping the very first char!
  19. VS 2010 Re: Show / Activate already opened Tab Page on Menu click

    Maybe save the tabpage to the forms Tag property?....



    Dim frmCollection = System.Windows.Forms.Application.OpenForms
    If frmCollection.OfType(Of frmEmployee).Any Then 'To Check if tab page is...
  20. Re: how to disable backspace, space and enter rtb

    Maybe something like,



    Private Sub RichTextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles RichTextBox1.KeyDown

    If RichTextBox1.Text.Trim.Length > 0 Then
    If e.KeyCode...
  21. Replies
    4
    Views
    698

    VS 2013 Re: Random number/letters

    Your re-initializing the random number generator in the loop, be better to just declare it at the top of the class, I tried like this and only get a few of same chars...



    Private R As New...
  22. VS 2013 Re: Click on external application menu items - visual basic

    You seem to be passing 0 for hItem, but when I use code below and select the first menu and first submenu (for say notepad) it returns a 1 for hitem, my API's are also declared slightly different,...
  23. VS 2010 Re: VB 2010 - KeyBoardDown event: how can i combine 2 keys correctly?

    I'm not sure where you're getting the keys from, but when I use the Form keydown event (with KeyPreview enabled) I only get last key pressed, but using GetKeyState for both possibilities, seems to...
  24. Replies
    4
    Views
    4,909

    Re: Problem Editing Text File

    Collections are zero indexed based, so the first element is at index 0,
    For line = 0 To
    ,and the last element is equal to the count minus one,
    For line = 0 To (lines.Count - 1)
  25. Replies
    8
    Views
    2,690

    VS 2010 Re: Vertical alignment ComboBox?

    I posted one idea using API, it seemed to work well as reader, but not 100% perfect if user types into it (never did figure out why). Member Niya posted it as a class which IIRC also centers the...
  26. Re: [VB2015] Fastest way to change image backcolor

    Never tried it , so FWIW,..
    https://www.programmingalgorithms.com/algorithm/color-substitution?lang=VB.Net
  27. Re: Preventing user from selecting a value from a ComboBox

    But if I type the first letter or number of an item in that list then the combo changes to that item, that doesn't seem very ReadOnly to me.

    EDIT: Although using my code you could also just as...
  28. Re: Preventing user from selecting a value from a ComboBox

    Not sure I understand , but if you want to make the edit box part of the combo read only but still allow the user to select items from combo listbox then maybe try sending the combo's edit box the...
  29. Replies
    18
    Views
    2,394

    VS 2010 Re: Detecting Laptop Video Output

    FWIW, This works on my (non-HDMI) dual monitor Win7 desktop w/ATI graphics card.
    Credit: IronRazerz, see his comments on msdn forum.



    Imports System.Runtime.InteropServices

    Public Class...
  30. Re: [RESOLVED] Maximize borderless form with transparent groupbox

    Looks pretty good! FWIW If you want to resize a borderless form maybe look at this thread, http://www.vbforums.com/showthread.php?568015
    I mod your form1 code using that idea.



    Imports...
  31. Re: Disable Textbox in General Tab of File Property Dialog ?

    "#32770" is classname for dialogs, "Edit" is classname for edit controls, there are a few others, AFAIK those Windows classnames don't change with language. Lots of info about classes here, About...
  32. Re: Disable Textbox in General Tab of File Property Dialog ?

    GetWindowText is really for getting a window's title bar text, not control text.

    I don't understand what you mean by needing a timer, Timer for what?
    I used SPY++ to look at the properties window...
  33. Replies
    4
    Views
    2,414

    VS 2010 Re: Help for scraping read desc

    There is probably a dozen ways to download a web page and scrap it for data, but no matter what/how you scrap a webpage if the site makes a change to the HTML it will likely break your code and/or...
  34. Replies
    13
    Views
    3,405

    VS 2015 Re: Automatic parenthesis

    fwiw, I just installed VS 2017 RC (.Net Desktop) and there seems to be no noticeable difference with how intelliSense works compared to 2015, so get used to it. ;)


    Edit: Option Strict is still...
  35. Replies
    13
    Views
    3,405

    VS 2015 Re: Automatic parenthesis

    I don't know of any option to re-enable that behavior , and even if there was I would expect it to be enabled by default. The inconsistency between versions sucks!

    I suppose you could create some...
  36. Replies
    0
    Views
    1,923

    XML in Code tags? + Animated GIFs ?

    VB CODE SNIPPETS FOR MESSAGEBOX


    OK/Info MessageBox
    http://i.imgur.com/bi3exow.gif


    <?xml version="1.0" encoding="utf-8"?>
    <CodeSnippets...
  37. VS 2015 Re: Textbox built in vscrollbar, no LargeChange option?

    I don't see an Edit type message that allows that setting, seems to be autoset based on the size of the control/font size, so just a crazy idea,... scroll some additional 10 lines when the page...
  38. Re: How do I do this in a For - to loop ?

    Try,


    For index = 0 To 7
    Doggie(index) = DirectCast(My.Resources.ResourceManager.GetObject("Hound" & index.ToString), Image)
    Next
  39. VS 2015 Re: Listbox Drag Drop Reorder - Selected Index

    Try setting the SelectedIndex to the same index used to insert the item,...



    Private Sub lstQueue_DragDrop(...

    lstQueue.Items.Insert(ix, obj)
    lstQueue.SelectedIndex = ix
  40. VS 2015 Re: referencing a control with a variable

    Dim ticker As String = "ADM"



    Me.Controls("lbl" & ticker).Text
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width