Visual Studio 2010 VB Windows Forms Application - Organization Of DLL Project References?

Mar 26, 2012

In my VS2010 VB project I have a lot of external references to DLLs, to the point that organization has become a major headache and I'm wondering if I am going about it the wrong way. My assembly references include common redistributables (SQL Server Compact 3.5 SP1, ReportViewer 2010 SP1, DataVisualization, as well as some useful 3rd party dlls from CodeProject and CodePlex.

Currently, I am copying each DLL into a 1st level folder (/dll_lib) under my named project folder (under the solution folder), and adding the reference from that path. However, I see that Visual Studio copies the DLLs to various other locations (/bin/debug or /bin/release) in my project when I build the project or solution, and some of the 3rd party DLLs come with instructions to copy them manually to /bin.

What is the "best practice" for where to put the DLLs? Can I just put all of them under /bin and let the build event copy to /bin/debug or /bin/release as required? Should I try to force a single reference path for the dlls in the project output?

View 5 Replies


ADVERTISEMENT

Build A Windows Forms Project In Visual Studio 2008?

Sep 2, 2011

If I build a Windows Forms project in Visual Studio 2008, and start it with a Sub Main instead of a form, and for the time being, don't show any forms, is it considered a Console application? Will console.writeline work?

View 3 Replies

GetPrivateProfileSection In A Windows Forms Project In Visual Studio 2008?

Mar 19, 2010

I'm suddenly having trouble with GetPrivateProfileSection in a Windows Forms project in Visual Studio 2008. The same code works when it's run as an aspx page in a website. Anyway, I define the WINAPI call thusly:

[Code]...

View 7 Replies

Using Visual Studio Installer For Deploying Windows Forms Project?

Feb 1, 2011

I'm trying to build a setup program using the built-in Visual Studio Installer. I'm using VS 2010 and working on VB.NET.For the most basic kind of program, I have an EXE file which works on a XML file (the XML file is treated like a database). So on a Windows 7 platform with UAC enabled, the best deployment is to install the EXE file in the Program Files folder, and the XML file in the application data folder, for security purposes of Windows. (Windows, now, does not allow creating/writing files inside the Program Files folder unless your application is running with administrative privileges).

So I have added VS Installer to my current project and have opened its File System Editor. So to create the above layout, I've added Primary Output to the Application Folder. Then I've added its shortcut to the User Desktop.Now I need to place my XML file to the application data folder. VS Installer gives the option of User's Application Data Folder, which is the %appdata% folder in the environment table. I need to access the All Users' Application Data Folder.

1) How do I access the All Users' Application Data Folder over here?

2) I tried using the User's Application Data Folder. It doesn't work. It doesn't create any folder in the %appdata% (e.g. C:UsersFarazAppDataRoaming). I tried to play around with various properties, like AlwaysCreate which is supposed to create a folder obligatorily. It doesn't create anything.

View 5 Replies

Basic Nature Of A Visual Studio Project's References

Aug 25, 2011

Just curious. I recently had an incident in which I was called to troubleshoot a VB Winforms app. I have 2 versions of a package (LeadTools) installed on my machine. These packages contain numerous dlls and it is not unusual for a dozen or more to be referenced in a single program.

[Code]...

View 8 Replies

Adding References To A Stand Alone (no Project) Executable In Visual Studio

Dec 20, 2011

I am creating a visual basic executable in Visual Studio but NOT in a Project.I would like to add some references (dll).How can I do that?

View 1 Replies

Forms :: Visual Studio 2010 Windows Forms App Screenupdating Property?

Jun 4, 2011

.NET developing and have a simple question, i've been stuck on this for a while and searched many forums first with no solution so i'm posting myself. In VB for excel i've used Screenupdating=false to disable the screen updating however now i'm creating a visual studio 2010 windows forms application and its not showing up as a property. Here's the code i've tried.

[Code]...

View 4 Replies

IDE :: Adding References In Visual Studio 2010 Beta 2 (Visual Basic)?

Nov 25, 2009

I am just wondering how I can add Direct X references to Visual Basic in Visual Studio 2010 Beta 2. I cant find them in the .NET reference list, or the reference list, or anywhere. I downloaded the Direct X SDK for August 2009, but I can not add the .dll files to the reference list. Is there anything I can do to add them? I need the references for programming reasons.

View 5 Replies

Visual Studio 2010 Windows Forms App Screenupdating Property

Jun 3, 2011

i've been stuck on this for a while and searched many forums first with no solution so i'm posting myself. In VB for excel i've used Screenupdating= false to disable the screen updating however now i'm creating a visual studio 2010 windows forms application and its not showing up as a property. [code] And i get the error 'screenupdating is not a member of 'system.windows.forms.application'.

View 2 Replies

Visual Studio 2010, Outlook 2010 And Windows Application, Return Emails?

Jan 5, 2011

At present I have wrote an application (in-house CRM, vb .net 2010) which allows me to send emails under the selected customer & I categorised these emails.As these are categorised I can return data to display email history in my program by using search criteria:

