VS 2005 Creating Different Instance For Different Users?

Aug 29, 2009

I have created a multiuser application and at different user login i want to create different instances of the application.How to do this? Can somebody give the concept of how to approach this?

View 14 Replies


ADVERTISEMENT

Creating Single Instance Form In MDI Application - Check Whether Form's Instance Created Or Not?

Feb 8, 2012

creating single instance form in MDI Application. How to check whether form's instance created or not?

View 6 Replies

Creating Different Users That Have Different Authorization Using .net?

Apr 25, 2010

I am not capable of creating different users that have different authorization using vb.net.

View 5 Replies

Creating Inactive Users In VB?

Jan 26, 2011

I am having trouble creating inactive users in VB. I watched the tutorial [URL]but it is for C# and the code behind won't work in VB. I need the users to be inactive when they register and send the administrator an email saying someone has registered to be approved.

View 3 Replies

Creating Win App To Communicate Between Users On LAN

Jun 4, 2012

My project is to create a windows application for communicating between users on our LAN, to both send and receive short text messages. I am attaching a rough draft of my Form in Basic, with notes about what I want in the different parts. I am only trying to find out if my goals are possible in VB-2010, before I invest a lot of time searching for and experimenting with the code... so here are my initial questions:

1) Is it possible to build such an application in Visual Basic 2010, and would I be able to use the free "Express" version I have downloaded, or would I need to purchase the full version?
2) Basically, each user would run the EXE program which is the main window (like the attached), and would see all users connected to the LAN (and listening on the specified port) in the ListBox... would receive incoming messages in the top window (output from a console module I have already got working), and be able to send to anyone on the LAN using the bottom window... Is all of this possible in VB-2010?
3) Is there any complications making this application work well on both Windows XP and Windows 7 (64bit) user machines?

I don't expect this to be easy by any means, I just want to know if I'm embarking on something that is possible or not.
Attached image(s)

View 10 Replies

Creating Report For Total Users Per Job

Jul 17, 2009

So I had a report I needed to create and needed to get the total users per job for a system that I was not (and still am not) very familiar with. I asked the developer for that system for the code and was told it was no easy task. He sent me a query that didn't look anything like a user count. I told him I needed something to get all the users for each and every job in order to put it in the report I was building for one of the clients. I was told that wouldn't really work. I looked at his code as it worked on a per job basis.

The following is an example of the "logic" used to get the user count per job in asp.net:
TRUNCATE TABLE1
INSERT username INTO TABLE1 FROM QUERY1 WHERE CRITERIA MET AND job = *passedinjob
INSERT username INTO TABLE1 FROM QUERY2 WHERE CRITERIA MET AND job = *passedinjob AND username NOT IN TABLE1
SELECT username FROM TABLE1 and put in a dataset
[Code] .....

There were no UNION statements in the query1 or query2, there was no select count(*) from table, there was no recordset.count..

View 1 Replies

Creating Settings For Multiple Users

Jun 28, 2011

I have a form which has a textbox named "textbox1", and a button named "Button 1". Button 1 is meant to be a submission for textbox1 (i.e. when button1 is pressed, the value of textbox1 is saved and remembered). I want the value of textbox1 to be remembered on any computer, but I need it to be update-able too. I tried using settings to do this like so:

Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TextBox1.Text = My.Settings.TextBox1

[Code]....

but the problem in doing this is it only works for the current user. When the application is then put on another computer the value is blank.

View 4 Replies

Creating A Tool To Log Encountered By Users Of System

Jan 14, 2009

I haven't been doing a programming for awhile now. But, I was a VB programmer before. I will be creating a tool to log issues encountered by the users of our system. It will be a web based. I'm planning to create it in VB.Net. Any resources that you could share is greatly appreciated. I'm looking for a ready program that I could start with to speed up my programming.

View 1 Replies

VS 2010 Creating Settings For Multiple Users?

Jun 28, 2011

I have a form which has a textbox named "textbox1", and a button named "Button 1". Button 1 is meant to be a submission for textbox1 (i.e. when button1 is pressed, the value of textbox1 is saved and remembered). I want the value of textbox1 to be remembered on any computer, but I need it to be update-able too.I tried using settings to do this like so:

Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TextBox1.Text = My.Settings.TextBox1
End Sub

[code]....

but the problem in doing this is it only works for the current user. When the application is then put on another computer the value is blank.

View 1 Replies

VS 2005 Mobile Application VB 2005 - Detect If An Instance Of App Is Already Running?

Feb 8, 2012

I am in process to develop an application for Windows Mobile 6.5 using Visual Basic 2005 and .NET Compact Framework. My problem is that I want to know if an instance of my application is already running and, in that case, I want to jump directly to that instance, without starting another one. I tried several solutions found on the internet but I think there are solution for desktop applications not for mobile applications because I have a lot of errors.

View 1 Replies

Creating A New Instance Of An Object?

Apr 24, 2011

Suppose a click event is fired and a particular gridview datasource is set in the code behind page by retrieving a data table from a business logic class.

So programmatically speaking, what is the main difference between the two set of code listed below.
Private Sub btnGetGridViewData_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim myBLL as New BusinessLogicClass

[code]....

I guess my main question is, what is the purpose of creating a new instance of an object in the above scenario?

View 3 Replies

Creating New Form Instance?

Jul 7, 2011

I have a form with a button. I want the button to show a new instance of the same form but I don't know what to do. I'm working in vb.net 2010

View 3 Replies

Difference In Creating Instance Between Vb & C#?

Sep 22, 2011

I am converting C# to VB right now

in VB, I have these codes :

Dim ind As Foo.Index
Dim ed As Foo.Edit
ind = New Foo.Index

[Code]....

Seems I do need to show all the codes. But I need to talk directly to you as well (or You just install the software of mine).

View 5 Replies

Object Is Not Creating An Instance

Apr 9, 2010

My project is done on vb,net& sql2000 but it is not running and showing error -

" object is not creating an instance " what to do ?

View 3 Replies

Creating A Function To Enable / Disable Bttns Based On Users

Mar 8, 2012

What i am trying to is create a function were by a user when he logs in, based on the rights given to them they can either use certain buttons . I no i have to use the enable and disable function.[code]if username is true and user_name is Sales then enable x y z buttons. i been trying looking around and reading and found the following which i cannot get to work with my system but they follow a similiar patten to what i want to achieve.[code]

View 1 Replies

Creating A Logon System To Check Users In SQL2008 Express?

Jun 21, 2010

I am currently creating an application to track timekeeping (a clock in/out system) and I am trying to work out the best way to do this.

I have a Main Form which contains buttons to ;

- Log in
- Out for Break
- In from Break
- Log out

When a user presses the "log in" button the logon form appears, the user then enters their username and password. What happens next is where I would like the help.

Process is as follows:Click Logon Enter Username/Password Check Logon Form for errors (eg no password etc) Check User is in Database (using SQL query) If user is in DB and username and pass are ok then refer back to the main form to perform Stored Procedure for what the user wants to do (eg logon or or out for break etc). Set label on main form to show user as logged on My question is should I be using a public variable and calling the main form again or in the user logon form having 4 options and using an IF ELSE to select the appropriate Stored Procedure?

View 3 Replies

.net - Creating A New Instance Of A Class Object Box()

Sep 29, 2011

my aim is to create a new instance box at the push of a button, the box has strings name and Id to be filled concatenating the auto generated ID i.e. 0 to 210 plus a string "Box" added by the user. I had problems earlier creating a structure within the class box, frankly I am not sure if the code below will work, as i try to run it in VB I get an error indicating that I am using the variables strBoxPositions() and strBoxNumbers() without assigning a value to it. The thing is the strBoxPositions() should automatically be filled by arrPosition() which will be created at the same time the new object box is created and the strNumbers() will be created with empty strings to be filled at latter stage by the used as and when necessary.

how could I initialise those arrays to get the program to run and perhaps ill be able to see if the code works or not, or just correct this code with a better way of code with comments, also if possible some indication on how could I update the strNumbers array inputing the strings one at a time on a text box field.

Public class form1
Public Class Box
Public intBoxID As Integer

[Code].....

View 2 Replies

.net 4.0 - Error When Creating An Instance Of Word

Nov 15, 2010

I am getting an error when I run this app in VS 2010 (it works fine in VS 2008)

[Code]...

View 2 Replies

Creating A Shared Instance Of An Object?

Feb 13, 2012

I would like to create a global instance of a User Class that can be referenced by all the forms in my MDI application.This object may be set during the login procedure by the Login form but the user attributes are to be available for other forms. For example, MyUser.ID will be required for meeting the audit requirements whenever data is changed.

View 14 Replies

Creating Instance Of COM Component Error?

May 21, 2010

VS Express 2010 gives me a "Creating an instance of the COM component with CLSID {D70E31AD-2614-49F2-B0FC-ACA781D81F3E} from the IClassFactory failed due to the following error: 8007000e."

Error at this line

Dim acadDoc As New Autodesk.AutoCAD.Interop.AcadDocument

Here is the method call:

Private Sub Process_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Process.Click
Me.DialogResult = System.Windows.Forms.DialogResult.OK

[Code].....

View 1 Replies

"Make Single Instance Application" Supposed To Work Across Multiple XP Users?

Jun 30, 2009

I am writing a program in VB.net (vs 2008) that requires that only one instance of the executable be running at a time. Naturally I went for the simple solution by selecting the "Make single instance application" checkbox in the Project properties. Unfortunately, this option does not seem to work across multiple users that are logged into a single XP machine, thereby causing the same issues for my program as if I were able to run multiple instances on one single user. Granted this is a corner case, that someone would switch users while my program is running, but I'd like to understand the limitations. So my question is whether the "Make single instance application" property is supposed to work across multiple users? or is it limited to only one-instance-per-user.

Here are the steps the recreate the issue (prereqs: computer with XP pro installed, 2 user accounts (not on a Windows Domain), and a dummy "single instance" program created using the property mentioned above):

1) Log in with user1, start up the single instance program
2) Switch to user2 (StartMenu -> LogOff -> Switch User)
3) Start up the single instance program using user2

*After step 3, the program launches without complaint even though another instance is running on user1. Is this a glitch? or by design?

View 2 Replies

Close Excel Instance After Creating .xls File In VB

Oct 28, 2009

I am creating an excel file in my vb app. Below is the code I am using to do this. But when the application is closed, I still have an instance of Excel running in the background. How do i close it? I can do it with the xlWBook but not the xlApp.

'create empty excel file
xlApp = CType(CreateObject("Excel.Application"), Microsoft.Office.Interop.Excel.Application)

[Code].....

View 8 Replies

Creating A VB Form For Adding Instance In A Database

Apr 16, 2009

Now I have created this order form but when I click on the ADD button nothing happens. I expect when I click on the item automatically the data is added to my database. i am using SQL Server 2005

View 1 Replies

Creating A VB Form For Adding Instance S In A Database?

May 11, 2009

Now I have created this order form but when I click on the ADD button nothing happens. I expect when I click on the item automatically the data is added to my database. i am using SQL Server 2005

View 5 Replies

Creating An Instance Of MS Project Application Fails In .Net?

Apr 18, 2012

In my VB .Net code, I am trying to create to launch MS Project Application. Dim prjApp As Microsoft.Office.Interop.MSProject.Application = New Microsoft.Office.Interop.MSProject.Application

But I am getting the exception as follows:

"Creating an instance of the COM component with CSSID {36D27C48-A1E8-11D3-BA55-00C04F72F325} from the
IClassFactory failed due to the following error: 80010001".Note: This exception happens in 64 bit Windows 7 German OS. But the same code runs successfully in 32 bit Win XP (German and English) and 64 bit Windows 7 English OS.I have even tried the following steps in German 64 bit Win 7

1. Running the application in Administrator mode
2. Setting UAC to low.
3. Re-installing MS Project in German 64 bit Win 7.

View 1 Replies

Creating Instance Of COM Component From IClassFactory Failed

Apr 15, 2010

I am using msn api to read contacts out of msn
Interop.messengerapi.dll

When I run the app on my machine everything works perfect. But when I run it on another machine, the following error appears:
Creating an instance of the COM component with CLSID {B69003B3-C55E-4B48-836C-BC5946FC3B28} from the IClassFactory failed due to the following error: 8007000e.I have merged the interop messenger dll properly with imerge, so that cant be the problem.

Also a memory problem must be out of the question. I only use 300mb from the 4GB. There is also enough disk space available.

My Code:
Private Sub getMSNContacts()
Dim objMSN As New MessengerAPI.Messenger
Dim msncontact As MessengerAPI.IMessengerContact
Dim msncontacts As MessengerAPI.IMessengerContacts = objMSN.MyContacts
For Each msncontact In msncontacts
ListBox1.Items.Add(msncontact.SigninName)
Next
MsgBox("getMSNContacts")
End Sub

View 2 Replies

IDE :: VB6.0 Creating A Class Instance Not Comes Namespace Wise?

Jun 26, 2009

In VB.net we are creating different namespace level classes. For Example,DynamicPDF - Root NameSpaceTest ,Report are two sub folders in side the sub folders some classes.

1) DynamicPDF.Test.ClassA
2) DynamicPDF.Test.Report.ClassB
using the VB.NET i was generated the Tlb file.

[code]....

View 3 Replies

Valid Delete Command - Creating A Form That Creates New Users And Then Updates Them To A Dataset

Dec 29, 2010

I am creating a form that creates new users and then updates them to a dataset, I have done this ok, but I am getting a runtime error when I delete a record. Please see below the exception being thrown

"Update requires a valid DeleteCommand when passed DataRow collection with deleted rows"

My code below

CODE:

So I know I need to add a delete command, but how do I write this in code and do I write it in the saveitem click event? I guess I would because the app crashes when I click save to update the dataset.

View 5 Replies

Creating An Array Of Instances Where Instance Could Be Base Or Sub Class?

Oct 31, 2011

I have a class structure and am attempting to create an array of object instances from the class some instances are parents and some are children Code snippets,

Parent Class object
Option Strict On
Option Explicit On
Public Class cTransportItem

[code]....

View 1 Replies

Office Auto-mation :: Creating A New Instance Of Excel?

Feb 12, 2010

I'm writing VB code in Visual Basic 2008 Express and can't seem to figure out how to create a new instance of Excel with VB code. The most common answer appears to be setting an object variable to 'Excel.Application', but that gives an error (Type 'Excel.Application' is not defined).

View 1 Replies







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