Showing results 1 to 25 of 500
Search took 0.07 seconds.
Search: Posts Made By: passel
Forum: General 03-01-2018, 03:10 AM
Replies: 3
Views: 334
Posted By passel
In the IDE, if you select a field such as...

In the IDE, if you select a field such as BackColor in the properties window, and select the dropdown arrow you'll see you have two tabs, palette and System.
System colors have the most significant...
Forum: .NET Interface and Graphics 02-13-2018, 10:13 PM
Replies: 1
Views: 1,833
Posted By passel
You probably should have posted an example of the...

You probably should have posted an example of the code you're using so we could see it, and possibly identify a problem or suggest an alternative.
Given that you want to use a picture in a picture...
Forum: .NET Interface and Graphics 02-13-2018, 09:35 PM
Replies: 6
Views: 1,960
Posted By passel
I guess for that you would want to use a colorMap...

I guess for that you would want to use a colorMap array.
You would load the image in a bitmap object (shouldn't matter if you loaded it from .gif or .png file).
You would then create a bitmap the...
Forum: .NET General 12-15-2017, 04:30 AM
Replies: 1
Views: 892
Posted By passel
There is probably some Linq query you could setup...

There is probably some Linq query you could setup to do it, but using Linq is definitely not my strong suit. I would probably end up just looping through the dictionaries in the list using For Each,...
Forum: .NET General 11-15-2017, 11:44 AM
Replies: 1
Views: 1,107
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, 11:24 AM
Replies: 2
Views: 1,510
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, 01:46 PM
Replies: 6
Views: 2,683
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, 12:05 PM
Replies: 13
Views: 1,655
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, 01:07 PM
Replies: 1
Views: 826
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, 12:56 PM
Replies: 3
Views: 991
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, 01:46 PM
Replies: 3
Views: 991
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, 03:02 PM
Replies: 1
Views: 7,120
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, 02:19 PM
Replies: 3
Views: 2,670
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, 02:13 PM
Replies: 2
Views: 2,218
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, 04:48 PM
Replies: 22
Views: 2,517
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, 11:50 AM
Replies: 22
Views: 2,517
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, 02:07 PM
Replies: 4
Views: 2,986
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, 07:31 PM
Replies: 7
Views: 1,207
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, 03:19 PM
Replies: 7
Views: 1,207
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, 03:00 PM
Replies: 1
Views: 3,180
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, 04:57 PM
Replies: 12
Views: 1,628
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, 04:17 PM
Replies: 12
Views: 1,628
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, 09:13 PM
Replies: 2
Views: 1,363
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, 01:21 AM
Replies: 8
Views: 2,379
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, 06:59 AM
Replies: 9
Views: 8,951
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...
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