Showing results 1 to 25 of 500
Search took 0.07 seconds.
Search: Posts Made By: passel
Forum: .NET General 11-15-2017, 12:44 PM
Replies: 1
Views: 131
Posted By passel
It's hard to say without understanding some of...

It's hard to say without understanding some of the references in your code.
Assuming the frm_ReportViewer1 is a form in your project, the New method by default doesn't have any parameters, so if you...
Forum: .NET General 11-15-2017, 12:24 PM
Replies: 2
Views: 136
Posted By passel
Which workload of Visual Studio Community did you...

Which workload of Visual Studio Community did you install, i.e. did you select the Net Desktop development as opposed to the Universal?

Windows Forms App should be available from the New Project...
Forum: .NET General 09-07-2017, 02:46 PM
Replies: 6
Views: 550
Posted By passel
p.s. My mistake. I thought this was a VB6...

p.s. My mistake. I thought this was a VB6 question for some reason.
Assuming my premise below is correct, to copy the one array to a dynamic array you can use the .Clone method in VB.Net.
MyValues...
Forum: .NET General 08-07-2017, 01:05 PM
Replies: 13
Views: 529
Posted By passel
Well, I don't know but I would guess that it gets...

Well, I don't know but I would guess that it gets called whenever the IDE's version of the form is recreated or changed, i.e. when you add the control, or when you exit debugging and return to the...
Forum: Interface and Graphics 07-17-2017, 02:07 PM
Replies: 1
Views: 325
Posted By passel
Assuming that is your existing code, I would...

Assuming that is your existing code, I would think if you saved the graphics state before you call "draw objects", and then don't call "draw objects", but continue on and draw the lines, then restore...
Forum: Interface and Graphics 07-17-2017, 01:56 PM
Replies: 3
Views: 568
Posted By passel
I don't know offhand, and won't bother trying to...

I don't know offhand, and won't bother trying to test it. Functionally, since the needed code should be the same whether you do it or the method does it, I think the speed should be very much the...
Forum: Interface and Graphics 07-10-2017, 02:46 PM
Replies: 3
Views: 568
Posted By passel
You can try to read the remarks here...

