Search:
Type: Posts; User: RipVoidWinkle
Search:
Search took 0.02 seconds.
-
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?
-
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...
-
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....
-
When do I need to set it to TRUE ?
-
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 ?
-
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...
-
Right, it was the form_load() handles event, not a control_click()
-
Cutting and pasting what causes the error?
-
Can't seem to replicate the copy/paste error.
Can you be more specific ?
-
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...
-
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? ...
-
Yes, that will cause an error in the hidden Designer code, which then needs to be manually edited.
This one is different.
-
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...
-
Project--> Clean fixed the issue
-
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
-
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...
-
Revisiting this. I started a new project. Renamed Form1 to frmMain. Seems to work. Project compiles and runs. Startup Object is frmMain.
-
Where do you see preview versions?
I just get an update notice and accept.
-
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...
-
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.
-
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...
-
I'll just leave it at 5.0 and keep StartUp Object to Sub Main
-
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 ?
-
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...
-
It used to do this automatically
-
-
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...
-
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...
-
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.
-
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
-
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...
-
Yep, simple IF statement inside the Paint() ForEach loop stopped the Label update after all circles are drawn.
-
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...
-
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...
-
I update the label.text and call label.refresh within the "for each" ellipse loop in Paint()
-
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...
-
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...
-
Weird, I don't know how I missed post #9.
Thanks for that. I will try this today.
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|