Determine If The User Intended To Delete A File?

Jan 10, 2009

how i can able to determine if the user intended to delete a file. What im going to do is this application will be placed in a certain folder together with some files. And this program will determine if the user inteded to delete a file within the folder.

View 2 Replies


ADVERTISEMENT

Create A User Control Which Is Intended To Be Something Like A Table View?

Sep 26, 2010

I have to develop a small app for which I have to create a user control which is intended to be something like a Table View.On Form Load, the user should be asked about the number of rows of columns required on the form.Once the user sets the number of cells, each cell should have a button and a Text Box inside it (grouped together).

View 8 Replies

Determine Other User Of Excel File?

May 27, 2010

I am currently using the FileOpen method wrapped in a try/catch block to determine if a particular Excel file is currently in use or not.

When my app tries to access the file, I would like to be able to notify the user who it is that already has the file open. If I try to open the file in excel while it is in use, the message that Excel provides includes the network login of the user that has the file open. Is it possible to get this information via code so that I can tell the user of my app the login of whomever already has the file open?

View 1 Replies

.net - The Intended Purpose For <app Name>.exe.config File In A .NET Forms App?

Sep 21, 2010

I am currently reading up on documentation for a possible assignment I might be put on. In a design document they talk about the .exe.config file. They state that its only purpose is to store constants: "Also note that this file is meant to store constants only, it is not meant to write configuration values to (and the .NET 1.1. framework even prevents this by not offering classes/methods to do so). Therefore, configuration is written to XML files using a..."As far as I understand, this is not true. I don't know about .NET 1.1 preventing this, but I remember in my last project that I did write configuration values to that file (I saved GUI contents there). My project was a small prototype, so maybe I did it wrong, but I do not think so...So what is the intended purpose of this file?

View 3 Replies

Delete User From File?

Mar 10, 2010

I am trying to create a form where a specific user is deleted from a file. The file has all its contents encrypted using the MD-5 string to hash method. I know that i have to create a new file copy everything over except for the user to be deleted, kill the original file and rename the new one.

Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
filename = "users.dat"
index = 0

[code]....

View 7 Replies

VS 2008 Delete File In User Specific Directory?

Dec 16, 2009

what is probably a very stupid and basic question, I'm new to Visual Basic I currently coding a program which deletes specific files that are part of a game. It finds and deletes all the files in the "program files" directorys but there are also certain files in My Documents that must be deleted.

The problem is the filepath to My Documents includes a username which is unique to different users, meaning on any other pc the program will not work.

The path on my computer is: C:UsersShaneDocumentsElectronic Arts

How can I get the program to find this folder on other computers? I'm totally lost.

View 5 Replies

C# - Delete Dynamically Generated PDF File Immediately After It Has Been Displayed To User?

Mar 18, 2009

I'm creating a PDF file on the fly using ITextSharp and ASP.NET 1.1. My process is as follows -

Create file on server Redirect browser to newly created PDF file so it is displayed to user

What I'd like to do is delete the PDF from the server as soon it is displayed in the users browser. The PDF file is large so it is not an option to hold it in memory, an initial write to the server is required. I'm currently using a solution that periodically polls for files then deletes them, but I'd prefer a solution that deletes the file immediately after it has been downloaded to the client machine. Is there a way to do this?

View 4 Replies

How To FileInfo Before, Delete Or SHIFT + DELETE, Process Final Delete Of File

Feb 13, 2011

How can be find out which file is going to delete when, user provides command like DELETE or SHIFT + DELETE or by programmatically gives DELETE command. Well I know about FileSystemWatcher Class, but this class doesn't provide information before delete...

View 1 Replies

Way To Determine What Theme That End User Is Using

Jun 26, 2009

is there a way to determine what theme that the end user is using.for example im making a program where the glass is extended so if the end user uses the program on a computer that is not using the vista aero theme then the program will look different then it would if they were using the aero theme.how would i check to see if they have the aero theme and could i set the theme to aero from my program?

View 2 Replies

Determine If User Account Has Password

Mar 27, 2012

I need to be able to validate the windows password of the account that is currently logged in. I've managed to do this when the unit has a password. But if it does not have a password, passing an empty string does not work. It fails each time.I've been looking around, but haven't been able to find much on this. Does anyone know how to determine if the user password is empty?[code]

View 9 Replies

C# - Determine When A User Locks / Unlocks Their PC?

Jan 30, 2012

Possible Duplicate: How can I programmatically determine if my workstation is locked? Checking for workstation lock/unlock change with c#

