How To Use Project Assets
Jul 9, 2011
Basically I have added a lot of images to my project and I wonder how to refer to them in my code.At the moment I am linking to them by the full windows path, but that isn't going to make things very portable.Could someone give me a short example on how I use these image files internally within the project if that makes sense.
View 12 Replies
ADVERTISEMENT
Mar 9, 2011
I have the following XML which I load via XDocument.Load(uri) or XElement.Load(uri). I am having trouble getting a collection of <asset> elements via LINQ.
Here is a snippet of the XML I'm trying to query:
<assetCollection xmlns="tag:aisle7.net,2009:/api/1.0">
<title>All Assets</title>
<description>Collection containing all assets in the system</description>
<resourcePath>/us/assets/~all</resourcePath>
[Code] .....
View 2 Replies
Jan 25, 2011
I have Visual Studio 2010 and wish to create something which will store assets and serial numbers. I have an access datatbase which is where all of the data is currently stored however I wanted to make it easy for people to add/remove and edit assets by using a GUI which pulls data to a from the database. What is the best way for me to go about doing this and where should I start?
View 7 Replies
Apr 15, 2012
I have a database of asset information with asset age as one of the columns..now i wish to display all the assets which crossed 4 years in the current year
View 8 Replies
Apr 14, 2011
I need to write a program that calculates and displays the depreciation of a businesses assets.I need the program to read a comma-delimited input file containing the names of multiple assets, their purchase prices, the years of their purchase and the number of years that the assets are expected to be useful.I need to use this straight line depreciation formula- (purchase price / number of years of usefulness) * (current year �purchase year)
View 7 Replies
Dec 20, 2010
Public Class ExtendedDateTimePicker Inherits DateTimePicker
View 5 Replies
May 5, 2010
For reasons that are beyond my control, I have three Projects. Projects A and B reference project C. Project A references project B so that it can open a large form in project B. I now need to open that large form from project C, but VB won't allow me to add a reference from C to B because that would create a circular dependency. I found a way around it, though. I created a Timer in A, and when I opened C from A, I passed in that timer. When the user performs a certain action, I enable the Timer from A, and this causes C to open B for me.
View 2 Replies
May 6, 2009
I have a project that I have created, it something like a contact database.It is complete with its own sql server database, and controls and forms.I kinda of understand that I can include this project into another project.This is the tricky part,Can I include my contact project into another project and add more items to the database and forms in a new project?What I'm after is like using classes.My contact database would be like the base class, and the new project would be adding more features to that project.
View 10 Replies
Nov 15, 2010
i was developing Voice Chat Application in visual Basic .NET 2008 i try a lot methods to make installer for it :
1- i add Project Setup Project for my Project for Visual Studio 2008 Deploy & setup Type Projects and make it with output option and detect dependices
2- i try make it with Setup Factory 8.2.1
3- i try with MSI Factory 2.0
4 i try with Setup Factory 6.0
and after making installer copying it to my test virtual Machine or my friend lap and install it i get this error when try to run my application :
[Code]...
View 3 Replies
Feb 21, 2009
VB 2005 Express Visual BasicI want to move (part of) projects to different projects/ computer.I used File - export template- and was able to save templates of whole project or item(s).They saved nicely in a subdirectory called "templates" as zip files.How do I import to 1/ other project on same pc?2/ To a different computer?I tried copy zip files into corresponding folder on new system. No luck.
View 5 Replies
Apr 12, 2010
I made a change to a project and hve induced a major problem. I have warnings and errors now, but I can still debug the project with the "last successful build" Iwould like to just revert everything to that build but I can't find a way to eliminate the problems I induced or find a way to go to a earlier build. Hopefully I can get back to an earlier version or I will loose the entire project as I can no longer get to the designer.
View 5 Replies
Feb 24, 2012
If I put this piece of code in a new fresh vb.net form, add a button and two labels and start debug I get execution time of about 11.5s.If I put the same piece of code in a new form in an old project upgraded from an earlier version of vb.net, start debug I get an execution time of 7.5s.So I do exactly the same in the two projects but get different execution times.
What do I have to do with the fresh new project to get the same execution time ?I am not interested in improving the code to be able to calculate primes faster. I just want to know what is the significant difference between an old upgraded project and a new fresh one. I am using windows 7 64bit on a 2,4 Ghz Intel quadcore.
Public Class Form2
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim l, h, p As Integer
[code]....
View 1 Replies
Jan 23, 2012
I am following the guidelines from [URL]..Mid way through the process they have you rename your App_Code to Old_App_Code folder and compile ... at which point i had DLL's in my BIN folder and i started to repair my aspx/ascx files.
e
Today i find the compiled bin files missing an now all my pages are sqwaking they cannot find the numerous Public Class - Public Shared Function's ... I have verified their build action to Compile but am unable to rebuild an have them regenerate on account of project errors.Advice on how to rebuild the bin or how to properly reference a Public Shared Function? My VB code includes an Imports statement taht used to find the class in app_code.
View 1 Replies
Jun 7, 2012
I'm developing application that is plugable. The plugins are loaded via Assembly.LoadFrom(). In my solution I have 4 projects. A WPF, 2 DLL and another DLL that is a plugin for the app. The plugin project references one of the other DLLs. When I build the Solution and run I was getting an error trying to use the plugin dll because it was expecting an older version of the referenced project. I had to clean and rebuild the plugin project to get it to run correctly.
[Code]...
View 1 Replies
Apr 11, 2012
I am developing a Multi-Project solution (A, B) in Visual Studio 2008.
I need to run a second project from the start up one and then the first project should be closed.
The matter is that I want to Exit the A.exe and kill the process and the dll that are depending on it. And then Run the B.exe.
View 4 Replies
Jan 31, 2009
I am using 8 different vb projects in one solution, beside this I am also using one 3rd party control ion all the projects, while compiling the application it takes around 5 minutes to build the project, While building the application I have observe that it uses lc.exe file which is used for "Reads text files that contain licensing information and produces a .licenses file that can be embedded in a common language run time executable." at this point it takes too much time.
View 1 Replies
Nov 12, 2009
I new to this Forum and relatively new to VB programming. I have read some really good posts here and thought I would ask about a perplexing problem I'm having. I createdindows Form application, built it and deployed it with no problems. However, when I added a small block of code, re-built the app and went to add the app to the Project Output Group in the file system editor the project was not in the Project drop down list. I closed the Setup project and deleted it from the project folder and checked my code and re-built the app and tried the Set Up project again with the same result
View 2 Replies
May 28, 2010
Has anyone else had issues with Visual Basic 2010?My visual basic program has been running fine for months but recently every time I try and load a project (any project) the program freezes, then I have to close it down and reload, every time I load Visual basic for the second time I get the following error:
HTML
An error was encountered while opening associated documents the last time this solution was loaded. Document load is being skipped during this solution load in order to avoid that error.Plus when trying to run a project in debug it takes ages to load (around 5 minutes) this has only started happening recently, projects were loading in seconds.
View 9 Replies
Nov 28, 2011
How do i get multiple icons in a project for use with shortcuts OUTSIDE the project..
View 7 Replies
Jun 28, 2009
Is there a way that you can export a file from one project directly into another project?
For example, in one project i have a file called authInvalid.vb and i need to export it into another project?
View 4 Replies
Sep 30, 2010
Having successfully tried out nHibernate, I would now like to try using Fluent for mapping. My main project is in vb.net but I would really like to use c# for the mappings since the lambda expression capability makes it much cleaner. Can you have a separate project/assembly for your mapping files without creating a circular dependency with domain objects?
View 2 Replies
Mar 3, 2011
My problem is with Splash screen I added it to my project but after running that project it displays forever until I clicked on my main forum. please help me how to give a particular time to splash screen i.e., 2 seconds.
View 5 Replies
Jul 26, 2009
I have a multi-project .NET 3.5 solution. It's ASP.NET based with c# code-behind in all projects except one.I'm attempting to access members from a C# project called "Core" from a VB.NET project. I set a dependency to the Core solution in my solution properties. However, Core. brings up nothing. Furthermore, my other C# projects that have Core-Project as a dependency (in the solution settings), are able to declare Core objects. Example: Private Core.ObjectName InstanceName; Also, Intellisense brings up plenty of info in the C# projects.how I can hook into these members from my VB project?
View 1 Replies
Jun 16, 2009
Is there a tool to convert a VB.NET 2005 project to a C# 2008 project. I am trying to convert our project to VS 2008 and mostly port all the vb.NET code in some projects to C# 3.0/3.5.
View 6 Replies
Feb 16, 2010
I have access to a database table that has been added as a datasource in project (A). Is there any way to refer to this database table from project (B) WITHOUT adding it to project (B)'s datasource?
ProjB.databasetable.GetDataSetSchema
View 2 Replies
Mar 27, 2012
I have a number of independent visual basic applications. Now I want to develop a window that will have command buttons to open each of the applications. How do I write the code in these buttons?
View 2 Replies
Dec 2, 2009
Having successfully tried out nHibernate, I would now like to try using Fluent for mapping. My main project is in vb.net but I would really like to use c# for the mappings since the lambda expression capability makes it much cleaner. Can you have a separate project/assembly for your mapping files without creating a circular dependency with domain objects?
View 1 Replies
Dec 14, 2010
I am in Great problem, When I am running on my own machine then there is no problem creating but when I am running my project on another machine then the project generating problem which like this 'Could not load type 'TechnoAid.FrameWork.logManager' from assembly 'TechnoAid.FrameWork, Version=1.0.0.0, Culture=neutral,PublicKeyToken=null'."Source="Inventory.Metadata"TypeName="TechnoAid.FrameWork.logManager"StackTrace:
View 1 Replies
Jan 4, 2012
I have a project that is build in VB 6.0 version. I need to launch this project locally to debug an issue. But unfortunately I don't have VB 6.0 installed on my machine and my firm is not providing this software anymore. Is there any way that I can open VB 6.0 project using other versions of Visual Studio?
View 2 Replies
Nov 22, 2011
When I go to create a new project in VB I only get Name in lower pane to enter a name. I do not get Location or the 1 under Location. How do I get those 2 to display
View 2 Replies