Search:

Type: Posts; User: cheesebrother

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    684

    VS 2010 Re: Images in Rich Text Boxes

    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...
  2. Replies
    2
    Views
    684

    VS 2010 Images in Rich Text Boxes

    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...
  3. VS 2010 Re: Error - TypeLoadException was unhandled

    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.
  4. VS 2010 Re: Error - TypeLoadException was unhandled

    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...
  5. VS 2010 [RESOLVED] Error - TypeLoadException was unhandled

    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,...
  6. Replies
    11
    Views
    1,657

    Re: run time error 424

    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...
  7. Re: Resize PictureBox to fit the size of the form

    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...
  8. Replies
    2
    Views
    5,057

    Re: Weird Array Set/Copy problem

    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).
  9. Re: Resize PictureBox to fit the size of the form

    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...
  10. Replies
    2
    Views
    513

    Re: Min and max value

    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...
  11. Replies
    2
    Views
    5,038

    Re: Setting tabindex on VB6 form...

    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...
  12. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    I found that this enables alphablending images on my pc


    Device.SetRenderState(RenderStates.AlphaBlendEnable, True)
    Device.SetRenderState(RenderStates.SourceBlend, Blend.SourceAlpha)
    ...
  13. Replies
    3
    Views
    881

    VS 2010 Re: .Net Framework 3.5

    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...
  14. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    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,...
  15. Replies
    3
    Views
    881

    VS 2010 .Net Framework 3.5

    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...
  16. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    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...
  17. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    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...
  18. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    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...
  19. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    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",...
  20. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    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...
  21. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    Ok, thanks.
  22. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    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...
  23. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    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

    ...
  24. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    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...
  25. Replies
    25
    Views
    12,401

    [VB.NET] Re: DirectX referencing

    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\...". ...
  26. Replies
    25
    Views
    12,401

    [VB.NET] [RESOLVED] DirectX referencing

    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...
  27. Replies
    4
    Views
    2,012

    VS 2010 Re: Usercontrol Focus and Key events

    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...
  28. Replies
    4
    Views
    2,012

    VS 2010 Re: Usercontrol Focus and Key events

    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...
  29. Replies
    4
    Views
    2,012

    VS 2010 Usercontrol Focus and Key events

    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...
  30. Thread: End

    by cheesebrother
    Replies
    9
    Views
    973

    VS 2010 Re: End

    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...
  31. Thread: End

    by cheesebrother
    Replies
    9
    Views
    973

    VS 2010 Re: End

    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...
  32. Thread: End

    by cheesebrother
    Replies
    9
    Views
    973

    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...
  33. VS 2010 Re: What happened to simple speed?

    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...
  34. VS 2010 Re: What happened to simple speed?

    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...
  35. Replies
    6
    Views
    1,298

    VS 2010 Re: Property Pages?

    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...
  36. VS 2010 Re: What happened to simple speed?

    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...
  37. VS 2010 [RESOLVED] What happened to simple speed?

    #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 -...
  38. Replies
    6
    Views
    1,298

    VS 2010 Re: Property Pages?

    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...
  39. Replies
    6
    Views
    1,298

    VS 2010 Re: Property Pages?

    Okay, i checked it out and it looks good. :) What do i do with this?
  40. Replies
    6
    Views
    1,298

    VS 2010 Property Pages?

    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...
Results 1 to 40 of 156
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width