I would like to determine when a Windows (XP, or 7) machine is locked, and unlocked.I would like to create a timesheet activity logging app, and pre-filling times in, with lunch, breaks taken, etc, would be very useful.Is it possible to pick up an event that fires when the Windows Operating System is locked and unlocked ?

View 3 Replies

Determine Current User's Email Address ?

Sep 25, 2008

Is there a 'simple' way to determine the current user's email address ? I want to automatically send an email when an application detects an unhandled exception, but would like it to come from the current user.I found this on the net and haven't yet worked out what its doing (although it seems to work). Unfortunately, as I'm not sure how it works, I also don't know what drawbacks there are to this technique.[code]...

View 5 Replies

Determine Form User Defined Control Is Placed On?

Jan 25, 2012

I'm writing a control that needs to check a property of the form it's placed in.Is there a way to do that?

View 1 Replies

Determine What Characters The User Can Enter Into The Control?

Mar 2, 2010

In reading various answers regarding "masked TextBox Control, am I to assume that the masked textBox control uses a mask to determine what characters the user can enter into the control?

View 1 Replies

Determine Which Operating System The User Is Currently Running?

Nov 12, 2010

I'm trying to get an application to determine which operating system the user is currently running and use that to decide what to do. For example, a user uses the program and they're using Windows 7. I want it to know that and use predetermined variables throughout the program for Windows 7. Likewise if they're using Vista or XP/Macintosh.

View 4 Replies

Allow A User To Input A Word Or Phrase And Then Determine If It Is A Palindrome

Dec 8, 2011

I'm working on a problem where i have to allow a user to input a word or phrase and then determine if it is a palindrome (a words that reads the same forwards and backwards) . It also says that the program should use a Boolean-valued function procedure named IsPalindrome that returns the value True when the word or phrase is a palindrome and the value False otherwise.

View 3 Replies

Asp.net - Pass A Variable To User Control To Determine Display?

Nov 28, 2011

I've found various C# examples here, but I can't seem to get a VB version working.I want to be able to pass a simple variable into a User Control to determine whether it shows a certain section of data.It's basically a Customer Data form, and in some circumstances I need to show a line with the customers account number and sort code, and in some I don't, so my user control:

<controls:customerForm ID='customerForm' showBankDetails="no" runat='server' />

But I can't work out what to do with the showBankDetails variable in Code Behind to stop it from rendering that section, or simply hide it with a CSS snippet.How do I access that variable in the code behind using VB.NET?

View 1 Replies

Determine If Acrobat Reader Is Installed On User Computer?

Mar 8, 2009

I am creating a project with VB2008 Express Edition. The end result will be a CD containing tech manuals in pdf format which will be accessed via various buttons on a form. I am going to include Acrobat Reader Redisributable on the CD which the user can install by pressing a button on the form if required. What I want to do is this:- When the user inserts the CD into the PC, the form will load.When the form loads, I want to search the users PC to determine if Acrobat Reader is installed.If the Acrobat Reader program is not found on the system, then display a MessageBox to inform the user to install the reader from the CD.Would this involve searching the users registry? I would need to insert in my Form1_Load sectionTarget systems would be Windows XP/ Vista with programs on the C: drive as default.

View 4 Replies

Determine If User Or Program Made Change To Control

Mar 15, 2010

