Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    2
    Views
    146

    Re: _Scroll not being called??

    Maybe inherit the control and RaiseEvent for ScrollToControl?




    Public Class FLPanelEx
    Inherits FlowLayoutPanel
    Public Event ScrollingToControl()

    Protected Overrides Function...
  2. Re: Storing a Connection String in My.Settings?

    Not nessasarily true, the OP could have the "Save My.Settings On Shutdown" option disabled.
  3. Replies
    9
    Views
    238

    Re: Problems in MousePosition

    Good suggestion!
    I don't see how anyone can be programming in API and not know what types to pass, running before they can walk! :eek:
  4. VS 2012 Re: How to handle MenuStripBar Layout?

    The sizing grip makes it really hard to select the button in the StatusStrip, if I disable that it seems to work pretty good,


    Private Sub Form1_Load(sender As System.Object, e As...
  5. VS 2012 Re: How to handle MenuStripBar Layout?

    Try CanOverflow , Overflow ?


    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

    MenuStrip1.CanOverflow = True
    For i = 0 To...
  6. VS 2013 Re: im a newbie to vb and im having difficulties coding this, can anyone help?

    comboBox1.Items.Add... needs to be inside a sub/func, like button_click, form_load, etc,etc,...




    Public Class Form1

    Private customer_name() As String = {"john", "aaple"}

    Private...
  7. Re: pls help findwindowex windows capture EnumChildWindowProc

    EDIT: My converted VB6 code worked after all, must of been something else wrong,
    anyway, If you pass this function the foreground window handle it should return the child window handle that has...
  8. Re: AES padding is invalid after first file opened

    I'm not sure why you would be required to call .Dispose in that sub, once out of scope GC should take care of that I would think.

    MS doesn't call .Dispose in their code example either, which looks...
  9. Replies
    3
    Views
    159

    VS 2010 Re: Creating a REAL progress bar?

    Member jmcilhinney has some great examples here , so I Google: splash screen jmcilhinney site:vbforums.com

    First hit, Splashscreen perform action

    Post #3 sounds like a good start. Good luck!
  10. VS 2008 Re: Created Class dosnt read data from DGV in FORM3

    Its not a good idea to hard code the form name in code, that class is actually looking at the default instance of Form3, so it wont work with a any new instances of form3.

    I would try passing the...
  11. Replies
    13
    Views
    300

    VS 2012 Re: Error creating window handle- urgent advice needed

    Great!
    I got into the habit of using, Using - End Using where possible, its easy to forget to call .Dispose.
  12. Replies
    13
    Views
    300

    VS 2012 Re: Error creating window handle- urgent advice needed

    How about checking the GDI count of the app while in use?
    Windows task manager > processes tab > GDI Objects column. (may need to add this column, not shown by default)

    When code creates a GDI...
  13. VS 2013 Re: HowTo Make Mouse Left Click [Addon To My Code]

    OK Great, now do us a favor and mark this thread as Resolved from the "Thread Tools" menu near the top-right of this thread.

    How do I mark a thread Resolved? / Why mark your thread resolved?...
  14. VS 2013 Re: HowTo Make Mouse Left Click [Addon To My Code]

    If you want to automate a mouse click then you need to use API, have a look at SendInput, though using Win7 here the mouse_event API still works for this,



    Private Declare Auto Sub mouse_event...
  15. Re: find an item text in a multi-coulum (checked) listview in vb 2010 express

    Try get the lv item, then use that to select the item, etc,etc,.. e.g..


    Dim lvi As ListViewItem = ListView1.FindItemWithText("text", True, 0)
    If lvi IsNot Nothing Then
    lvi.Selected = True...
  16. Replies
    0
    Views
    197

    [RESOLVED] YouTube Video Test

    ok works. - video was deleted
  17. Re: How To Use SetCapture and WindowFromPoint to Select a Window

    http://support.microsoft.com/kb/143045
    classic vb, so you'll need to convert it to .net.

    EDIT


    Not sure how safe using a .net Point as a Ref in anAPI call is, but I know using a .net...
  18. Re: How To Use SetCapture and WindowFromPoint to Select a Window

    Those APIs are not even declared for vb.net, you should know that much by now.
    You need to show some effort, members will help, but not do your homework for you!

    If you need help declaring APIs...
  19. VS 2012 Re: Get all window locations, sizes and names?

    Got $10? ;)
    Windows Blinds.
  20. VS 2012 Re: [RESOLVED] Getting Average RGB Color Value of Entire Screen

    Ya wow, went from around 45ms to 5ms on my PC.



    Compiled x64, FW 4.0, Win7-64, 1920x1080, i7-3770.

    i00: Color [A=255, R=156, G=149, B=173] 16.4221ms
    i00: Color [A=255, R=156, G=149,...
  21. Replies
    9
    Views
    238

    Re: Problems in MousePosition

    Well the API returns an IntPtr, so we declare our variable the same way, the API parameter is a Point, so we pass it our values as a Point,
    Dim list As IntPtr = WindowFromPoint(New Point(25, 746))...
  22. Replies
    9
    Views
    238

    Re: Problems in MousePosition

    The code only worked if I set my compile option to x86, so I set it back to x64 and changed the WindowFromPoint declare to pass Point, and then it worked,.,


    Option Strict On
    Imports...
  23. Thread: Loop Counter

    by Edgemeal
    Replies
    10
    Views
    286

    Re: Loop Counter

    I thought the same thing, so can only guess that is the way classic VB worked? (don't have VB6 installed here to test that).
  24. Replies
    8
    Views
    199

    VS 2013 Re: Random Item from ListView

    You really should have Option Strict On, you can set it in Project properties > Compile, and also set it to On in Tools > Options > VB Defaults so that all future projects set it to On by default,...
  25. VS 2012 Re: Need Help with ListView Mouse Wheel Event

    I'd need a demo project to play/test with to comprehend all that. ;)

    As far as the LV class goes, I don't see why it needs to known anything about other controls. Normally you'd just raise the...
  26. Replies
    6
    Views
    172

    Re: Process in use.

    BTW, From what I remember of VB6, it appears your code is using file handle #1, but you are not closing "1", instead of just Close(), that should probably be
    Close(1) , Edit or maybe that should...
  27. Replies
    6
    Views
    172

    Re: Process in use.

    Try,


    Private Sub Results()
    ' write listbox items to file
    IO.File.WriteAllLines("C:\Duplicates\DuplicateList.txt", ListBox1.Items.Cast(Of String))
    ' clear listbox
    ...
  28. VS 2010 Re: Progress bar with just a line, not filling?

    You could try drawing the progress value yourself, may need some tweaking...



    Public Class ProgressBarEx
    Inherits ProgressBar

    Public Sub New()
    ...
  29. VS 2010 Re: VB 2010 Close webbrowser without messagebox?

    It looks like a regualr dialog window, if it is then,... If you know when to expect this window then you could possibly start a timer, in the timer when that window is found you stop the timer, and...
  30. Replies
    8
    Views
    165

    Re: Beginner Text box communication

    try, .ToString("N2")

    many ways to format, see MSDN...
    http://msdn.microsoft.com/en-us/library/26etazsy%28v=vs.110%29.aspx
  31. Replies
    8
    Views
    165

    Re: Beginner Text box communication

    Well I did update the code after I initially posted it, I think it does that.
  32. Replies
    12
    Views
    276

    Re: Numeric value fom Enum

    I see you marked this thread as RESOLVED.
    So what was the solution?
    Thanks!
  33. Replies
    12
    Views
    276

    Re: Numeric value fom Enum

    I was going to suggest you give these classes a try here,
    http://www.vbforums.com/showthread.php?552547-NET-2-0-Displaying-Friendly-Names-for-Enumerations

    but using that code, when I pick "5...
  34. Replies
    12
    Views
    276

    Re: Numeric value fom Enum

    What do you need the combo box to do? The blog code seems to work fine with your enum..


    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    ...
  35. Replies
    8
    Views
    165

    Re: Beginner Text box communication

    Something like this?..
    EDIT Revised version...


    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    ListBox1.Items.AddRange({"A", "B", "C"})
    ...
  36. VS 2013 Re: Showing TextBox Text in a Label which is in another Form [Strange Issue]

    Sounds/looks sort of like like an instance issue, where you think you are setting one form but actually setting another / the default instance,
    Few way you can try, make a Public string property in...
  37. Poll: Re: Test Forum Image Resizing - What looks better?

    Well I just realized the image the forum resized (which was uploaded as a PNG) has been changed to a JPG and is only 19KB, whereas the image I resized in windows and upload as a PNG is still a PNG...
  38. VS 2012 Re: Saving a panel background image as a bitmap?

    I'm guessing you don't have write permissions for that folder?,
    First time I got that error with similar code was for that reason, so I tried saving to a public folder on C:\ and it saved without...
  39. Re: Need Regular Expression for 2 or more newline characters

    I don't do regex, but after a minute of trial and error this seems to work, where a single newline is preserved, but 2 or more newlines are replaced with "<PARAGRAPH>".



    Dim pattern As String =...
  40. Re: How can I control pop up menu In program another

    BTW, the code I posted only works with windows menus, they have the classname "#32768".
    If the code below displays "0" in titlebar then either no menu is open or the menu that is shown is not a...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.