Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.09 seconds.

  1. Re: Next Item for Listbox in Background Worker

    Try checking if an item is actually selected first,..


    If ListBox1.SelectedItems.Count = 0 Then
    MessageBox.Show("Please select an item.")
    Else
    Dim item As String =...
  2. Re: Next Item for Listbox in Background Worker

    You can pass any object you want using the BGW parameters, then convert the object back to whatever it is, for example,...


    Public Class Form1
    Private Sub Button1_Click(sender As...
  3. Re: Problem with a class item with arraylist in Listview

    Welcome to the forum!
    Please post the code you need help with instead of images. To preserve the format of your code please use "
    ", examples,

    Using the "highlight" tags,...

    < your code...
  4. Re: Sending String Data from a VB6 program to a VB.NET program

    Heres one way, its based on code from MSDN and MSDN forum, see post #6 here,
    For example, this is the VB.Net code for receiving data from other apps,...


    Imports System.Runtime.InteropServices
    ...
  5. VS 2013 Re: Trying to make App that enumerates Directory and sub Directories

    Seen this posted here before, tho not sure how folks feel about a function that calls itself...


    Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As...
  6. Re: How to learn monitor off status with code

    EDIT: Think I misread that question, I was thinking of "off" as sleep mode, I don't turn off my displays.

    I could be totally wrong but, I think to detect that you'll need to get the users display...
  7. VS 2010 Re: [RESOLVED] Change Cursor while running the program (not at the beggining)

    That all depends, cursors don't generally use much memory and would be more efficient and have better performance if loaded from memory instead of files.

    In this case SetSystemCursor is destroying...
  8. VS 2010 Re: [RESOLVED] Change Cursor while running the program (not at the beggining)

    All it says to me is, don't expect to use the cursor you just created anywhere else because this API destrys the cursor you pass to it,

    Run this and it will stop with an error, look at the apps...
  9. VS 2010 Re: Change Cursor while running the program (not at the beggining)

    In most cases VB doesn't have a clue what you're do with Win32 API calls.
    My main concern is the (CopyIcon(LoadCursorFromFile() call.

    When you use SetSystemCursor(CopyIcon(LoadCursorFromFile()...
  10. Replies
    15
    Views
    369

    Re: Which syntax is better?

    Probably why Dim a() As String feels more natural to me :o, looks like something I used in BASIC 1985 :).
  11. VS 2013 Re: hide application icon from taskbar

    Have you tried setting the Form to a transparent icon?
  12. VS 2010 Re: Change Cursor while running the program (not at the beggining)

    FYI: ^ that has a GDI leak which will eventually crash your app!
    CopyIcon(LoadCursorFromFile) is creating a copy of the cursor LoadCursorFromFile has just created, so now you have two cursors in...
  13. VS 2010 Re: Change mouse's cursor outside form.

    That's because the code is only changing the Standard arrow (OCR_NORMAL) cursor, when you move the mouse over say Notepads edit area the cursor will change to a caret (OCR_IBEAM) cursor unless you...
  14. VS 2010 Re: Change mouse's cursor outside form.

    Not really, just that demo I posted is old and I forget all that stuff, would have to go to MSDN and readup on those APIs, have fun.
  15. VS 2010 Re: Change mouse's cursor outside form.

    Do you want to change the current cursor for Windows? If yes then I think you need to use SetSystemCursor API,
    Attached VB10 project based on code from ,......
  16. Thread: Bookmark.

    by Edgemeal
    Replies
    15
    Views
    540

    Re: Bookmark.

    Your welcome. ;)
  17. Replies
    2
    Views
    129

    VS 2013 Re: System.OutOfMemoryException

    When I tried that function it causes the same error when I attempted to crop something that was not actually there, so IOW, Are you sure your cropArea is within the source image bounds?
  18. Re: Adding Multpile Things To List Box At Same Time

    I'm not sure the best way to add an Integer array to a ListBox using AddRange, but you could cast the integer elements as objects like this, should work..



    Private MyNumberArray(9) As Integer...
  19. Thread: Bookmark.

    by Edgemeal
    Replies
    15
    Views
    540

    Re: Bookmark.

    Thank you! :thumb:
  20. Thread: Bookmark.

    by Edgemeal
    Replies
    15
    Views
    540

    Re: Bookmark.

    Then why is the HTML here trying to get the icon from "vbforums.com.lampdev/" ?


    <link rel="Shortcut Icon" href="http://vbforums.com.lampdev/favicon.ico" type="image/x-icon" />


    There is...
  21. Replies
    11
    Views
    385

    VS 2005 Re: How to save Favorite menu items?

    If you want easy then maybe don't use a menu and instead use a ComboBox to load/save the URLs using a text file...


    Private myUrlFile as string = "myurls.txt"
    ' To populate ComboBox1 from...
  22. VS 2015 Re: Help with OS Variables... If Windows 7 or higher... else....

    There is an example at the bottom of this page using Environment.OSVersion for Win7/8,...
    ...
  23. Replies
    11
    Views
    385

    VS 2005 Re: How to save Favorite menu items?

    OK, well I tried.
    Good Luck!
  24. Replies
    1
    Views
    149

    VS 2010 Re: USB Detecter. Please Help

    Windows raises events to tell you when a USB device is inserted and removed.

    If you search for WM_DEVICECHANGE you should find many example, like,,

    Public Class Form1
    Private Const...
  25. Replies
    4
    Views
    258

    Re: Read License Number

    You could use Substring, just count the chars starting with zero, and the number of chars you want, something like....



    Private Sub Button1_Click(sender As System.Object, e As...
  26. Replies
    17
    Views
    414

    Re: Width of code 'Box'.

    :)

    FWIW, I don't use IE11 but I tried it and it shows a horiz scrollbar when looking at my old test , and can only see about 1/2 of the right-side panel unless I scroll the browser horizontally.
    ...
  27. Re: IE9 after Jan 2016 Patch Tuesday - page rendering

    Keep it at 850.
    OK in Chrome/Win7 here!
  28. Replies
    17
    Views
    414

    Re: Width of code 'Box'.

    Well that extra 200px helps a lot, Thanks again!

    EDIT Are the vb.net Code windows still only 650?
    Looking at my old test here for example the "Code" and "vb.net Code" have different widths...
  29. Replies
    17
    Views
    414

    Re: Width of code 'Box'.

    Instead of 850px can you use a percentage like i did in my FF script?, that way the code window will auto size.

    Odd?...When I'm previewing my post in edit mode I can see and use the Horiz...
  30. Replies
    4
    Views
    236

    Re: A Problem with FindWindowEx

    Yes the order the controls are found always seems to be in the reverse order you expect them to be in, at least in all my testing, As long as the app creates the controls in the same order everytime...
  31. Replies
    17
    Views
    414

    Re: Width of code 'Box'.

    Ya vBulletin, "vBulletin 4.2.2", for example,
    http://www.xtremesystems.org/forums/showthread.php?293003-CPU-Z-v1-74-CPU-MultiThread-Test
  32. Replies
    17
    Views
    414

    Re: Width of code 'Box'.

    Ya I realized that after posting, but the width is hard coded to 650(or was last time i looked a year ago), and when looking at other forums I notice they use a percentage to set the code box widths....
  33. Replies
    17
    Views
    414

    Re: Width of code 'Box'.

    Its somewhere in the HTML where it says, p.className=='bbcode_code , and was hard coded to 650 pixels.... cause when I was using firefox I sometimes used to enable this script i made to make the...
  34. Replies
    2
    Views
    98

    Chrome browser and Code windows

    When I use Chrome browser on this site the CODE windows are wrapping text and hard to read code like that! :(
    Is there anything I can do on my end to fix this?, or possibly on your end, other...
  35. Replies
    11
    Views
    385

    VS 2005 Re: How to save Favorite menu items?

    When you add a new menu item at runtime you need more then just the text for the menu item, you'll also need to setup a handler so when the user clicks a menu item you know which item they clicked,...
  36. VS 2015 Re: Creating a function to place images on any control

    The first thing I would do is make the download part its own function, then after that I think you would need to check the type of control that you passed to the sub, maybe something like?..

    ...
  37. Re: Search/Find text in Notedpad using richtextbox on textchange event.

    I think I misunderstood your post, my code was for an open instance of notepad, not a file. USELESS POST DELETED!
  38. Replies
    4
    Views
    240

    Re: Calling vb from C# in same solution

    To preserve the format of your code use "
    ", click the "#" button or manually type it...

    "code" tag,..
    [CODE]
    < your code here >



    Or,
  39. Replies
    4
    Views
    187

    Re: Refreshing task bar icon

    I'm not sure what would cause the taskbar icon not to update then, and not exactly sure how you force a taskbar/app to redraw.
    An alternative, when I need to be notified but not disturbed one I've...
  40. Replies
    4
    Views
    187

    Re: Refreshing task bar icon

    You shouldn't need to. The most common cause of things like form controls (including task bar icon) not updating as expected is because the form (GUI thread) is running code in a tight loop, if true...
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.