Search:

Type: Posts; User: Mugsy323

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Re: Help. Reading same object on different forms.

    I wrote an app that I've been updating for years to manage Saved data for another app that is now in it's third generation.

    So I have separate forms laying out the data that varies based on both...
  2. Re: Help. Reading same object on different forms.

    I tried your example. It functions, but unfortunately can't be adapted to my situation (I'd need hundreds of references to every common object on each form.)

    I've already started work on a single...
  3. Re: Help. Reading same object on different forms.

    The problem is definitely far more complex, but thanks anyway. :)



    This looks interesting. The "Windows.Forms.Form" might be the missing piece of the puzzle. I'll give it a try. Thx.
  4. Re: Help. Reading same object on different forms.

    Thx. Looks like a "rewrite" is my only choice".
  5. Re: Help. Reading same object on different forms.

    Thx for the reply.

    I'm probably too much of a Newbie to understand "Common Base Class". If I understand correctly, this would be a third "universal" form containing all the elements of Form1 &...
  6. Help. Reading same object on different forms.

    I have two nearly identical forms (only one of which is loaded into a Panel at a time.) I want to read the value of an object that appears on both forms using a single command:

    (Sample code)
    ...
  7. VS 2022 Re: Panel scrollbars don't move when I scroll window via code.

    I'm not sure what you mean by using a "UserControl" instead of a form.

    AutoScroll already set to True, but "False" didn't work either.
  8. VS 2022 Re: Panel scrollbars don't move when I scroll window via code.

    Crud. Seems I spoke a bit too soon on "it works great."

    At low resolution, it causes the form to repeatedly refresh b/c the form is still jumping to the top (triggering a "MouseLeave") and then...
  9. VS 2022 Re: Panel scrollbars don't move when I scroll window via code.

    Hmm. That didn't work either but I FOUND A SOLUTION!

    After setting the ".VerticalScroll.Value" I then set ".ScrollControlIntoView(sender)" and it jumps right to the location of the floating...
  10. VS 2022 Re: Panel scrollbars don't move when I scroll window via code.

    Refreshing the panel made no difference. And I don't know how to "refresh" the vscroll. :(
  11. VS 2022 Re: Panel scrollbars don't move when I scroll window via code.

    Class for Form1 (an 800x500 form with a Panel object called pnlContent nearly filling the form):


    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles...
  12. VS 2022 Re: Panel scrollbars don't move when I scroll window via code.

    I created a small sample project to demonstrate what's going on:

    I put a form inside a panel. On Load, I try (and fail) to scroll the form. If you click the "Label" halfway down, a popup tells you...
  13. VS 2022 Re: Panel scrollbars don't move when I scroll window via code.

    Thx for the reply.

    In this particular instance, it takes place in a "_MouseLeave" instance from a floating preview image.
  14. VS 2022 Panel scrollbars don't move when I scroll window via code.

    Thx for clicking on my question.

    I'm displaying a form in scrollable panel/window. I'm able to force the window to scroll up/down to a desired point (ONCE), but when I do, the scrollbar doesn't...
  15. Replies
    7
    Views
    1,684

    Re: Workaround for "?" wildcard search?

    Oooo. I need to try this (wrapping the search term in quotes in my code.)

    Thx.
  16. Replies
    7
    Views
    1,684

    Re: Workaround for "?" wildcard search?

    I thought I posted to the VB.Net forum. Sorry. My bad. :(
  17. Replies
    7
    Views
    1,684

    Re: Workaround for "?" wildcard search?

    Thx for the reply, but this all has to be automated within my utility. I can't ask users to edit files by hand in mid process before the program can continue.
  18. Replies
    7
    Views
    1,684

    Workaround for "?" wildcard search?

    I discovered (and reported) a bug in Windows (11 only?) where searches using the "?" wildcard produce the same result as using the "*" wildcard (works fine from the "DOS" Command Prompt.)

    The "?"...
  19. Replies
    22
    Views
    3,837

    Re: Can't start timer.

    Great. I think we can label this Case Closed. :)
  20. Replies
    22
    Views
    3,837

    Re: Can't start timer.

    Quick question.

    From JMC's example:


    Private Sub SetTextBoxText(ByVal text As String)
    If Me.TextBox1.InvokeRequired Then
    Me.TextBox1.Invoke(New SetTextBoxTextInvoker(AddressOf...
  21. Replies
    22
    Views
    3,837

    Re: Can't start timer.

    Thx. So if I understand you correctly, I must execute code "on the correct thread" to modify particular objects. And those threads will always exist once used.

    So there is no way to go back to...
  22. Replies
    22
    Views
    3,837

    Re: Can't start timer.

    HALLELUJAH!

    (For anyone searching this in the future, I found your tutorial here.)

    There were a couple of details that I wasn't clear on (specifically, "SetTextBoxText" vs...
  23. Replies
    22
    Views
    3,837

    Re: Can't start timer.

    Thanks. This whole "BackgroundWorker" and use of "Tasks" is completely new to me, so I haven't the foggiest on how to "update the UI from a background thread."

    I thought that's what adding the...
  24. Replies
    22
    Views
    3,837

    Re: Can't start timer.

    Great. Your code appears to work (though I am having a bit of difficulty integrating it into my existing code.) My integration has somehow resulted in the form being reloaded recursively (my problem,...
  25. Replies
    22
    Views
    3,837

    Re: Can't start timer.

    Thx. I'll try this tonight.

    One quick question though: What is the benefit of turning the form into it's own object ("foo")?
  26. Replies
    22
    Views
    3,837

    Re: Can't start timer.

    The timer is used to add an animation of the copy process.
  27. Replies
    22
    Views
    3,837

    Re: Can't start timer.

    Thx for the reply. I'm still stuck.

    I scoured Google for how to do a multi-threaded file copy using "Tasks", yet even after making extensive changes, my Timer still never runs (Breakpoint on first...
  28. Replies
    22
    Views
    3,837

    Re: Can't start timer.

    Thx for the reply. Here is my Copy code:


    For Each myFile In Directory.GetFiles(strPath & "Save", "Data*.*")
    Try
    My.Computer.FileSystem.CopyFile(myFile,...
  29. Replies
    22
    Views
    3,837

    Can't start timer.

    I created my own File Copy dialog (had to) and I'm trying to use a timer to add a simple 5-frame animation.

    I created a form and placed a Timer object on it. The timer is set to Enabled with an...
  30. Replies
    3
    Views
    1,051

    Re: Un-highlist listbox when not enabled?

    My apologies for not replying. Your reply got caught in spam filter.
  31. Replies
    3
    Views
    1,051

    Un-highlist listbox when not enabled?

    I created a form with a listbox. It always loads with the default text selected.

    The problem is, I disabled the listbox until the user completes a previous step, yet the selection highlight...
  32. VS 2019 Is there a way to force Overwrite when using "UIOption.AllDialogs" to copy files?

    I have a program that checks for a Backup folder when it starts, and if not found, prompts for you to create one.

    The copy process can take a long time, so I use the standard Windows copy dialog...
  33. Replies
    8
    Views
    1,230

    Re: Case test not evaluating?

    The path is displayed in a label on my form, so I know it is correct. And regardless of location, the text being read is still "Bob".

    Thx.
  34. Replies
    8
    Views
    1,230

    Re: Case test not evaluating?

    I was wondering the same thing, so I tried replacing the Select Case with "If" statements and they still are not being triggered:


    If InStr(strLineBuffer, "Bob") > 0 Then...
  35. Replies
    8
    Views
    1,230

    Case test not evaluating?

    I have a simple Case statement inside a loop that should work but doesn't and I have no idea why.

    I'm reading a simple text file that I'm parsing for certain strings, and if found, replaces them:...
  36. Replies
    4
    Views
    1,159

    VS 2019 Re: Help. Can't reset ComboBox to default text.

    Thx for the reply.

    I have a label beside the ComboBox, but a blank box with no text is not intuitive. It should at the very least show the first option. I don't need the user to be able to edit...
  37. Replies
    4
    Views
    1,159

    VS 2019 Re: Help. Can't reset ComboBox to default text.

    Thx for the reply.

    The style is set to "DropDown" with displayed default text.
  38. Replies
    4
    Views
    1,159

    VS 2019 Help. Can't reset ComboBox to default text.

    I have a combo box on my form. The default text is "Select Type"

    One of my options is not yet supported, so I display a MsgBox and then try to reset the Combo back its default, but nothing I try...
  39. Replies
    6
    Views
    1,256

    Re: Detect resize Top/Bottom vs Left/Right?

    This looks great. I'll try it out now. Thx!

    FOLLOW-UP: Awesome. Works great. Big thanks.
  40. Replies
    6
    Views
    1,256

    Re: Detect resize Top/Bottom vs Left/Right?

    Yeah, that was the first thing I tried. But I couldn't figure out how to check the value.
Results 1 to 40 of 83
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width