Search:
Type: Posts; User: cheesebrother
Search:
Search took 0.02 seconds.
-
Well i guess since rtbs aren't the most compatible with metafiles I'll have to use bitmaps instead. One reason why I was wanting to use metafiles is because their file size is very small. When I...
-
In a program I'm planning to generate reports which I'll display using the rich text box. Besides rich text, i want to put images into the rtb. I've looked up how to put images into rtbs and the...
-
It seems be working again. I'm not sure whether it was chance or not but it seemed to work after i built the dll to another folder and referenced that.
-
Yes, the build is definitely succeeding. Actually I just discovered that it works in new projects (unfortunately I'm kind of tied to my current problem project). In my problem project I can see the...
-
I'm getting a "TypeLoadException was unhandled" error. The description says
Could not load type 'dnUtilities.OtherFunctions' from assembly 'dnUtilities, Version=1.0.0.0, Culture=neutral,...
-
In that case this code most likely isn't the problem, although it could be changed to work. You could look throughout your whole project and try to find the location of the problem by remming out...
-
For drawing lines and circles you can get that here. If you want to find out how to draw things the best and easiest way is to search what you want with google. As for a dotted line take a look at...
-
Yes, that's the way classes work. To copy your class you could make a clone function. See what si_the_geek told me when i asked how to copy a class. (link).
-
Here you go.
Private Sub Form_Resize()
Picture1.Width = Me.ScaleWidth
Picture1.Height = Me.ScaleHeight
End Sub
The scalewidth and scaleheight properties of the form give you the width...
-
Here's some simple functions to give you what you're looking for.
Private Function Min(N1 As Double, N2 As Double, N3 As Double) As Double
Min = N1
If N2 < Min Then Min = N2
If N3 < Min...
-
If you're looking to force focus on one control then here's an enhanced version.
Private Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer
Private Const VK_TAB = &H9...
-
I found that this enables alphablending images on my pc
Device.SetRenderState(RenderStates.AlphaBlendEnable, True)
Device.SetRenderState(RenderStates.SourceBlend, Blend.SourceAlpha)
...
-
Thanks, i'm glad to know that. I was using it because it was used in vb6. The reason why i was trying to use a collection is that i'd like to make my own imagelist which can hold large images with...
-
An interesting thing which i found was that when i change the devicetype of the device it works on my pc
Device = New Device(0, DeviceType.Reference, Me.Handle,...
-
A change in the .net framework version has become necessary for my project and i'm running into some issues with changing a usercontrol. I narrowed done my code and got to just the bare minimum to...
-
Okay. That's the message i just typed out 20 minutes ago. Now i would like to apologize to you for being a royal pain. I just did what i should have done a while ago. I tested your example on...
-
Well, I installed the October 06 sdk and so far the example doesn't run any differently. Do i need to reference different files? Right now the ones that i am referencing are in...
-
Ok, you're right. I'd rather have the examples for vb.net. I'm using XP so getting the sdks for 10 and 11 would be useless. So if i were to get the dx9 sdk that would be enough to run your...
-
Blast! You're probably right. I got the latest version of what i though was the sdk, it was "DirectX End-User Runtimes (June 2010) Full Download." I'll get the one called "June 2010 DirectX SDK",...
-
Hmm, i tried that and it didn't really work. I drew a .png and it displayed alright on the black background which you've set it to clear to. Then i changed the clear color to white so that i could...
-
-
So do you have suggestions for fixing the errors that i mentioned? Also, would it be possible to share code for drawing opaque images (like .png) and how to alphablend images? That would be really...
-
Wahoo!!! I just ran the example! I'm still having a problem switching to the 3.5 framework so i "cheated". I opened my project file in notepad and changed the line
...
-
The code looks really good! I put it into a test program and had some issues. First of all, i can't run it, same problem as before. I got a "File Load Exception was unhandled" error message when i...
-
I followed the one for vb2010 and got a lot farther than before. I was referencing the wrong files so at least now i've got the ones in "\Microsoft.NET\DirectX For Managed Code\1.0.2902.0\...". ...
-
DirectX and DirectDraw are things I’m trying to learn how to do, especially directdraw. I’ve tried a few various tutorials showing how to draw images or shapes but I’ve never been able to do them...
-
I've got a usercontrol purely made by me, no inheritance. I've got two of these usercontrols on another usercontrol which i wan't to have focus all the time, or if that isn't possible to at least...
-
Right, so how can i make it so that my usercontrol won't receive focus?
I'm really asking this because this usercontrol is inside one of my other usercontrols... which makes it the only kind of...
-
A form's key events will fire when you press a key. Place a control on that form and it won't happen any more because that control has focus. There are exceptions to this however as you will see if...
-
I'm not so sure about using a sub main now. To seems a bit useless because a main sub doesn't do anything there, just shows the form.
This isn't a problem. Notice the line...
-
Ok, i'll need to rework my code to use a main sub. I've got a question about the form dispose evemt though. I used it because i was trying to get the same event as form_unload in vb6. What would...
-
VS 2010 End
End
A statement which as far as i know doesn't close you program properly and hides errors. Right now i'm being forced to use end because i don't know how else to close my program properly. I'm...
-
Wow, sorry for being stupid everyone. (that i mean by not trying double buffering when you talked about it) Double buffering fixes everything! Now it not only doesn't flicker but it draws way...
-
Unfortunately the cells need to be different sizes.
Ideally I'd like to be able to draw on an area that's 1000*800 pixels big.
Yes it does, I'm surprised because .net uses gdi. Perhaps if...
-
So how do i use Smart Tags?
I found this link "http://www.vbforums.com/showthread.php?t=589306"
I know it's written for 2008 but maybe someone could help me with this? I've tried working with...
-
I've reworked my code with a buffer, using a graphics path(i found this slightly faster than drawing rectangles), and with proper disposal and came up with this:
Private Sub Form1_Paint(ByVal...
-
#1. Write code
#2. Debug
#3. Make twice as fast
#4. Make even faster...
Anyway that's the way it usally is for me when i'm drawing stuff on a form. Now i've come to quite a different problem -...
-
I followed the "SmartTags" link and got to the tutorial. I had a problem on
Inherits System.ComponentModel.Design.DesignerActionList
I think i must need to install .NET framework.
I'm not...
-
Okay, i checked it out and it looks good. :) What do i do with this?
-
I'm in the process of making a usercontrol and i've run into the problem of how to make a property page. Obviously this makes setting up you control nicer and more importantly to my program makes...
|
Click Here to Expand Forum to Full Width
|