Search:

Type: Posts; User: RipVoidWinkle

Page 1 of 8 1 2 3 4

Search: Search took 0.03 seconds.

  1. VS 2022 I had no idea Bounds.IntersectsWith() existed !

    I've always manually checked if 2 picture boxes are overlapping using .LEFT/TOP/WIDTH/HEIGHT.

    I just learned about
    Pic1.Bounds.IntersectsWith(Pic2.Bounds)

    Who knew?
  2. Replies
    30
    Views
    10,728

    VS 2019 Re: Startup Object is "Sub Main"? Not Form1?

    Had to revisit this again today.

    Microsoft Visual Studio Community 2022 (64-bit)
    Version 17.0.5

    Renamed Form1 to frmMain and got a build error.
    Changed Startup Form from Form1 to frmMain and...
  3. VS 2019 Re: Does anyone still use Form.KeyPreview ?

    I think I remember why I used to use it.
    If there was a button on the form, it would steal keypress events.
    But, now I do not have buttons on the form, so I don't need to set KeyPreview to TRUE....
  4. VS 2019 Re: Does anyone still use Form.KeyPreview ?

    When do I need to set it to TRUE ?
  5. VS 2019 Does anyone still use Form.KeyPreview ?

    I used to set this property to TRUE so I could listen to KeyPress events. Now, I don't use it, and I can still respond to keypress events. Does this property still matter ?
  6. VS 2019 Re: Form Load is missing "Handles MyBase.Load"

    What version are you running? I posted my version above.
    Project type is Windows Forms App (.NET Framework)

    I think MyBase.Load has been the default for many years now.
    Maybe you just haven't...
  7. VS 2019 Re: Form Load is missing "Handles MyBase.Load"

    Right, it was the form_load() handles event, not a control_click()
  8. VS 2019 Re: Form Load is missing "Handles MyBase.Load"

    Cutting and pasting what causes the error?
  9. VS 2019 Re: Form Load is missing "Handles MyBase.Load"

    Can't seem to replicate the copy/paste error.
    Can you be more specific ?
  10. VS 2019 Re: Form Load is missing "Handles MyBase.Load"

    Microsoft Visual Studio Community 2019
    Version 16.9.3

    When I double click the form, this event handler is always generated:

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles...
  11. VS 2019 Form Load is missing "Handles MyBase.Load"

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

    How does this happen?
    Did I accidentally delete it? ...
  12. VS 2019 Re: Can GIF file corrupt the VB project ?

    Yes, that will cause an error in the hidden Designer code, which then needs to be manually edited.
    This one is different.
  13. VS 2019 Can GIF file corrupt the VB project ?

    Added a GIF file to project.
    Started getting ".EXE not found" errors.

    Deleted the GIF from the project explorer,
    and from project->Resources
    and the error went away.

    Anyone seen this...
  14. VS 2019 Re: Can't find app.EXE when running project?? (can't generate the bin/debug/app.EXE ?

    Project--> Clean fixed the issue
  15. VS 2019 Re: Can't find app.EXE when running project?? (can't generate the bin/debug/app.EXE ?

    If it's Win10 antivirus, how do I turn off or allow the VB.net to create .Exe's?

    or it might be "Project--> Clean" needs to be done.
    Let me try project clean and report back
  16. VS 2019 [RESOLVED] Can't find app.EXE when running project?? (can't generate the bin/debug/app.EXE ??)

    Getting a weird error when I run/F5 a project.
    It seems like it can't generate the bin/debug/app.EXE file and then it errors out saying it can't run the app.EXE file.

    Anyone know what causes...
  17. Replies
    30
    Views
    10,728

    VS 2019 Re: Startup Object is "Sub Main"? Not Form1?

    Revisiting this. I started a new project. Renamed Form1 to frmMain. Seems to work. Project compiles and runs. Startup Object is frmMain.
  18. VS 2019 Re: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))

    Where do you see preview versions?
    I just get an update notice and accept.
  19. VS 2019 No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))

    I was running 16.8.5

    Was getting this error when trying to create a new project.
    I also noticed my toolbar was acting glitchy with no icons.
    Rebooting did not fix it.

    I updated to 16.8.6...
  20. Replies
    30
    Views
    10,728

    VS 2019 Re: Startup Object is "Sub Main"? Not Form1?

    I admire your focus!

    I don't want to deal with any of that overriding main stuff.
    For now, I will leave Form1 as the name until this gets sorted out.
  21. Replies
    30
    Views
    10,728

    VS 2019 Re: Startup Object is "Sub Main"? Not Form1?

    What is weird is that this error is not always replicated.
    I just changed the form name and it worked now.
    No error.

    16.8.4
    Project Properties Application
    Target Framework = .NET 5.0
    Startup...
  22. Replies
    30
    Views
    10,728

    VS 2019 Re: Startup Object is "Sub Main"? Not Form1?

    I'll just leave it at 5.0 and keep StartUp Object to Sub Main
  23. Replies
    30
    Views
    10,728

    VS 2019 Re: Startup Object is "Sub Main"? Not Form1?

    I am not deploying anything, and just running my programs on my laptop for myself.
    Should I just revert the target to 4.7.2 ?
  24. Replies
    30
    Views
    10,728

    VS 2019 Re: Startup Object is "Sub Main"? Not Form1?

    I never said anything about the filename.
    I never change the filename. It ALWAYS stays form1.vb
    But, in every project, I rename property name from Form1 to frmMain
    And the NAME cascades...
  25. Replies
    30
    Views
    10,728

    VS 2019 Re: Startup Object is "Sub Main"? Not Form1?

    It used to do this automatically
  26. Replies
    30
    Views
    10,728

    VS 2019 Re: Startup Object is "Sub Main"? Not Form1?

    Yup, Windows Forms App
  27. Replies
    30
    Views
    10,728

    VS 2019 Re: Startup Object is "Sub Main"? Not Form1?

    It is initially called Form1.
    Then I rename it to frmMain in the Properties window.
    The filename is still Form1.vb

    If startup Object was Form1, there are build errors.

    If startup Object was...
  28. Replies
    30
    Views
    10,728

    VS 2019 Startup Object is "Sub Main"? Not Form1?

    I'm running VS 2019
    v.16.8.4

    I created a new project.
    Project -> Properties -> Application -> Startup Object is "Sub Main"

    It always used to be Form1.

    But, if I change startup object to...
  29. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    Why? To delay the drawing. I already explained that. It's no fun to just see 100 circles already drawn. I need a delay.
    And, no, the timer method does not work, as explained.
  30. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    I have a thread.sleep in the paint() for each loop
    rendering is deliberately slowed so user can see circles appearing while counter rolls over
  31. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    Yea, I used a faster interval, and more circles.
    That's when the timer method fails, since it ticks() before circles are done drawing.
    So, then the screen looks frozen since it can only draw the...
  32. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    Yep, simple IF statement inside the Paint() ForEach loop stopped the Label update after all circles are drawn.
  33. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    I want the Label to update in real time as the circles are added.
    Like a running counter odometer.
    Looks dumb to draw 100 circles and then have a blank label, and then have it show 100 at the end...
  34. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    Yup, I did all of that.
    Except I didn't need to call Invalidate.

    I load the rect List on Form_Load()
    Then the Paint() renders all the ellipses using the list.
    Works.

    The only remaining issue...
  35. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    I update the label.text and call label.refresh within the "for each" ellipse loop in Paint()
  36. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    The other weird glitch is that I can only trigger the makeCircle() loop in FormLoad() Adding rectangles to the List
    When I Start the program, the circles are already drawing.

    If I try to...
  37. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    I rewrote my program.

    In the formLoad, I created a bunch of Rectangles, and added them to a List.
    in the Paint(), I drawEllipses for each Rect in the list.
    This solved the persistence issue and...
  38. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    Weird, I don't know how I missed post #9.
    Thanks for that. I will try this today.
  39. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    Shaggy, let me take another look this week.
    Maybe I will not directly draw, but create a collection of ellipses that can be re-rendered consistently.
    Like the Paint() just draws the list of...
  40. VS 2019 Re: Need help with DrawEllipse() and Me.Refresh() and Label1.text

    Yea, that is why I tried to do the drawing code outside of the Paint() event.

    From what I've gathered, it seems like the best way to create persistent drawings is
    1) using Paint(), if the...
Results 1 to 40 of 315
Page 1 of 8 1 2 3 4



Click Here to Expand Forum to Full Width