Dim oMail As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail)
Dim sSearch As String
sSearch = "[Categories] = '" + "[" + tAccount.Text.Trim + "]" + "(" + tShipTo.Text.Trim + ")'"
Dim oItems As Outlook.Items = oMail.Items.Restrict(sSearch)

However the limitation to the above is it only looks at sent items & no other folder.My ideal solution would be to display all email correspondence for a certain contact.

View 1 Replies

Visual Studio 2010 - Get Forms Application Startup Method To Be Sub Main() In Program.vb?

May 17, 2010

Trying to get it to behave like C#, where there is a Program class with a static Main method.However, in the project properties, I cannot set Program.vb to be the startup object, only the forms (it is a forms application).

View 2 Replies

.net - The System.Linq.Dynamic Namespace - Visual Studio Does Not Recognize In The Project Files The System.XXX References

Aug 11, 2011

I would use the System.Linq.Dynamic. I added the specified Dynamic.vb file, that starts like this:

[Code]...

to my (VB.NET)solution. Now Visual Studio does not recognize anymore in the project files the System.XXX references, proposing me to change them to Global.System.XXX

View 1 Replies

Unable To Clear The Contents Of A Text Box (Visual Studio 2010, .net Windows Application)?

Mar 18, 2011

What I have is on my form there are several text boxes. These text boxes are for user input and attached to each text box is a Private Sub txtBox1_KeyPress function. In that function I have some validation code to check that the user is inputing only what I want them to. And if it doesnt it will pop up a message box telling them so, then it is supposed to clear the text box so the user can try again. But no matter what I try, the text box does not clear it still keeps the last character typed (the invalid one).

Here is the code for one of the text boxes.

Private Sub txtLanIp_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtLanIp.KeyPress
Dim strEmpty As String = ""
If Char.IsDigit(e.KeyChar) = True Or Char.IsPunctuation(e.KeyChar) = True Or Char.IsControl(e.KeyChar) = True Then
'do nothing

[code]....

The commented methods at the bottom are some of the other things ive tried to make this work. The txtLanIp.text.clear() is what ive tried from the beginning. I have also tried setting the text to "", I even created an empty string and set the .Text value to it but no matter what it wont remove that character. I have also tried various trim(), len(), Select() functions, most either give me an 'index out of range error', a 'length cannot be less than zero' error or a general ExceptionOutOfBounds error. I am just tearing my hair out as to why the simple way doesnt work, there is no logical reason why and it gives no error it just doesn't clear the box.

I have also tried moving the validation to a _LostFocus but e.KeyChar isnt a valid method or property for that declaration, which doesn't surprise me but I wanted to try everything.I dont see how it would matter in this case but I am running Windows XP Pro SP3, though I also see the same behavior in Windows 7 64 bit ultimate sp1 and windows 7 64 bit pro.

View 7 Replies

Visual Studio 2010 Windows Application And Interaction With MS Access 2007 / 2003

Jun 13, 2011

If I create a windows app which I link to an MS Access databse file that already exists..will I need to have MS Office installed on every computer at which I want to use the app? If not then how do I go about making a standalone windows app that will store information in a database of some form or another ?

View 1 Replies

How To Call WPF MediaElement From Windows Forms Application In Visual Basic 2010

Oct 23, 2010

I am a novice in programming and wrote several simple Windows Forms applications. I need to play mp3 file in Windows 7 x64 application.

Could you, please, explain in simple words, how to call MediaElement.Play() method from Windows Forms?

View 8 Replies

Use OpenGL In Visual Studio 2010 In Visual Basic Project?

Jan 15, 2012

I want to use "OpenGL" in my project. Is it possible to associate it with "Visual Basic" application developed in Visual Studio 2010? If yes then how can we do it.

View 1 Replies

Converting Windows Vb Project From Visual Studio 2003 To 2008?

Jun 4, 2012

I converted my project Visual studio 2003 to 2008. and when i run may project pressing F5 this error comes

View 5 Replies

Windows Media Player Not Working On Windows XP Using Visual Studio Application?

Aug 8, 2011

I have embedded the WMP control in my Visual Studio 2010 app which works on windows 7 (Framework 4.0), but installing the app on winXP, I get the following error:

System.IO.FileNotFoundException: Could not load file or assembly 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

[code]....

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].

I guess this is a reference issue, but I have added references to WMP libraries (axinterop.wmplib.dll and interop.wmplib.dll). The WMP works on the XP machine, but not when called from my application.I have searched the web now for 5 days and changed references, and reinstalled the media player on the XP machine, but nothing works.

View 1 Replies

Visual Studio - Why Are Code-behind Files Not Visible In A .NET Web Application Project

Aug 17, 2011

I am trying to convert a VB.NET web site project to a web application project, yet the in web application project, my code-behind files are not visible unless I set the solution explorer "show all files" option. Why is this? What setting can I change so that my code behind files are always visible?

View 1 Replies

.net - How Does The Visual Studio Populate The References Tab

Sep 24, 2009

How does the Visual studio populate the references tab?By using something like currentDomain.GetAssemblies() or what?

View 2 Replies

Project Conversion To Visual Studio 2010?

Aug 24, 2011