I have numberic updown control in my app. There may be times when I want to programatically change the vlaue (in which case I don't want to ValueChanged event handler code to run). There will certainly be times when the user makes a change (in which case, I would want the event handler code to run).

[Code]...

View 5 Replies

VS 2008 Determine If User Has Scrolled To The Bottom Of A Control?

Aug 22, 2010

I am modifying some code I found here to test to see if a user has scrolled to the end of the control. In this case the control is a Crystal Viewer but I posted here because I think the issue is based on the vertical scrollbar not the Crystal Viewer itself.

The code flags an error at

Me.CRViewer.Controls.OfType
Indicating 'OfType' is not a member of 'System.Windows.Forms.Control.ControlCollection'.

I understand the concept that I can't reference something that it is not but I don't know how to fix it. The original code was for a DataGridView.

The ultimate goal (not finished) is to find out when the user has used the mouse or possibly the scroll bar itself and if it hits the bottom of the page of the viewer, then trigger a new page so it looks like they can just keep using the mouse to scroll.

Public Sub New()
Me.InitializeComponent()
Dim vscroll As VScrollBar = Me.CRViewer.Controls.OfType(Of VScrollBar)

[Code]...

View 9 Replies

VS 2005 Determine And Alert User While Entering Password To Login?

Mar 13, 2010

I have created an application which asks the user to enter password to login.Now how can i inform the user(if his caps button is on) that his caps button is on while he is entering his password?

View 3 Replies

Cant Use Better Qualifier As One Intended To Be Used Is A Plain ObjectStore Only

Jul 1, 2009

I have a solution in which I have included three projects, say X Y Z..Now one of the projects X refers to the namespaces A.B.ObjectStore and another namespace ObjectStore..Now when the ObjectStore namespace is used the compiler thinks it is A.B.objectStore.I cant use a better qualifier as the one intended to be used is a plain ObjectStore only.

View 1 Replies

Collision Detection Not Operating As Intended?

Apr 7, 2012

I'm designing a system to detect whether a projectile arc impacts a stationary square target. However, the detection is very limited and only seems to work if I use a while loop and a very large area, whereas if possible I'd prefer to animate it using a for loop and have the target somewhat smaller.Here's what I have at present:

Private Sub Timer2_Tick(sender As System.Object, e As System.EventArgs) Handles Timer2.Tick
If (Not errorState2) Then

[code].....

View 12 Replies

DataTable.getChanges() Not Working As Intended?

Mar 13, 2010

I'm currently working on a VB .net project that requires connection to a MySQL table. I've no problems loading data from MySQL table to a datagridview. I'm hoping to allow users to make changes to the datagridview and save those changes back to the MySQL table. Below is the Sub I wrote to save the changes. Before saving, it will check if there were any changes made to the datatable. However, datatable.getchanges() does not seem to detect changes made to datagridview (and hence, datatable; I "bound" the datatable to datagridview by means of bindingsource).

[Code]...

View 4 Replies

How To Display Data In Intended Format

May 3, 2011

I am using VB2010 and have a project set up with a DataGridView that is to display a table of data selected from a SQL 2008 database using a pre-defined dataset. My question is simply how to display the data in the intended format as seen in the attachment. I am attempting to merge rows in the first two columns of like-data. Addtionally, if that can be done, I would also like the user to be able to double-click on a name that would open an editing form.

View 5 Replies

Method Not Intended For Code Attribute?

Feb 6, 2012

I have a couple of shared methods in my app which are intended to be used with ObjectDataSource's (and other reflection based objects). They handle a lot of automatic parameter checking, filtering, etc. They are, however, all one time use methods (they rebuild everything on every call). It would be much better for someone writing code directly to call the instance methods so that all the filtering, etc, is stored between calls.Is there an attribute I can add to my methods to indicate this? The best would be if it would prevent the method from being called without reflection. Second best would be to issue a warning that the method is being used wrong.[code]

View 1 Replies

Where Is The Friend Access Modifier Intended To Be Used

Mar 21, 2012

The only place I've seen the Friend modifier used is in the WinForms designer, as alluded to in Why is the modifier set to Friend in Winforms? and VB.NET: what does the 'friend' modifier do?. The Friend modifier appears to be an almost arbitrarily wide access level that was created to solve some historic architectural problem in VB, I just wonder if anyone has a meaningful continued use for it?

I have had some desires to expose methods only to a given namespace so as to roll the functionalities of a related collection of objects together and manage any of their non-thread-safe methods, while exposing the safe public methods to a wider scope in the same assembly. This access level does not exist yet Friend does. Possibly a corollary question then, is my usage of assemblies and namespaces at odds with what is intended?

[Code]...

View 2 Replies

Loop Function - Iteration Not Working As Intended

Jan 18, 2012

I'm using a DO interation to loop a function I'm using to test for internet connectivity. The code is working fine, except that when one of the tests is satisfied the loop stops. I want this to continue in the background while the program is running. How can I get this to work?

Private Sub checkInternet()
Dim InetChecker As Boolean
InetChecker = CheckForInternetConnection()
Do While LabelCount.Text <> ""
Thread.Sleep(10)
[Code] .....

View 3 Replies

VS 2008 FileSystemWatcher And Windows Service Behaving Not As Intended

Oct 11, 2010

Ok for some reason I am having multiple problems with this code. The first issue is that one of the lines of code is seemingly ignored. Another issue is that some of the events are firing many times when they are only supposed to fire once. I have attached my code.

By the way, the string stored in AppSettings("WatchPath") in this case is C:Temp

Imports System.Configuration
Imports System.Diagnostics
Public Class Service1

[Code].....

View 3 Replies

C# - Move ReferencePath Information From A .vbproj.user (or .csproj.user) File Into The Corresponding Project File?

Nov 28, 2011

Can I safely move ReferencePath information from a .vbproj.user (or .csproj.user) file into the corresponding project file? Note: All developers will be using developing from the same location on their machines.We'd like to allow users to maintain their own settings for other things, but have this basic info be setup once and checked into source control to be shared to all.

View 1 Replies







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