Search:

Type: Posts; User: 12padams

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    855

    Re: Performing one action on all forms?

    You were right about the close statement working and the others not. Here is the close statement in action:


    For Each f In My.Application.OpenForms.Cast(Of Form)().ToArray()
    ...
  2. Replies
    3
    Views
    855

    Performing one action on all forms?

    Let's say I want something to occur on every form in my project (excluding 1 or 2) yet don't want to reference every single form in the code. How could I do this?

    For example:


    If...
  3. Replies
    14
    Views
    24,833

    Re: Window class for external windows

    This is just brilliant! How do you set the border-style on an external window to none though?
  4. VS 2012 Re: Get all window locations, sizes and names?

    Its for a different purpose all together, the user is not using this to skin their OS for those reasons, It's a feature in a game I'm making. But yes, I'm going for a windows blinds-like...
  5. VS 2012 Get all window locations, sizes and names?

    Lets just say you were trying to make an alternative window manager for the system so you made a borderless template form and designed your own buttons, title bar and so on and had the center of the...
  6. Replies
    2
    Views
    1,058

    VS 2012 Playing 2 or more audio resources at once?

    4 hours and I've gotten no simple way of simply playing 2 audio resources at once which for a game is quite hopeless. For example lets say you hear the sound of a ball hitting a wall just as a power...
  7. VS 2012 Re: Saving a panel background image as a bitmap?

    Sigh, This is embarrassing. The folder didn't exist, I had to create it first.

    I assumed vb.net would automatically create the folder when I tried to save a file in a folder that didn't exist....
  8. VS 2012 [RESOLVED] Saving a panel background image as a bitmap?

    Usually I wouldn't ask for help with a matter as simple as this but visual studio is driving me nuts right now.

    I have a panel with a background image and I want that background image saved to a...
  9. Drawing a moving object with minimal lag?

    I'm trying to make a simple game (game in a game to be exact) where you are a car moving along a road dodging other cars.

    I always have trouble however with vb.net and GDI+ because its sooooo...
  10. VS 2012 Re: Is there anyway to find out where in your application a file is being used?

    Ok just wanna ensure I am using your code right TnTinMN

    Here is an original line of code I used:

    If skinimages(0) = "" Then Else skinclosebutton(0) = Image.FromFile(skinimages(0))

    I've...
  11. VS 2012 Re: Is there anyway to find out where in your application a file is being used?

    Crazy stuff, Using around 20 image files that are loaded as text locations and image variables then loaded to skin multiple windows and a fake desktop.

    Ignore the distro review parody in the video...
  12. VS 2012 [RESOLVED] Is there anyway to find out where in your application a file is being used?

    I'm running into major problems trying to delete a folder due to files being in use by my application. I've got 1000's of lines of code and I can't determine exactly where certain files are being...
  13. Re: Do references have to be separate files?

    Ok, thanks for the help :)
  14. Re: Do references have to be separate files?

    Overall do you recommend merging them or is it safer to keep them apart? Can merging cause problems/errors with the program or is it perfectly fine and safe?
  15. [RESOLVED] Do references have to be separate files?

    I've always released my game as a free stand alone .exe file that people can launch but recently after adding a media player control to my form it added two Windows Media Player references which it...
  16. Re: Drawing program canvas seems to run out of memory

    The simple act of putting GC.Collect() in the paint event seemed to be an instant cure. No need to dispose anything....
  17. Re: Drawing program canvas seems to run out of memory

    Thats done hundreds of times...

    The code is executed because when a square, circle or other object is drawn on the forum a preview is shown. So another bitmap is created and drawn onto the canvas...
  18. Re: Drawing program canvas seems to run out of memory

    I was refering to pens and brushes. Also could the following line of code in my paint event be the criminal?


    Dim g As Graphics = Graphics.FromImage(previewcanvasbitmap)
    ...
  19. Re: Drawing program canvas seems to run out of memory

    I'm not creating image objects a lot but I guess I am making a lot of paint tools and not disposing them... could that be the problem?
  20. [RESOLVED] Drawing program canvas seems to run out of memory

    I am currently making a game with an inbuild bitmap drawing application called "Artpad". The issue is that after drawing for a while mainly on larger canvases over 400 x 400 there seems to be a...
  21. VS 2012 Re: Changing one varible is causing another varible on another form to change...

    I feel silly for not thinking of that... Thanks so much! Problem solved!
  22. VS 2012 Re: Changing one varible is causing another varible on another form to change...

    So Initially I tried the following code but it didn't work:

    shifterskintitlebar = ShiftOSDesktop.skintitlebar.Clone

    I then tried this code and it worked!

    shifterskintitlebar(0) =...
  23. VS 2012 Re: Changing one varible is causing another varible on another form to change...

    Ah so clone is basically what I thought copy was doing. So just replacing the word "copy" with "clone" will fix my problem and store them as two different images like I originally wanted? Awesome...
  24. VS 2012 Re: Changing one varible is causing another varible on another form to change...

    The original file gets is removed so I need to dispose of the image in order to release the file from use so it can be deleted. So are you saying that I should not copy the image over to another...
  25. VS 2012 Re: Changing one varible is causing another varible on another form to change...

    So how could I separate them into two separate houses? How do I stop them referring to the same object and instead copy it over as a separate object?

    Edit: If I just store a string of text...
  26. VS 2012 [RESOLVED] Changing one varible is causing another varible on another form to change...

    On a form called "ShiftOSDesktop.vb" I have a variable set as follows:
    Public skintitlebar(2) As Image

    On a form called "Shifter.vb" I have another variable set as follows:
    Public...
  27. Replies
    13
    Views
    1,435

    VS 2012 Re: [RESOLVED] Release a file from use?

    The problem was solved after disposing a number of background images on different objects and setting there background image to nothing. For some reason just disposing them wasn't enough... Also...
  28. Replies
    13
    Views
    1,435

    VS 2012 Re: Release a file from use?

    I've found out something quite strange. If I execute that code to remove the stuff then wait a few seconds before executing the delete command (by splitting the code up) it deletes it fine.

    The...
  29. Replies
    13
    Views
    1,435

    VS 2012 Re: Release a file from use?

    My app is definatly the only with with access to the file. So what code can I use to check what part of my app is using that exact file?
  30. Replies
    13
    Views
    1,435

    VS 2012 [RESOLVED] Release a file from use?

    When changing a skin in my game I am deleting a certain folder and replacing it with another one full of image files. The issue is that when a skin is loaded and I try to load another one by deleting...
  31. Replies
    2
    Views
    1,080

    Re: vb.net won't delete a directory

    Never mind, it was just because I had a text file open in notepad that belonged to that folder so it didn't want to delete it.

    This forum seems to be broken btw... I can't edit my first post in...
  32. Replies
    2
    Views
    1,080

    [RESOLVED] vb.net won't delete a directory

    It seems like the most basic of tasks but vb.net just seems to avoid doing this. This line is part of a procedure and as soon as this line of code comes up it confirms it exists then refuses to...
  33. VS 2012 Read and write a group of images to a single file?

    I'm currently making a game that allows the user to skin the interface. When they do so a .skn file (just a txt file) with data is created that contains lines of information about their skin. Some of...
  34. Replies
    6
    Views
    3,283

    Re: Embed or Host a 3rd party app in a panel?

    Ok, never mind I figured out how to remove the window borders and stuff but If I put a warning in my program saying "Do not use this application to host other applications if their license forbids...
  35. Replies
    6
    Views
    3,283

    Re: Embed or Host a 3rd party app in a panel?

    So basically this simple task of displaying a random 3rd party application in a panel is illegal and impossible?

    What about the person who made this control which is unfortunately in C#:...
  36. Replies
    6
    Views
    3,283

    Re: Embed or Host a 3rd party app in a panel?

    Basically the user will be able to browse for a exe file already on their computer and display it in a window. So I'm not including any .exe files with my program, the user will choose them from...
  37. Replies
    6
    Views
    3,283

    Embed or Host a 3rd party app in a panel?

    So lets say you have a form with a panel inside it called pgcontents and you want a program such as notepad.exe to display in the panel in a borderless state. I know this is possible but I'm having...
  38. Re: Draw pixelated ellipses and lines on the form?

    Thanks, it works perfectly and since its drawn onto that extra canvas I don't need all those corrections anymore but there is one last issue... if you draw and click really fast you get a double...
  39. Re: Draw pixelated ellipses and lines on the form?

    The picturebox is set to normal, not stretch so that's not the problem. Also I couldn't post all the code, it said my post contained too many characters. I also can't post the file as it's part of a...
  40. [RESOLVED] Draw pixelated ellipses and lines on the form?

    Just before I ask my next question I want to commend the members on this forum for the excellent help they have provided for me since I have signed up.

    Anyway, I'm having more issues with my...
Results 1 to 40 of 102
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width