IDE :: Excluding Forms To Convert A Window Forms Application To Class Library Application

Jan 16, 2012

I am not able to find the Exclude Command in VB 2010 Express. I have no idea which version of Visual Studio it is working with. I've got one 217MB VB 2010 Express file and many 2008 VB Express files with one of them measuring 31 MB. There many other SQL files and .Net Files.

View 4 Replies


ADVERTISEMENT

VS 2008 : Load Forms From A Class Library Project (.dll) Into New "menu Application"?

Apr 8, 2011

I have a class library project (.dll) which contains a couple of forms.I now have a new project that would be the Client.

1) How do I load the forms from the dll into this project at runtime?

2) How do I set the client to be the MDiParent of the forms that will be opened from the dll?

View 1 Replies

Forms :: Transfer Console Application To Window Form Application

Dec 22, 2011

modify console application below to window form application for me.I've tried by myself for million times, but i couldn't console application.rar?

View 2 Replies

Convert A VB2008 Console Application To Windows Forms Application

Feb 7, 2010

I have a fully functional multi-threaded VB2008 console application that I need to convert to a windows forms application. I am doing this to add additional functionality at a later time. How would I go about doing this?

View 9 Replies

Forms :: Possible To Create An MDI Application Which Have Each MDI Window

Oct 8, 2009

Is it possible to create an MDI application which have each MDI window in a separate processes like Chrome does?

View 1 Replies

Reg. Non Sizable Window Forms In The Application?

Mar 10, 2009

I amin process of developing a student database. Here i have many forms that are navigated through. The problem is what shall i do to have all the windows that are displayed are of same size???

View 1 Replies

Forms :: How To Create Window Based Application

Feb 25, 2009

how to create window based application in vb.net

View 2 Replies

Create An Enumeration For Colors In Window Forms Application?

Jun 21, 2009

I am building a simple windows form (using VB.NET) for a friend to use at work. His company has about 10 specific colors schemes (they have list of RGB values) that they use for the company logo, website etc.

I want to follow this color scheme in my application and, to simplify development, would like to build an enumeration of these colors to avoid hard coding the RBG value for every label, panel etc.

My initial thought was to do the following:

Enum ColorTypes
CompanyDarkBlue = Color.FromArgB(0,56,147)
CompanyBlue = Color.FromArgB(0,111,198)
CompanyLightBlue = Color.FromArgB(0,145,201)
End Enum

However, it's not that simple as a constant is required. I looked around on the internet and I found an example of how to achieve what I need but it seemed inordinately complicated for what seems like quite a common requirement for application development.

View 4 Replies

Forms :: Application Unresponsive After Moving Window (when Running)?

Dec 8, 2009

I have an application (written in VB.net 2008) which reads a text file. Parses the record and uses the second field (a UK postcode) to match an Access database (SQL - Select * from Table1 ......), then writes a text file back out with the original input postcode plus several fields taken from the access database.

I have 3 counts happening during the process, records read, postcodes matched and postcodes not matched. I move these values to labels on the form, then every 50 records read, I refresh the form (me.refresh) to update the labels (showing the end user where the process is upto).When running, if I drag the window around the screen, or minimize then maximize, or click off the window to another window, the application seems to freeze and the counter labels do not refresh.

View 3 Replies

MDI Application MDI Child Forms Close() Error Creating Window Handle?

Jul 14, 2012

I'm in the process of converting a VB6.0 application to VB.Net (2008 Express). I have a MDI parent form, I'll call mdiBackground, and 4 MDI child forms, frmStatus, frmShow, frmQwerty, and frmSentence.The layout is as follows:mdibackground - has the menus at top and is a container for the child forms.frmSentence - appears at the top frmShow & frmQwerty - appear at the left and when one is closed the other one is in the same position.frmStatus - appears at the right, it has buttons which control when frmShow and frmQwerty are to appear I have a couple of regular forms that act as dialog forms. The Me.Close() works fine on these.

[Code]...

View 11 Replies

Running Forms In Class Library?

Jun 20, 2012

i have a query iam able to add items in listbox from form 2 to form1 from windows application in vb.net
but iam unable to add items in listbox from form 2 to form1?

View 6 Replies

Forms :: Running Form In Class Library?

Jun 20, 2012

i have a query iam able to add items in listbox from form 2 to form1 from windows application in vb.net but iam unable to add items in listbox from form 2 to form1

View 3 Replies

VS 2010 Forms In Class Library Project?

Jun 17, 2011

I was wondering is it possible to put forms into a class library project and if so could I use those forms as an mdi child from my main forms app?A bit behind what I am trying to do:I am creating a game which is essentially going to have its own 'operating system' As the user progresses in the game they can 'install' new software into their operating system.I have my 'Desktop' that is an MDI Parent and what I want the users to be able to do it when they have purchased a new bit of software (also in game) the game will connect to my central server download a dll and place it in a directory, that is essentially installing the new bit of software and the game will then pick up that dll and add a new button the Programs list and when the user clicks on that software in the Programs list it will launch the form in the Class Library as an MDI Child of the 'desktop

View 2 Replies

Forms :: Class Library Reference Disappearing Upon Compiling?

Dec 30, 2011

I have a solution built of 3 projects:

1. VB.NET Class Library - data access and objects, reusable methods, etc.

2. ASP.NET Web app - web application that references the class library

3. VB.NET Windows Form app - windows app that references the class library

I have no problems with the web app. It referenes the class library and every time the project is built the web app gets a freshly compiled dll from the class library.

My problem is with the windows form app. When I first add the reference to the class library project, I get all of the intellisense I'd expect while coding. When I try to compile, though, it's like the reference disappears and all my code that is based on the class library errors out with "'xxx' is not declared" or "'xxx' is not defined" where 'xxx' is a method or class within the class library. If I go into the project properties, the reference is still there, but the project no longer compiles and I also lose intellisense for all classes within the class library. If I remove and re-add the reference, it works again, until I try to compile. Then the errors occur again.

I've tried creating a separate Windows Forms project and just referencing the DLL created by the class library but get the same problem. HOWEVER, if I create a seperate blank WEB project and reference the dll (or the project), everything compiles fine. It seems to be something with my class library being referenced by a windows forms app.

For reference purposes, my class library has the following references:system, system.cor, system.data, system.data.datasetextensions, system.drawing, system.web, system.xml, system.xml.linq I noticed I can't add a reference to System.Web in my windows forms app, and I wonder if my problem is somewhere in this area. I need the reference is my class library because it passes some HttpContext objects back and forth to a few of the methods.

View 1 Replies

Basic Application(windows Forms) Doesn't Exit Properly After Navigating Through Forms

Jul 9, 2010

I have a basic three form application. It doesn't seem to close after navigating through forms. If I were to open the application, and the main form is displayed. If I press the X button, the application closes fine(Goes from processes) If I were to open the application, and then navigate from the main form to another form using me.hide & form1.show, and press the red X on Form1, the application again, closes fine.

[Code]...

View 6 Replies

Application That Has Multiple Front Ends Developed Using Windows Forms / WPF / ASP / Compact Framework Mobile Forms

Apr 9, 2010

I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.

Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?

View 3 Replies

Create A Class Library That Has Forms To That The Users Can Perform Some Functionality?

Mar 14, 2008

I want to create a Class Library that has forms to that the users can perform some functionality. Is that possible in VS 2008? I believe it is, but can't find any examples out their to provide a template or a guide to create mine. What I am trying to do is put common functionality in a class library to multiple applications that I create can access this class library to perform some functionality.

View 3 Replies

C# - Call .NET 4.0 WPF Class Library From 2.0 Application

Apr 8, 2011

I have an application written in .NET 4.0 that i compile into a DLL file. I want to be able to use this DLL file in a Windows Forms .NET 2.0 application. I don't need the application to really interact much, except just passing a couple string values to the 4.0 DLL. The DLL is pretty much a bunch of Windows which i converted to UserControls and i just need to be able to reference them to display the UserControls from the 2.0 application without having to use a different exe and having to package them separately.

What is the best way to do this? Because when i try to add the reference to the DLL to the 2.0 application, it gives me and error saying the DLL is built in a newer version of .NET so i can't do it that way. Is this where a COM object would come in?

View 2 Replies

Class Library Vs. Windows Application?

Sep 28, 2010

Here is code in a form that is called from the "main" form:Imports

System.Data.SqlClient
Imports
ClassObjects
Imports

[Code]...

frmOdyssey is the main form, from which frmSearch is called. After the above processing, I want to go BACK to frmOdyssey to process the FilFilterGrid sub on the Grid defined on frm Odyssey. I will be assigning a new DataSource for the Grid, which will be "selected down" by the strFilter. The above code works with no issue whatsoever in "Windows Application" mode. However, if I switch to "Class Library" mode, I get
an error on the last line of the last Sub, telling me "Reference to a non-shared member requires an object reference". If I uncomment the "Dim f As New frmOdyssey" line, and change the "frmOdyssey" to "f" on the next line, the error goes away, but then the process doesn't work, because the "select down" does not happen. I don't know why, except that "logically" I don't want a "new version" of the frmOdyssey. I want to update the existing form.

View 8 Replies

Application Does Not Return From Call To System.Windows.Forms.Application.DoEvents?

Aug 2, 2011

I have a windows forms application written in VB.NET which scrapes information from serveral web pages (who doesn't right)? Anyway, I am having problem with one particular site where partway through the page navigation my application hangs. When I press pause (or break) in the debugger, it stops on a call to System.Windows.Forms.Application.DoEvents.

Resuming execution shows that it really is stuck on this line (it does not reach the next line of code). It also hangs about the same point each time I run it (at least its consistent). Since System.Windows.Forms.Application.DoEvents yields to other threads on the same processor and then resumes execution of the current thread, I think the problem is that some other thread is not behaving well (not returning from some event handling code). I thought Windows 7 was pre-emptive, which makes me
doubt that theory but I really don't know.

[Code]...

The program scrapes somewhere between 12 and 14 pages before it gets stuck on the call to DoEvents. Does anyone have a clue why this would happen? Why would any call to DoEvents hang?

View 1 Replies

Re-direct Output From A Console Application To A Textbox In A Windows Forms Application?

Sep 14, 2010

I am trying to use the System.Diagnostics.Process class.I have the following Windows Forms application. It consists of 1 Button and 1 TextBox. The only code is for the button click event as follows.

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myProcess As New Process()

[code]....

View 2 Replies

Accesing Variable Application From Class Library

Nov 5, 2010

I'm trying to acces an application variable from my class library

i.e : my varaible contain the connection string initailized in application start method

Application("ConnectionString") = System.Configuration.ConfigurationManager.AppSettings("ConnectionString")

View 3 Replies

Class Library Getting Settings From Own App.config NOT The Application's?

Jun 2, 2009

I'm having trouble with my application settings and I'm wondering if anyone else has seen this.

I have a Librabry with a connection string. In the project for the library it has its own app.config:

<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="OBInfrastructure.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>

[Code]...

View 1 Replies

Converting MS ACCESS Application To Windows Forms Application

Jun 23, 2010

My boss gave me an MS Access application that was developed by our former colleague. He wants me to convert that application to VB.Net Windows form application. I went through the MS Access Application. It contains tables, queries, forms, reports and macros. I could not find the programming (Where is the code written in MS Access?). My boss wants the windows application to be same as the MS Access Application (both in design and logic). I don't how will i develop the windows form. How can I achieve this?

View 2 Replies

Converting MS ACCESS Application To Windows Forms Application?

Jun 23, 2010

My boss gave me an MS Access application that was developed by our former colleague. He wants me to convert that application to VB.Net Windows form application. I went through the MS Access Application. It contains tables, queries, forms, reports and macros. I could not find the programming (Where is the code written in MS Access?). My boss wants the windows application to be same as the MS Access Application (both in design and logic). I don't how will i develop the windows form.

View 4 Replies

Adding A Startup Form To A Class Library Application?

Mar 25, 2012

I have a project that was created as a class library application. It does not have any start up forms. How do I add and show a start up form to this project? Where does this application start since there is no Main Sub that I can find. I am using Visual Studio 2008 express.

View 2 Replies

Create An Application Without Distributing A Referenced Class Library

Mar 1, 2011

I am using VB .NET 2003. I have created a user defined Class Library and created a reference to it in my application. Is there a way I can compile the application so that the Class Library DLL is embedded into the application? I would really like to be able to distribute the application without having to distribute the DLL as a second a file.

In other words, I made a New Class Library lets say called TEST. I developed a new class within this library called MYCLASS. I built the Library TEST and created TEST.DLL. I then made a new visual basic project called APP1. I added a reference to TEST.DLL. I now can use TEST.MYCLASS within my APP1 project. The application APP1.EXE will run in the test environment, but if I move it to the runtime environment it will give me an error "File or assembly name TEST or one of its dependencies was not found". To correct this error I can place TEST.DLL in the directory where APP1.EXE resides. I would prefer not to have to put TEST.DLL in the directory. Can I easily compile it into APP1?

View 15 Replies

Forms :: Two Forms Application Is Closing

Dec 12, 2011

I have two forms and a button on the first form. What i want is when i click the button the second form to show and the first one to close. But this isn't working with: Form2.show() Me.close All the application is closing with the code above.

View 4 Replies

Change Connection String From Class Library In Main Application At Runtime?

Jan 16, 2009

You can change the connection string at run-time like this. You make the connection string setting available for writing as a separate property inside the MySettings class:

Partial Friend NotInheritable Class MySettings
Public WriteOnly Property RunTimeConnectionString()
Set(ByVal value)

[code]....

Then, in some place when the application is being initialized (before using any table adapters of typed datasets), write something like:

My.Settings.RunTimeConnectionString = My.Settings.ProductionConnectionString

Where ProductionConnectionString is a simple String setting. It is a User Scope setting so every user can change it (by assigning a value to it, similar to the code above) and save it by calling My.Settings.Save()This code works well for connection strings which were initially created in the main project and stored in it's settings (= app.config file).

The connection string in the app.config actually has a longer name: MyApp.MySettings.MyConnectionString.When you have a connection string stored in the app.config in a class library project, and reference that project in the main project, the app.config files will somehow be merged, so the class library has it's settings.The thing that don't know how to do, is change a setting from the class library at run-time. I could copy the connection string setting from the class library to the main project's app.config. I must keep the same name, which looks something like: MyClassLibrary.My.MySettings.MyConnectionString.Can the same principle I showed above be somehow applied to this second connection string?

View 3 Replies

Convert Already Designed And Working Forms To MDI Child Forms?

Dec 11, 2009

I build my first Project composed of several forms and it�s working just fine. Id like now to redesign the project as a MDI Application. Once created the parent form, I can create child forms but thats not what I need. What I would need is convert my already designed and working forms to MDI child forms. How can that be done?

View 1 Replies







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