dcsimg

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.76 seconds.

  1. Replies
    1
    Views
    169

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

    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...
  3. 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...
  4. 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...
  5. Replies
    2
    Views
    404

    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)
  6. Replies
    2
    Views
    371

    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...
  7. 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
    ...
  8. Replies
    3
    Views
    1,267

    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...
  9. 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
    ...
  10. 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,...
  11. VS 2010 Re: Listview Scrollbar display when Owner Draw set to true

    AFAIK, you just set the ListView.Scrollable Property to True.
  12. Replies
    8
    Views
    604

    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.
  13. 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!
  14. 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...
  15. 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...
  16. Replies
    4
    Views
    471

    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...
  17. 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,...
  18. 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...
  19. Replies
    4
    Views
    1,595

    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)
  20. Replies
    8
    Views
    1,196

    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...
  21. Re: [VB2015] Fastest way to change image backcolor

    Never tried it , so FWIW,..
    https://www.programmingalgorithms.com/algorithm/color-substitution?lang=VB.Net
  22. 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...
  23. 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...
  24. Replies
    18
    Views
    1,619

    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...
  25. 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...
  26. 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...
  27. 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...
  28. Replies
    4
    Views
    892

    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...
  29. Replies
    13
    Views
    1,345

    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...
  30. Replies
    13
    Views
    1,345

    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...
  31. Replies
    0
    Views
    1,775

    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...
  32. 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...
  33. 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
  34. 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
  35. VS 2015 Re: referencing a control with a variable

    Dim ticker As String = "ADM"



    Me.Controls("lbl" & ticker).Text
  36. Replies
    20
    Views
    1,538

    Re: Form keeps popping up after closing

    Couldn't you make something similar without using a web browser control and that web site?
    Just a simple example, I used the file kernel.txt from, https://github.com/duiker101/Hacker-Typer
    and...
  37. Replies
    5
    Views
    3,323

    Re: messagebox position?

    Just my 2 cents, but one problem making your own messagebox is it may not look like what the user is expecting, fonts too small, not bold, etc,,,. Windows has appearance settings the user can adjust,...
  38. VS 2012 Re: Underline button ALT keyboard shorcut characters

    Don't really understand the problem, But I wouldn't send any keys or do anything, and just tell the dumb user to learn how to use Windows and/or your app, LOL! :) Good Luck!
  39. VS 2012 Re: Underline button ALT keyboard shorcut characters

    Most Windows users should know by now that if you press the ALT key alone those underlines are shown. I don't know if there is a setting for that , though I suppose you could use sendkeys to press...
  40. Thread: Frustrating.

    by Edgemeal
    Replies
    11
    Views
    960

    Re: Frustrating.

    Not sure about the detection part but to change the display mode there is an exe in Windows called DisplaySwitch.exe, not sure which versions it comes with but here on Windows 7 with a two monitor...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width