Dean100000000000000's Q&A profile
Visual Basic A Tough One
ok, I don't know quite how to explain this, but I will try. I want to make a program that essentially logs what files the computer accesses, and when they are accessed. Does this make any sense for example: if you are playing a computer game, and a sound is played, a file is accessed. I want to know what fille is accessed, and the exact time it is accessed. That is the simplest way I can explain it. does anyone understand this --redcrusher FileSystemWatcher does not have a hook for "accessed". I would recommend using a third party tool if all you are interested in is watching these events. Check out ...Show All
Windows Forms Refresh DataGrid bound to relation
This might be a simple question, I have a windows form application with a dataset composed of 2 dataadapters which are connected via a datarelation. The form displays 2 datagrids; one bound to the child table (thus showing all the rows from the child table) the other bound to the relation (thus showing only the rows related to the active parent& ...Show All
Windows Forms Crystal.net requires DB login?
I have an application that I've added a Crystal Report Viewer to. Now when I start my application I get a login screen for the database that I'm using to report on. Does anyone know of how I get rid of the login requirement I want my users to have access to the report without having to login again. &nbs ...Show All
Visual Studio Team System Erroneous "Avoid unused private fields"
I get an erroneous "Avoid unused private fields" problem with the following: class Application { private const Decimal conversionRatio = 0.621371m; [STAThread] static void Main( string [] args) { if (args.Length > 0) { Decimal newValue = Decimal.Parse(args[0], System.Globalization.CultureInfo.InvariantCulture); newValue *= conversionRatio; } } } Consts don't get converted to a literal in DEBUG, do they Sorry, I should have clarified: warn about use if private const decimal... But, if all consts are handled the same way, it would seem kind of moot. Seems lik ...Show All
Windows Forms Can't find CollectionEditor
I'm new 2 .Net so B patient with me :) I'm getting the error !! type 'System.ComponentModel.Design.CollectionEditor' not defined With intellisense i do not see the class as wel Any clous Regards Remco Tnx that's it I feel pretty stupid right now :) Remco ...Show All
Visual C++ Need help with a funtion to take a name entered by a user
I want this function to take the name of the user and then display it. However it will only display a number when I run the program. I am new to C++ and programming for that matter so any help would be appreciated. char GetNameOfInvestor( char name) { numberOfYourFunctionsCalled++; Console::Write(S"Please enter your name: "); String __gc * input = Console::ReadLine(); return name; Christain, Thanks for pointing me towards codeproject. I've found a lot of info on there that is proving helpful. There is a lot of info out there and it can get a little overwhelming at times. Jeremy ...Show All
Visual Basic Detect Internet Connection - VS 2005 BETA 2
Hi, I am using VS 2005 - BETA 2. I'd like to use My.Computer.Network.IsAvailable to detect whether an internet connection is available. Is this the best "new" way of doing things or does the above method above detect network connectivity of some other type There seems to be a delay capturing the disconnect-connect events when I do use it, is there a way to shorten this delay In essence, what does this method wrap Can I use it to properly detect an internet, not a network connection Regards, Giovanni P. This seems unusal in my experience with the classes that I've worked with. If the net isn't avail ...Show All
Windows Forms Transferring control from one form to another process
Hello, I have a form in an application that calls a method which takes about 10 minutes to execute. (Its a large count generator). I initiate this method on the button click event from the form and I noticed that as the counts increase, the users have to wait for about 10 mins and cannot perform any other operations till the count is yielded. ...Show All
.NET Development Framework 2.0 breaks app, supportedRuntime does not fix
Original Environment Windows 2000 Service Pack 4 1.0.3705 1.1.4322 Application written using VS.NET 2003 and 1.1.4322. Application calls unmanaged code. Everything works. Breaking Change One change was made, installation of 2.0.50727. It was expected (hoped ) this would not affect a 1.1 application. Details of unsuccessful workaround Added this to the application's config file: < startup > < supportedRuntime version =" v1.1.4322 " /> </ startup > This workaround was an attempt to have the application ignore the 2.0 framework. It did not work, the same error occurred as before. Deinstalling the 2.0 fra ...Show All
Visual C# Migration
What is the optimal way to convert all the solution files from 1.1 framework to 2.0 framework I migrated a lot of project's from vs 2003 to vs 2005 so far with no probleme, except for a application that consumes a web service. You only use the open project, and the conversion manager does all the work for you, any errors are raported back to you in a log. Have a nice day, ...Show All
.NET Development Help : "error: 40 - Could not open a connection to SQL Server"
I'm using VS2005 and SQL2000. I created a database name "myDatabase" in SQL Server 2000 and built a website that connet to this database. When I'm running this website in VS2005 IDE (press F5 or Ctrl-F5), everything is OK. I publiced this site. When I connect to database on my computer, everything is OK also, but when I connect to database on another computer, an error occurred like this : "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, ...Show All
Visual Studio Team System Command line itemspec (sometimes at beginning; sometimes at the end)
There seems to be no ryhme or reason as to where the itemspec/filespec shows up in a command line. Some command line LOCK want it at the beginning and others like UNDO want it at the end. Does it matter If so, how about picking one and sticking with it. :-) Arghh! Now I can't repro it. Something weird must have happened. If I see this again, I'll post and hopefully it will be reproducible. ...Show All
Smart Device Development How can I tell if the user clicked the OK on a form
Hello, Is there a way to tell if the user clicked the "OK" of a form opposed to a button on the form that forced the close of them form, in vb.net I would like to disable the ability to click the "OK" button if possible. Thanks in advance. John What sort of form are you using If you're writing it, you can just remove the OK button. The form returns DialogResult.OK if the OK button was clicked ( but for your own forms, you need to set this up by setting the properties on the button and the form. ...Show All
Visual Studio Tools for Office Apply VSTO to all Word and Excel documents
Hi, I'm developing an application that show document information in a Task Pane. I did it with a VSTO but I have the problem that this solution only applies to one document, but i need the application loads for every word and excel document opened. How is the best way to solve this situation 1- Create directly a shared add-in that handles events related with Open/Close/New Documents and show the Task Pane 2 - Leave the VSTO solution and create an Add-in that handling the same events only change the properties assemblyLocation and assemblyName of the document to attach the VSTO dll 3 - Your idea here :-) Regards, J ...Show All
Windows Forms ListView.Update() blocking the app?
Hello, I have a listview with largeIcons. The imagelist is filled in a separate thread which works quite well but after setting the items imageindex to the correct index of the image in the LargeImagelist I call myListView.Update() right after invalidating the image. This causes the images to be drawn as they are rendered but this Update() call blocks the entire app as long as the update takes place. How can I change my code to not provoke a blocking of the application Greetz Sven. Take out the update statement. Update causes all pending paint messages to be processed. Processing paint m ...Show All
