Embed Graphics (BMPs) In DLL?
Feb 7, 2011
When I build my DLL in the same solution as my application, it works because the DLL can find the BMPs in the project directory. When I publish the application and install it on another machine, it won't run because it can't find the BMPs. How do I embed the BMPs in the DLL so they are available wherever the application is installed?
This worked a couple of VS releases ago. I am trying to update an application that has been working for years. The old executable still runs. If I use the old code, and publish it without changes, the new executable doesn't work. What do I need to do to carry the BMPs inside the DLL instead of having to create a new directory on the target machine to hold the BMPs?
View 2 Replies
ADVERTISEMENT
Oct 7, 2009
i have created a form containing a text box and a button. i would like to know if it is possible to embed this form in the title bar of the current active window that is opened eg: ie,notepad,word this is so that i can enter a word in the text box and use text to speech to say it or highlight a word in the active window and it will be placed in the text box of my form. i can position the form in the top right location but then the form position is stagnant.
View 1 Replies
Jun 23, 2011
Is there any way to make an avi file from many bmps?
I'm making a screen capturing/recording program and the avi function is the only one that is missing.
View 2 Replies
Mar 29, 2006
there are a number of sources (ONE, TWO and THREE) which show how to use VB6 to create a video file from BMPs?
View 6 Replies
Jul 31, 2009
Is it possible to split a 1024x768 JPG(or any other format windows can read) into 12 256x256 BMPs and save them all with a filename like "original name - x" where x is the current BMP number?
It's for a puzzle style game I'm thinking about developing.
View 14 Replies
Dec 30, 2010
I am trying to create a program that renames files to 1 - (however many files are in the folder) and also convert .pngs to .bmps, I had done this but I messed it up a little. I am not that experienced with VB.Net but I am looking to learn so any help would be great. I have tried this myself but as you can see in the code I've gone the wrong way about it.
[code]...
View 2 Replies
Sep 23, 2011
We have a GIS application that has some performance issues. It creates and sends an image to a web browser. We start with a Bing Maps imager, add complex polygons (complete with transparent fill), save the finished image as a PNG, and send it to the browser.
The idea has come up that we could possibly install a graphics card and use DirectX or OpenGL to improve performance. I believe this would be the case even though we ultimately generate an image instead of sending the data the the screen. I believe our processes could still make use of the API and the hardware acceleration it provides. Our process is not unlike what CGI film makers do to render individuals frames of a film, though we simply render a single image and send it, as opposed to the hundreds of thousands of images needed for a single CGI film.
So my question is: would a powerful graphics card and use of DirectDraw or OpenGL provide us a worthwhile performance boost? It can take us 20-30 seconds to render a more complex map. Which is a long time to wait on a web page...
View 10 Replies
Nov 19, 2010
Im working on a project that needs to print a report of one client.Everything went smooth untill i came across my multiline input text data.When i display it in the PrintPagePreview the text go's outside my page. Even when im printing it only the halve of my text is displayed. I googled and looked everywhere but i can't get a clear fix for it.
[Code]...
View 3 Replies
Jan 22, 2011
I used to program with Visual Basic 6, so I have alot of old programs that I'm updating, plus I'm learning the new VB2008 methods. I'm writing a program that replaces the old "BitBlit" function which is no longer supported by Visual Basic 2008. It involves three picture boxes, one holds the sprite bitmap, a second holds the mask (silhouette) of the sprite bitmap, and a third has a background image.
[Code]...
View 3 Replies
Aug 14, 2009
drawing text on a window which is not the current form's window.I remember doing this in Win32 api with getwindowdc(handle) to obtain a DC for the Window, then textout() on the DC.
View 2 Replies
Jan 12, 2011
Ok, I want to create a class that will handle a special rectangle graphic.In my form, I want to have two of these special rectangles. So, basically, I need two instances of that class in my form, right?I manage to initialize two, alright. But, how exactly am I supposed tomanage drawing/graphics etc in a class, and the results to be displayed in my form?
View 13 Replies
Oct 29, 2008
Using graphics paths for designing...but am getting an error when trying to add a shape to : _shapelist.add(createshape())
It says : Value of type 'system.drawing.drawing2d.graphicspath' cannot be converted to '1-dimensional array of system.drawing.drawing2d.graphicspath'
View 2 Replies
Sep 27, 2010
[code]...
ok, i know the code is a little rough, but it should be good to give you an idea of what im trying to do, if not i will still explain.simply draw 2 lines one from left to right, another from top to bottom, intersecting through the tip of the mouse.ok, theres no problem there the lines draw perfectally the way i want them.... BUT! now heres the issue im having.i cant get rid the previous lines.i did a bit of good old "Google'ing" and ran across a few links that all pointed me to the ReDrawWindow API, so i tried (as you can see in the above code) but i just cant seem to get it worked out.
View 5 Replies
Jan 19, 2011
So I decided to make my famous tile selector project, but instead of drawing in a form's graphics, do it inside a tabpage.Well, I managed to get it working, but it seems to... flicker.Normally, setting the form's DoubleBuffered property to True would help a lot there, but apparently, the tabpage has no such property.
When I invalidate the tabpage, I draw two images and fill one rectangle.Following past advice, those two images were created before, just once, and are stored in a variable so I don't create them every time I invalidate the tabpage.
View 1 Replies
Aug 1, 2010
Ok I have this: This makes a sub called 'graphicspaint' then writes "demo version" to a picturebox1
Code:
Imports System.Drawing
Imports System.Windows.Forms
[code]......
View 8 Replies
Dec 5, 2011
i whant do my own shadow effect. i can do the shandow. but how can i plus 2 bitmap images(1 above the other)?
View 15 Replies
Oct 20, 2011
My application is all centered around one form with lots of graphics drawings on it.All these drawings take place from within a paint event handler. However, the amount of code within that sub is becomming unwieldy.I have been trying to move sonme of it to another class and use the "dim temp as Graphics = e.graphics" construction to continue to draw graphics. However, I get all kind of argument exception runtime arreors when doing so (and I do not get these with the same graphics operations directly from the original paint event handler. I have also tried to pass on the original e argument, but with the same result.Is my conclusion that there is no solution to this so to continue with the unwieldy amount of code,correct, or am I mistaken somewhere. the "dim temp as graphics = e graphics" is recommended.
View 6 Replies
Oct 28, 2011
I load my picturebox with a jpeg. If I put my DrawObjects() sub into picturebox paint event.When ever a picturebox.refresh or picturebox.visible = true (vb.net seems to draw my DrawObjects() first, then load the jpeg Image over my drawing - erasing drawing) Is there a way to get the picturebox to redraw the jpg image first then draw on it, in picturebox paint event?
View 10 Replies
Aug 21, 2008
In a Previous Thread, I asked some questions about how to create graphics. Everything was OK, until I realized that the graphics are really slow. While I was trying to find out what the problem was, I realized that the processor load was about 50% and my graphics card was not used at all. So doesn't Visual Basic use the Graphics Accelerator to process graphics? What I made is not a real program. It's like an experiment (I tried to make an image flip). Here is the Code:
[Code]...
View 1 Replies
Apr 7, 2011
I am trying to do a game application similar to chess, where i need to move the game peaces(graphics) over another graphics which is the game board. using the mouse. How can I do multiple layers of graphics and control their movement(without using direct x, i know nothing about it)? Note: I have visual basic 2010 express, windows xp home
View 1 Replies
Feb 3, 2011
How to embed VB to asp.net so we could place our program on the net.
View 2 Replies
Jan 2, 2009
i'm created a windows application but now i have an issue. My program works by running a .exe file from c:drive. Can i embed the .exe file in the cdrive to my vb program so when i compile it, its being compile into a single .exe file?
View 1 Replies
Mar 9, 2011
I am looking for information on the best practices or project layout for software that uses SQL embedded inside VB.NET . The software will connect to a Access DB. The software was written in VB.Net .Update: To clarify. We are currently using OleDbConnection,OleDbDataAdapter, OleDbDataReader to connect to the database. What I mean by embed is that the SQL stored procedures are scripted inside our VB code and then run on the db. All of our tables, stored procs, views, etc are all manipulated in the VB code. The layout of our code is quite messy. I am looking for a better architecture or pattern that we can use to organize our code.
View 3 Replies
Aug 16, 2008
I know there is a program that does it but is there a way to embed a dependant .dll into the .exe so I only need to carry around the .exe?
View 6 Replies
Jan 27, 2010
I have a file (Microsoft.PhotoToolboxFoundation.ToolboxPolicy.xml) which is read by the following code:
p = (New
MetadataPolicyManager()).loadPolicy("Microsoft.PhotoToolboxFoundation.ToolboxPolicy.xml").
Is there a way to embed the file into the .dll? Can I add the file as a resource or something similar and if so how would I reference it?
View 6 Replies
Aug 11, 2009
Is it possible to have a button open a form with an "embed" exe?
View 5 Replies
Jan 7, 2010
Is there a control I can use to embed another program into my app? I want the other program to have full functionality, but this be inside of my app.
View 2 Replies
Sep 7, 2011
is there any way to embed a vb 2008 exe into a webpage so that it runs inside the webpage without user having to manually download it.If not then is there a way to convert a vb exe to a swf flash file, or maybe a plugin for vb 2008 which allows you you compile or export as swf?
View 11 Replies
Mar 3, 2009
I am looking for information on the best practices or project layout for software that uses SQL embedded inside VB.NET or C#. The software will connect to a full SQL DB. The software was written in VB6 and ported to VB.NET, we want to update it to use .NET functionality but I am not sure where to start with my research. We are using Visual Studio 2005. All database manipulations are done from VB.
Update: To clarify. We are currently using SqlConnection, SqlDataAdapter, SqlDataReader to connect to the database. What I mean by embed is that the SQL stored procedures are scripted inside our VB code and then run on the db. All of our tables, stored procs, views, etc are all manipulated in the VB code. The layout of our code is quite messy. I am looking for a better architecture or pattern that we can use to organize our code.
View 4 Replies
Feb 7, 2010
Im making an online radio , just a simple one for myself. Ive got my .exe in the release folder, when i copy it to my desktop it wont work , but when i copy the 2 DLL`s thats in the release folder to the desktop also , it works.
Can i embed the dll`s in the application? Ive created a radio before and never had to move the dll`s to the same location.
View 3 Replies