Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: Gruff
Forum: .NET Interface and Graphics 07-26-2014, 11:59 AM
Replies: 11
Views: 3,100
Posted By Gruff
Well it is VB.NET's approach. Not mine. ;) ...

Well it is VB.NET's approach. Not mine. ;)

Realize what I threw together for you was just a rough idea.
it could be improved in many ways. Perhaps by making the draw sub routine part of a...
Forum: .NET Interface and Graphics 07-22-2014, 10:07 AM
Replies: 11
Views: 3,100
Posted By Gruff
Not a problem. I guess one important fact to...

Not a problem. I guess one important fact to note is that since I used your coordinates for the valve in this sample it will start drawing the valve at the mouse coordinates from the upper left...
Forum: .NET Interface and Graphics 07-21-2014, 04:15 PM
Replies: 11
Views: 3,100
Posted By Gruff
Here is a rough sample that draws one of your...

Here is a rough sample that draws one of your valves in a selectable color at a selectable angle wherever the mouse clicks. See the attached Pic below.

Note we are using a list(of type) to store...
Forum: .NET Interface and Graphics 07-19-2014, 06:54 PM
Replies: 11
Views: 3,100
Posted By Gruff
If you mean explain my code then sure. ...

If you mean explain my code then sure.

Painting takes place with the graphics object in VB.NET winforms.
The best way to get the graphics object is inside the Paint event.

The 'e' parameter in...
Forum: .NET Interface and Graphics 07-15-2014, 09:13 AM
Replies: 11
Views: 3,100
Posted By Gruff
I believe you are going about it backwards. ...

I believe you are going about it backwards.

You should be passing the e.Graphics object to a sub routine.

Draw on the graphics object in your sub routine.

Imports System.Drawing

Public...
Showing results 1 to 5 of 5

 
Forum Jump
Advertisement:



Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe