Forms :: Access Another Form In A Different Project In The Same Solutions

Jun 1, 2011

i have tried googling this and cant find a way to do this, i hav 2 projects in the same solutions, i am trying to write a bit for Solution1_Project1_Form1 to open a windowsForm in Solution1_Project2_Form2.

Start main application & View 2nd application FROM within the main application.

Start the 2nd application WITHOUT using the main application.

both applications need to read and write to a database, i dont think this makes a big diferance but thought i would mention it

View 2 Replies


ADVERTISEMENT

Close Project And Open Another In Multi-Project Solutions?

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

VS 2010 Reusing A Very Specific Project For Multiple Solutions?

Aug 1, 2011

First of all, I wasn't sure whether this was VB.NET or General Developer content... It's not technically about VB.NET code, but it's not very general either since it is specifically about Visual Studio. Feel free to move it if required.A while back I realized that all of my database connection code was getting very biolerplate. had 'developed' my own method of connecting to an Access database and storing the results. Basically, for each table I create one 'Manager' class and one 'Entity' class. The Entity class represents a single record in the database and has properties for each field.

View 9 Replies

Forms :: Wont Load After Copying Solutions?

Sep 24, 2011

basicly i had to format my computer, so i needed to reinstall Office 2010 and VS2010, but now my solutions wont load, VS isn't giving much information about it apart form its a object refrence equalls null, but i dont have a clue where to start as it happening before the form load. this is all the information i can give.

An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.System.InvalidOperationException{"An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object."}i have tried cleaning, rebuilding, build solutions and none is helping, if any1 can think of anything else to try please say, another option would be Their is a bit of software call teamviewer that i use, if anyone would be willing to download it and instal it, it would give them the ability to controll my computer to have a look and see what has went wrong.

View 3 Replies

Access A Project's Forms From Another Project #2

Aug 15, 2011

I have two projects: SQLtesting and Controls. Their physical locations are:

[Code]...

View 5 Replies

Access A Project's Forms From Another Project?

Aug 15, 2011

I have two projects: SQLtesting and Controls. Their physical locations are:

C:My DocumentsVisual Studio 2010ProjectsSQLtestingSQLtesting [forms reside here]
C:My DocumentsVisual Studio 2010ProjectsControlsControls [forms reside here]

The code shown below works fine. I run it from the project SQLtesting. It loads a listbox and a checkedlistbox with the controls found on a form. I can change the value of the FormName field to any form within the SQLtesting project and get the form's controls. The forms are not actually opened/shown.I would like to be able to access forms in other projects i.e.

C:My DocumentsVisual Studio 2010ProjectsControlsControls

while running the code from the SQLtesting project.

Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
Dim <strong>FormName </strong>As String = "Form1"
Dim FullTypeName As String

[code]....

View 4 Replies

Access Forms In Another Project In 2010/

Sep 18, 2011

I am using VB.net 2010 and I have two projects: SQLtesting and Controls. Their physical locations are:

C:My DocumentsVisual Studio 2010ProjectsSQLtestingSQLtesting [forms reside here]
C:My DocumentsVisual Studio 2010ProjectsControlsControls [forms reside here]

[code].....

View 1 Replies

Form Is Handling Processing Of Web Pages In In-built Solutions?

Mar 15, 2010

I've been busily working on a solution for my JSP page problem using an AxBrowser instead of a WebBrowser .NET control. However - the problem seems to be that whichever approach I use, the "back to results" button on my work's JSP page produces nothing but an empty white page in the results frame. I've compared keystroke for keystroke in WebBrowser control, AxBrowser, and IE. The in-built solutions all fail, but the standalone IE works perfectly.Might the problem lay in the way the form is handling the processing of the web pages in the in-built solutions? Could it be a problem with Asynchronous processing?If so, would it be advisable to try the WebBrowser control in a BackgroundWorker setup? It must be something to do with my application, since IE processes the form correctly.

View 4 Replies

Forms :: Form Has Focus Over Others With Project?

Feb 4, 2009

is it possible to have the same effect as a dialogue box, with form focus? eg, when using the open dialogue box, if you try to focus on another form within the app, it doesn't' let you and starts flashing. But when you switch to another app, it doesn't interfere.

View 2 Replies

All Project Forms Not In Application > Startup Form Combo Box

Jun 3, 2011

I am wanting to change my startup form for my application in Visual Studio for VB.Net. I double clicked "My Project" in the Solution Explorer and then clicked on the Application tab. For some reason I only see 12 forms out of the 6 forms I have in my project when the "Enable Application Framework" check box is True. When the check box is False I see all my forms, why?

View 9 Replies

Include Contact Project Into Another Project / Add More Items To Database / Forms In New Project?

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

Forms :: Access A DataTable On Another Form?

Jul 28, 2010

I have a DataSet(dssongs) with a DataTable(dtsongs) on a form(songsForm).

I am adding rows to the dataTable using the following

Dim dr As DataRow = songsForm.dtSongs.NewRow
dr.Item("colSongFile") = file
dr.Item("colSongTitle") = ""

[Code]....

How do I refer to a DataTable on another form?

View 2 Replies

Forms :: How To Access Controls In Another Form

Jul 30, 2011

I am trying to write general function to set the attributes of the command button and want to access this function from any forms.But I am getting error in this function.[code]

View 1 Replies

Forms :: Access Variable Of Child Form?

Jan 3, 2012

I have about 60 Child forms

Each have a variable with same name.

In Main form I want to set the value of the variable of the active child.

One way of doing that is like

Select Case Me.ActiveMdiChild.Name
Case "formName"
frmformName.Variable=0

I donot want to do that as it involves writing many cases and I may miss some.

Is there some other way of doing it .

I tried

Dim O as Object = Me.ActiveMdiChil
O.VariableName= 0

and its various variants but its not working

View 3 Replies

In-project Components Fail If Project Is Opened With In-project Component Used On Initially Open Form?

Dec 20, 2010

Public Class ExtendedDateTimePicker Inherits DateTimePicker

View 5 Replies

VS 2008 - Timer - Project A References Project B So Can Open A Large Form In Project B

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

Forms :: Code Running - But User Still Can Access Form ?

Feb 23, 2010

I am trying to figure out how to have a form running in a loop waiting for the user to input something....

such as:

private function looping()
while 1=1
if textbox.text = "hi" then do_something()
endwhile
end function

How can I do this? threading? Backgroundworker?

View 3 Replies

Forms :: Form Object Access From Class Method

Oct 22, 2009

I want a string and a listbox, both which are in a form to be modified by an instance of a class method. Should (could I):

1. Pass the entire form to the class method as parameter.

2. Pass the listbox and the string to the method as parameters.

What's the best approach to get access and modify this string and listbox on the form.

View 3 Replies

Forms :: When The Form Is On Top, User Cannot Access The Other Application In The Windows

Apr 13, 2010

I only managed make the form always on top. But what I want is when the form is on top, user cannot access the other application in the windows.

For example : Some messagebox won't let users access the other application until the users hit the OK button.

View 1 Replies

Forms :: Access Main Form From Second Thread Running In A Module?

Jun 22, 2010

I was a vb6 user, done a few projects only with forums Now i am moving to vb.net(vb2010) and i have some trouble.Lets say we have a form(form1), a module(mod1) and a textbox on the form1.

i want to start a Sub (DoWork) in the module but in a new thread.

Dim Thread1 As System.Threading.Thread
Thread1 = New Threading.Thread(AddressOf mod1.DoWork)
Thread1.Start()

The DoWork sub does some stuff and when it's finished i want to change the text of a textbox1 in the main form and start another sub (DoWork2) on the main form under the main thread not the one DoWork is running under.

Plese do not refer me to another post that mighe give me a part answer, try to explain to me what i have to do and why.

View 3 Replies

MS ACCESS/ Save And Load Database From Main Form To Child Forms' Datagridview

Jun 10, 2010

I build my project and i got some problems. First i want to print barcode for books(toolstripmenu item). but i cant. here's the code that i found:

[code..]

second problem is printing again. i want to print my MS ACCESS .mdb from child datagridview's records.

third one i want to save and load(with dialogs) my database from main form to child forms' datagridview.and the last one is help provider. i prepare my own .htm help file, when press F1 it opens. but i dont know how to call provider to toolstripmenuitem and help provider keep my computer's path so when i call provider another computer, the programme cant find the path.

View 10 Replies

Forms :: Access Protected Microsoft Office File Directly From A .net Windows Form?

May 9, 2010

Is there any possibility to access directly from a Windows form created in VB.net a protected Excel file? I mean, that the password for opening xls file to be stored in VB.net Windows form. I also have the same problem for a Microsoft Access protected file.

View 2 Replies

IDE :: Windows Forms Classes Appear As Class Modules Not Form Modules In Project Explorer

Jan 7, 2011

Yesterday I opened Visual Studio (2008 v 9.0.30729.1) and all the winform classes in my project display with class module icons with the little 'VB', instead of form module icons with the little form icon!

When I double click on a form module, the form designer doesn't open, just the code module.

When I run the project, it runs fine. There are no errors. The project builds fine.

I did Project --> show all files, and I can see the designer and resx files below the form module which doesn't look or act like a form module.

I can't open my forms to design them!

View 1 Replies

C# - Access Members Of A C-Sharp Project From .NET Project?

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

Database - Access A Datasource From One Project In Another Project?

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

Forms :: Creating A Sub Main In A Windows Forms Project?

Sep 13, 2010

What is the vb.net equivalent to accomplishing this?

static void Main()
{
frmCalcView view = new frmCalcView();

[code].....

View 5 Replies

Project Using VB And A Database In Access - Check If My Application Requires Access To Be Installed Or Not?

Feb 16, 2012

I'm using VS 2010, and I did a project using VB and a database in Access. The problem is that when I try to put that "application" on other computers, sometimes, is not working. I thought it can be because on these computers they don't have access, but on one computer, is running another app which is using Access and there is no Access installed. How can I check if my application requires Access to be installed or not?

Here is a example of how I did the connection:

Public AccessOLEDBConnString= "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & myfullpath & ";Jet OLEDB:Database Password=password"

Function getConnection() As OleDb.OleDbConnection

[CODE]...

And when I want to have access at the data I'm doing like this:

dim conn as Oledb.OledbConnection

dim sql as string

dim ds as Dataset

[CODE]...

View 9 Replies

Convert A .NET 4.0 Webforms Solutions To C# 4.0?

Jun 18, 2011

I have a VB.NET 4.0 based solution (just one project) in Web Forms and needs quick conversion of the whole solution to C#.

View 1 Replies

Licensing For VB 2008 Solutions?

Oct 5, 2009

How we create a licensing system for a vb 2008 solution to protect it from unauthorized access? Is there any code to generate a unique system id to identify a machine like CPU ID etc.?

View 1 Replies

.net - Optimistic Concurrency And Improving Solutions?

Mar 19, 2011

In our database we have gigantic tables (it was initially built 20 years ago). We are on the process of developing it.

Some tables contain rowversion and optimistic concurrency. We were wondering if there is a way to just correspond rowversion to the modification of some specific columns, but not all of them. In Normal Case, T-SQL which is generated then would be huge.

View 1 Replies







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