Programming Applications Office Outlook 2007.This publication comes with sample VB code which I have dowloaded and am attempting to run.The code was written using VS2005 and I am using VS2010.The Upgrade conversion works ok and the project loads - however I get the following errors when I try to build:Does Microsoft have a fix? I only get thousands of people asking the same question when I search!!

ErrorAn error occurred while validating. HRESULT = '80004005'C:Documents and SettingsMartinMy DocumentsVisual Studio 2005ProjectsSampleCodeVBSampleCodeSetupVBSampleCodeSetupVB.vdprojSampleCodeSetupVB

[code].....

View 4 Replies

Visual Studio 2010 - Project Folder?

Jun 27, 2011

So if I am working on a project in VB.net (really any visual studio project), I am able to create folders. My project is getting rather unweildy (over 30 classes) and I think it would be beneficial to store for example data structure classes in a folder "ds" and user controls in a folder "uc". Is this OK? Will it affect the way I reference the classes? Are the folders simply for my own use and structure or do they actually have some kind of impact on my project as a whole?

PS in case you are confused, I am referring to the structure shown in the "Solution Explorer". Sorry if this is a dumb question or not clear, but I have never worked on a large project like this before.

View 4 Replies

Visual Studio 2010 Building The Project?

Jun 14, 2010

When ever i publish the project, i get a bunch of deployment files and a setup file. Even after running the set up there is no .exe file.Is this just VB .Net way of opening the file now? Do i even need to use the installer? My program uses very basic math with list's and datagrid views.

View 2 Replies

Visual Studio 2010 Project Compadibility?

Apr 23, 2010

When i create a program with Visual Studio 2010 which operating systems is it compatible with. I know it would be Windows only but witch versions? Is there anything special i need to do to make my programs compatible with older versions of Windows such as XP or Vista? I am running VS 2010 on Windows 7 Ultimate.

View 1 Replies

.net - Visual Studio's Windows Forms Designer From Deleting Controls?

Apr 20, 2010

With several forms of mine, I occasionally run into the following issue: I edit the form using the designer (Visual Studio 2008, Windows Forms, .NET 2.0, VB.NET) to add components, only to find out later that some minor adjustments were made (e.g. the form's size is suddenly changed by a few pixels), and controls get deleted. This happens silently — event-handling methods automatically have their Handles suffix removed, too, so they never get called, and there's no compiler error. I only notice much later or not at all, because I'm working on a different area in the form.

As an example, I have a form with a SplitContainer containing an Infragistics UltraListView to the left, and an UltraTabControl to the right. I added a new tab, and controls within, and they worked fine. I later on found out that the list view's scrollbar was suddenly invisible, due to its size being off, and at least one control was removed from a different tab that I hadn't been working on.

Is this a known issue with the WinForms Designer, or with Infragistics? I use version control, of course, so I can compare the changes and merge the deleted code back in, but it's a tedious process that shouldn't be necessary. Are there ways to avoid this? Is there a good reason for this to occur?

One clue is that the control that was removed may have code (such as a Load event handler) that expects to be run in run time, not design time, and may be throwing an exception. Could this cause Visual Studio to remove the control?

View 6 Replies

C# - Web Matrix Differ From Visual Studio - Is It More Efficient Than Visual Studio To Develop ASP.NET Web Project

Oct 12, 2011

WebMatrix is a web development and deployment tool by Microsoft so how is this compared to Visual Studio? which Use C# Razor Syntax is that more better coding.

[Code]...

View 2 Replies

References In Microsoft Visual Studio Not Working

Jul 6, 2011

Currently, I am attempting to send an email using VB.NET. Now, I have added a reference with this code: (I have added placeholders)[code]How can I get the references to work, for all of the Outlook items (Outlook.Application, Outlook._MailItem, Outlook, Outlook.Attachments, Outlook.Attachment) are either undeclared or undefined.

View 3 Replies

Converting A Visual Studio Web Application To A Windows Application?

Jul 17, 2011

I have recently built a website in visual studio 2008.. Now i want to convert it into a desktop application.

View 1 Replies

2010 [XML] Reading Visual Studio Project File?

Sep 1, 2010

I want to read a VB or C# Visual Studio project file so I can find out which files the project uses (code source files, not images or whatever).I simply opened a vbproj and csproj file in notepad and found that they are in XML format. A simple example follows. The red parts is what I need:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<blabla... />

[code]....

However, it seems it cannot even find the Project element, because the query errors saying "Sequence contains no elements" on the 'Single' call...

View 4 Replies

Add A New Data Source To Visual Studio 2010 Project?

Jan 7, 2011

im trying to add a new data source to my visual studio 2010 project. As it stands my project consists of a few windows forms. I plan on making it access a database (made in access, unless this is a problem), and be able to perform pre-set queries, search/sort, and basic delete,add,edit functions. I will hopefully be later adding the function to print reports according to the database entries.However, the problem i am having is that when i go on to data sources, and click add new source, the following happens:3, it asks me which connection i will be using, i click new connection, then in the new connection dialog i choose the following : Microsoft Access Database File (OLE DB), then i browse for the database i made in the 'database file name' box, Then i delete the default username in the log in to database bit, as my database has no protection.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved