[2008] Open Specific Form For Different Users?
Feb 19, 2009
I've got 2 levels of users, and I'd like to find a way to open a certain form for each user. I have tried something that I thought would work, but it just opens the same form for all users:
If "MenuType" = "Landscaper" Then
Dim MainPanel As frmOwnerPanel
MainPanel = New frmOwnerPanel
[code]......
View 11 Replies
ADVERTISEMENT
Oct 22, 2009
How would i make it so when the user clicks a button. it will open a form with a some tabs but go to a specific tab like lets say i have 4 lets say i click the button and it goes to 2.
View 10 Replies
Jan 9, 2010
I want to know how you can open a form with specific information as if you are just calling a sub, kinda like how a message box is. Example:
MyForm.Show("The form title")I also want to know how I could apply this to forms that are being created from pre existing forms. Exaple:
vb Dim NewMyForm as New MyForm("Title Text")'Now I want to know for each of these next 2 lines of code, think of them as being different codes all together.NewMyForm.Show() ' orNewMyForm.MdiParent = Form1NewMyForm.Show
View 30 Replies
Mar 15, 2012
I have form A that has a datagrid on it, I want to be able to double click a row in form A and open form B to that record.
I know how to do that in VBA in Access 2007, but I am having trouble comprehending the procedure for VB 2010.
View 8 Replies
Feb 24, 2010
i m using vb. net when i run my form
View 1 Replies
Mar 29, 2010
i'm not expert in writting vb codes. but there's this IT project im doing in access
View 3 Replies
Feb 22, 2011
I am developing an application with a number of windows forms. The first form I designed is the one that opens when I run the program. This was fine all during the development and testing.
Now I want to add a Login form but can't figure out how to get it to be the opening form when a user starts the program.
View 3 Replies
Jun 12, 2011
Is there a way that I can use like F1, F2, F3, etc to open a specific form? I would like to have an options form but not have it to where anyone can access it unless they know the Function key to use.
View 1 Replies
Sep 6, 2010
I have a small "options" form that when shown, the user submits some changes, clicks a button, and then it fades out. I want the form to open at the mouse location. How would I do that?
View 1 Replies
May 22, 2009
I have a dataset called KeyData made up of two tables Customers and Orders.
I have two forms, one named MainForm that shows records from Customers in details view and the related Orders shown in GridView called OrdersDataGridView. The other form is called OrdersForm and is populated with the Orders table from the keydata dataset and shows records in details view.
When I navigate the MainForm customer records the correct orders are shown in the OrdersDataGridView. So far so good.
Here's the code that was generated when I dropped the tables within KeyData dataset onto the MainForm:
Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'KeyData.Orders' table. You can move, or remove it, as needed.
[Code]....
View 4 Replies
Mar 20, 2010
I have this frm_customers and this button called View/Edit.
What I want is that when i click this button it should ask me a customer Id and then go to that customer id in frm_customer
View 1 Replies
Aug 17, 2011
I've created a very simple form with one button on. I need it so when the form runs, it opens in the bottom right hand corner of the screen regardless of the resolution. It also needs to be always on top of all other applications.
When the buttons pressed, i need it to close all iexplore instances and reopen a fresh instance.
I've tried to search for the answer but to no avail.
View 10 Replies
Apr 22, 2009
I need to stretch the form according by the users screen. My application has to run maximized, but other users may have different resolutions sat and they won't see the whole program or will see it smaller than their screen.
This may affect the resolution, what code would do that?
maybe something like: get resolution (x:y) and set size width and height but I would still need to stretch all the other controls within the form as well.
View 2 Replies
Dec 29, 2010
I've got a code using SQLClient that loops though all users in a Users table inside each loop i want to preform another search in the UserOrders table, thus doing a count of all orders.
I get this error
HTML
There is already an open DataReader associated with this Command which must be closed first.
Here is my code
vb.net UserLists.Items.Clear()
Dim connection As New SqlClient.SqlConnection(My.Settings.ConnectString)
Dim command As New SqlClient.SqlCommand("SELECT * FROM Users ORDER BY PersonName",
[CODE]...
View 3 Replies
Feb 24, 2010
how i can get a list of users who are members of a group in Active Directory. A vb.net example would be great. I can list all users in AD, but cannot get just the users in a group.
Also do anybody know of a really easy tutorial on LDAP queries with vb.net examples.
View 1 Replies
Jun 16, 2011
restrict users from setting focus to a specific datagridview cell in vb.net
View 8 Replies
Jan 26, 2009
[Code].....
I got to work and only popup once instead of multiple times. But what Im wondering is It wont do that Unless I run the program AT the same time that is in the Cell. Im wondering if ma7ybe I should creat a new timer for each row then just have a timer constantly reading through the rows and to see what time is in the cell vs. System time or what.
View 1 Replies
Mar 18, 2010
I want to get a list of all users and groups that belong to a specific department (entered by the user) from Active Directory using VB.Net and DirectoryServices.
View 2 Replies
Dec 16, 2011
For example lets say I want only admins to be able to see and edit CustomerID in details view, moderators can see this value but it is not editable, and regular users cannot even see it.
View 2 Replies
Sep 29, 2011
I created a program that processes files on a nightly bases for the company I work for. These files are used on a daily basis and very often a file is left open by a user and it causes my program to error out and not finish running. My program needs delete access to these files.
I need 1 of 2 solutions.
1. I need somehow add a check to see if a file is in use and if it is just skip it.
2. I need to make my program automatically force close the files on the users. (note that these are shared by one computer, I can put the program on the computer that the files reside so that it has access to close them out.)
how to add a check for if a file is in use or not?
View 1 Replies
May 2, 2011
I am trying to figure a way to send my users a message if they have 2 or more websites with the same URL open(These are web tabs in one IE window). Is this possible?
View 4 Replies
Oct 26, 2009
is there a way to tell if the record is currently open (for editing) by another useregclerk 1 gets recordset for a person. pessimisic lock, client cursor.
View 1 Replies
May 8, 2009
I want my login screen to open over my editor! Example MS word how they have the tips screen over top and you press the close button if you don't want it there.
View 3 Replies
Nov 20, 2009
Is there a way that I can open up a new form in Panel2 of my main form?
View 1 Replies
Sep 13, 2009
how to create a specific area to drag my form (ie: image, label). I found some code that works, however you can click anywhere and have it drag...
Const WM_NCHITTEST As Integer = &H84
Const HTCLIENT As Integer = &H1
Const HTCAPTION As Integer = &H2
[code]....
View 4 Replies
Aug 15, 2009
Is it possible to open the same form twice or more, or do I have to make several copies of the same form and open them individualy?
View 1 Replies
Nov 8, 2010
I have a textbox on my form. I want the form which name is typed into the textbox (if exists) to open.
vb.net
Dim frmName As String
Dim objFRM As New Form
Try
frmName = tmp(1)
[Code] .....
With that code I get this error:
"Cannot create ActiveX component"
View 2 Replies
Apr 22, 2009
I have started to use VB .net (Visual Studio 2008). I made a small program which starts with form1. This form1 automatically loads form2 and the form1 should close. But when it closes form2 closes as well.
Public Class Form1
Private Sub LC_Load (ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.Show()
Form2.Show()
Me.Close()
End Sub
End Class
View 2 Replies
Dec 21, 2010
i've tried
On Form1
form2.show
me.close
[code].....
View 2 Replies
Feb 23, 2009
How I Can open the same form in my application one time only can not open the form tow time in same time
View 5 Replies