You can try to read the remarks here (https://msdn.microsoft.com/en-us/library/system.drawing.drawing2d.matrix(v=vs.110).aspx) to see if you can make any sense of how the matrix works.
There are a...
Forum: .NET Game Programming 06-05-2017, 04:02 PM
Replies: 1
Views: 2,146
Posted By passel
You can't directly. GDI+ doesn't support 3D...

You can't directly. GDI+ doesn't support 3D drawing for the most part.
You would have to convert the 3D coordinates into a 2D representation of the 3D coordinates, and then draw using those 2D...
Forum: .NET General 06-05-2017, 03:19 PM
Replies: 3
Views: 758
Posted By passel
Perhaps one place you may want to always have a...

Perhaps one place you may want to always have a Try Catch block, especially if you do a lot of initialization from the Form's Load event, is in the Form's Load event. There are situations where if an...
Forum: .NET General 06-05-2017, 03:13 PM
Replies: 2
Views: 568
Posted By passel
I don't know specifically, but I've found that...

I don't know specifically, but I've found that the order the controls are in the forms collection depend on the order they are written in the .frm file. Since the .frm file is updated with code quite...
Forum: Interface and Graphics 02-19-2017, 05:48 PM
Replies: 22
Views: 1,523
Posted By passel
Which is the opposite of what I mentioned might...

Which is the opposite of what I mentioned might show the color table update.
Not that what I said will definitely work, or be faster, but is based on my impression of how the Picturebox control...
Forum: Interface and Graphics 02-16-2017, 12:50 PM
Replies: 22
Views: 1,523
Posted By passel
I'm nowhere near where you guys are in the low...

I'm nowhere near where you guys are in the low level details of DIBs and Picture.hDC, but I'm kind of wondering if you did a PB.Refresh after changing the palette.

As far as I know, when you load...
Forum: Interface and Graphics 02-06-2017, 03:07 PM
Replies: 4
Views: 1,383
Posted By passel
What do you base that on? An equilateral...

What do you base that on?
An equilateral triangle where the base is one side of a square, the corner opposite of the base will not touch the edge of the opposite side of the square.
The height of...
Forum: Interface and Graphics 01-18-2017, 08:31 PM
Replies: 7
Views: 666
Posted By passel
You say it works, but I don't see that it can...

You say it works, but I don't see that it can work, at least not for very long.
First, you mentioned zooming 1.5x, but your "times" value is an Integer so can't be 1.5, i.e. your example used 2 for...
Forum: Interface and Graphics 01-17-2017, 04:19 PM
Replies: 7
Views: 666
Posted By passel
What does the code look like? How is the...

What does the code look like?
How is the zooming being done, i.e. is the image being drawn with different size source and destination rectangles, or is the size of the picturebox being changed,...
Forum: Game Programming 01-12-2017, 04:00 PM
Replies: 1
Views: 1,608
Posted By passel
What does "touch it" mean? 1. If you click on...

What does "touch it" mean?
1. If you click on it with the mouse, pop up the message box?
2. If some other thing you're moving in some manner comes in contact (image intersects with image), then...
Forum: Interface and Graphics 01-10-2017, 05:57 PM
Replies: 12
Views: 1,031
Posted By passel
I'm getting ready to head home, so I was just...

I'm getting ready to head home, so I was just doing a double-check before heading out.

I noticed that the code you posted was to move picture1.
But in your screen captures, you indicate you want...
Forum: Interface and Graphics 01-10-2017, 05:17 PM
Replies: 12
Views: 1,031
Posted By passel
That isn't quite correct. The code assumes the...

That isn't quite correct.
The code assumes the ScaleMode of the picturebox and the container are the same. They have to match, so could both be twips, or pixels, or points, etc...

I don't...
Forum: Interface and Graphics 01-03-2017, 10:13 PM
Replies: 2
Views: 809
Posted By passel
Well, there are a number of ways to approach...

Well, there are a number of ways to approach this, and how you do kind of depends on how you think of the objects you are drawing and what they're coordinates are.
Do you use world coordinates for...
Forum: Installation / Documentation 12-18-2016, 02:21 AM
Replies: 8
Views: 1,703
Posted By passel
What if you don't click the shortcut? If you...

What if you don't click the shortcut?
If you run the exe directly does it have the same issue?
Is it possible the other machines have Microsoft Office installed and this one doesn't?
Forum: Miscellaneous Languages 10-26-2016, 07:59 AM
Replies: 9
Views: 6,357
Posted By passel
<edit> Caveat: Your file "vbs" is suggesting...

<edit> Caveat: Your file "vbs" is suggesting vbscript, and I don't know vbscript, so the below response is probably completely wrong. I wrote it thinking VB6, but then realized, looking back, that is...
Forum: Interface and Graphics 10-25-2016, 02:35 PM
Replies: 32
Views: 2,841
Posted By passel
No, I think Diletante's post (#6) was the simple...

No, I think Diletante's post (#6) was the simple solution.
There are a couple of reasons the picture would shudder madly but perhaps the most likely is that the scalemode of your inner picturebox...
Forum: .NET General 10-19-2016, 09:16 AM
Replies: 3
Views: 1,512
Posted By passel
I can't look at your image from work (blocked),...

I can't look at your image from work (blocked), but perhaps these two old threads might help.
(The code is for VB6, but the calculations should be the same regardless)....
Forum: .NET General 10-10-2016, 04:23 PM
Replies: 3
Views: 1,082
Posted By passel
Well, does it involve manipulating icons, since...

Well, does it involve manipulating icons, since the exception seems to indicate it was in the process of drawing an icon when it got the exception.
Forum: Interface and Graphics 09-30-2016, 09:55 AM
Replies: 3
Views: 1,109
Posted By passel
That is one way to do it. I've posted some...

That is one way to do it.
I've posted some explanations of the graphic contexts of Pictureboxes before, but I don't have time to try to ferret out the best one, so just searching here is apparently...
Showing results 1 to 25 of 500

 
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