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.
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.
I am working on an virtual operating system. And I want the user to be able to change background, and at the same time save it! So, the next time he opens the application, the background is saved and changed.
I know that I have do this through project > settings, but I don't know how to program it. I have managed to allow the user to change background, but dont how to save it. Could anyone solve this little problem for me?
vb Imports System.IO Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[code]....
I would like to store some app data in a 'default system folder', so when I launch the program it will know where to look for it's own settings.As a matter of fact I only need to store there a path to the files used by the program. Users will be able to choose where to put them (simplified installation). The program has to know where to look for them.
Am I creating the folder properly? As you can see I'm referring to C:... The folder structure presented here comes from my laptop running on Windows 7 Ultimate. Maybe the C:... can be somehow defined by some sort of a system 'shortcut'. Following the above example the program would look for those in C:... , but maybe I can use something like ~~ default.app.settings.My Program Name ~~~. How does it work? Have no idea how to call it properly, but I'm sure you will know what I mean.
I have written a program in VB 2010 that dumps documentation info into an Excel file. Basically, the Excel file is a log file that keeps track of revisions for design drawings at an engineering firm.
There are approximately 20 people that have access to this program. However, I've run into issues where multiple users may be using the program and trying to send info to the Excel file at the same time. The Excel file is set to read only. My program opens the file with write access, and dumps the info into the appropriate cells, then closes the file. If one person is in the process of using the program, it causes an error with another persons system if they try to use it at the same time.
In some cases, it causes my program to crash, and it leaves the Excel file open on someones system.
Typically, my program would only have the Excel file open for a couple seconds. So, the issues mentioned above are rare, but they do happen.
I'm looking for ideas to prevent this issue from occuring.
I'm trying to develop an application in VB 2010 that will monitor files in a directory that the user specifies. The problem is, this application is going to be installed in diferent computers with diferent Operative Systems (windows 2000 and XP).Is this possible? or should i change mi programming lenguage?Another thing that comes to my mind is that maybe i should use diferent frameworks (i'm afraid that framework 4.0 may not work in Windows 2000).I apologize if i'm posting in the wrong place, i'm new here.
I'm creating a twitter account manager using the Twitter API. I have multiple accounts, over 10 of them. I want to automate all 10 of these accounts to do certain things, now the way I started to code the program was so that it would accommodate only one account, and all the codes worked perfectly and were managed by individual timers for individual processes that I wanted done. i could tweet between certain intervals, follow people who tweet certain things without me being on top of it.
Now the problem is that I've been trying to create new instances of subs that I've already created so that I dont have to create 10 new subs with the exact same procedures. I'm pretty sure it's impossible to create copies of subs dynamically or within a loop but it didn't stop me from trying. So question is how can I edit a program that was designed to accommodate and automate only one account, to potentially accommodate over a 100? I don't need codes or anything I need ideas so I can try them, but right now I'm completely blank.
I was wondering the best way to save a users settings in my application i.e there name, e-mail address etc and i came across an application that saves them like[code]...
I am converting an older software package written in VB 6 to VS 2010.Not to incredibly painful but planning for the future as we have had lets say a few issues with VB 6 on our current layout of multiple OS and this is my first real project lead.We are a smaller job shop and we move on a rotation of new PC's/OS's come in to replace broken or exhausted older PC's in the front office and move the older PC's out to the shop floor.We have an array of different OS's ranging from Windows 98 and Windows 7 (32 bit and 64 bit OS). By the time I am done with the conversion we should be sitting comfortable with a range of PC's from XP and up. When creating the executable for my project is this something that can be handled ahead of time, creating multiple executables for specified OS, or an all in one package executable?I was looking to see what people had as suggestions at handling this.We haven't even bought VS yet and are looking at the VS 2010 Premium package, do I need Ultimate?
The First Splitter will be a ':', then the next one will be a ;. Per each line up there, I need to add that content into a row into a datagridview, So if you were to look at the datagridview, It would look like that data above exactly, But separated into the correct columns.
I am writing an App that automates file uploads from users desktops to a specified file server. On the first run of the app, I need the user to select a file server and save it for all other users of that PC. I thought I could do this with application settings but it appears it is not suitable for this purpose. I need suggestions on how I can make this work.
I thought about a registry setting but the user may not have permission to edit the registry based on group policy/security settings.
I also thought about creating an XML file with the file server name that I can read from the installed project directory, but I was hoping there was a more streamlined way.
I'm writing a windows application and I've hit a bit of a roadblock. It wouldn't be a difficult program, except that I'd like to support more than one user and with each user I need to have many, many different settings change instead of, say, two or three. I'm wondering if there's a standard ideal way of storing large amounts of settings for different users?
I'll try to describe what I'm trying to do here..At the moment I have an Access database (for easy deployment) with about 60-something tables. 66 tables are named after books, and each have a different number of chapters. Each of those tables contains one row for every chapter plus a CheckState field that contains a 0 or a 1. I also have a simple Users table with a UserName and UserID field, and another AllBooks table with data for every book, like the name and the number of chapters.
When I user is selected, I have a listbox that displays every book (taken from the AllBooks table) and then a checkedlistbox that displays the chapters of the selected book and automatically checks off different boxes depending on the CheckState field.
So but I'm a bit stumped on how to implement different users... instead of tons and tons of different tables should I have a different table for each user that have 60-something columns...? I dont know enough about relational databases to make the right call.
I have a simple application with a main form and an options dialogue. The options dialogue has various TextBox's and drop downs where the user can make changes and OK/Cancel buttons for when they're done.On the FormClosing event of the main form, I save these settings to an XML file. When the program is first run, the settings are loaded back into the options dialogue. The application reads settings directly from the controls in the options dialogue during run time.
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.
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)
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..
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?
1. I can't find the file which reflects changes to user settings. This might be because I just can't find it (I can see a bunch of user.config files but they are all empty - weird!), or...
2. I'm not actually saving them when I think I am.
Regarding 2. - do I need to invoke
Is this all I need? And if so, why are my user.configs empty?
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.
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]
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?
Small questions about the settings.settings. Are these settings saved into the registry? I'm want to use and external file for my connection-commands. I don't want to use the registry to store the strings. What do you recommend?
I have a program that uses sql for the database. The issue im having is when two users attempt to update the same record then the update from second user overwrites the record from the first user. I believe this problem comes from the the way i attempt to preserve existing text in the fields.
My thought on whats going on is: If the form has fields A and B. Both users start with a blank form. User 1 adds a record with an entry in field A. When user 2 goes to update the record with an entry in form B, the program overwrites user 1s field A entry with the blank field A from user 2.
Is there a way to force it to grab the most recent data before it tries to add/update? I thought about resetting the digit combo box to the same digit which would trigger the change event for that field. but the issue with that is it would also wipe out the current entries on the form.
Below is the change event for the digit combobox, the main submit procedure, and the subprocedure for one of the days.
[code] Private Sub cboDigit_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboDigit.SelectedIndexChanged, cboOffice.SelectedIndexChanged, dtEndDate.ValueChanged, dtStartDate.ValueChanged
I am on the brink of developping an application for myself and some collegues at work. I will use VB 2005 and SQL server 2000 or 2005.
Here is my question: When I build the connection string do I have to use only 1 database user for all of the users of the application or does each user need to have its own database user in SQL Server?
I need to add multiple users to active directory in vb.net what would be my best way to do this? Although i see some dotnet classes for them its hard figuring this out for my first time. Mostly what must i be aware of when trying to add them? Multiple opinions on the matter would be fine but I really just wish to add users with basic information like firstname and lastname and maybe to specific group.
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.
In my program, I have recently found it necessary to include a settings window. Here, there are two "Combo Boxes" which the user can click on and decide what to select. For example, in FireFox, under Startup and "When Firefox starts: you have a selection. This is what I want integrated into my program. Also, when the preferences have been selected, they can click an "apply" button in which their input can be recorded into a settings file. At this point I do not know where to go. Another important thing you should know is that all of the input is based on "Yes/No (Boolean).