LANewman's Q&A profile
Microsoft ISV Community Center Forums SaveAs question
Hi, I have a piece code that does SaveAs at the end of the program but it always tells me that file already exists and do you want to replace it. I do not want that message to pop up and i want program to just overwrite it. I had in the code both application.displayalerts and screenupdating set to false but still does not work. I had the same code in another macro and it works fine. Any ideas why this does not work. I am exahausted trying to ...Show All
SQL Server Cannot select "Server Database Engine" when installing SQL Server Sep 2005 CTP
I am trying to install SQL Server Sep 2005 CTP - ENTERPRISE, there are check boxes on the Components to Install page of the Microsoft SQL Server Installation Wizard to select component groups for your SQL Server installation, they are all disabled , except " Workstation Components, Development Tools, and SQL Server Books Online". I tried installing and after it finishes, there are no SQL instances.... What am I doing wrong Please he ...Show All
SQL Server management studio object search
Query Analyzer has the object search tool - F4 to access. Is there a similar tool in Management Studio I have looked around and been unable to find it. Thanks, RM I've tried SQLDBSearch it works fine and "Search by SQL definition (text)" feature is very cool, thanks to the author. However if you still like Object Search tool (Shortcut F4) you can point your Query Analyzer to an instance of S ...Show All
Visual Studio How to link CR to an Access database using a relative path ?
Hello, I'm using Visual Studio 2005 beta2 to make a desktop .NET app in C#. I have a report that connects to an Access database through an OleDB connection. The problem is that it stores the absolute path of the database file. Is it possible to change it to a relative path It tried to set the database path to "./database.mdb", but when my report loads it asks me login informations... Thanks for your help. lbalogh ...Show All
Windows Forms Why doesn't BindingSource.Sort get updated when DataGridView sort occurs?
The source of my DataGridView is a BindingSource object with a Sort property of "ColOne DESC". When a user sorts the DataGridView on a different column, the BindingSource.Sort property is not updated with the new sort information. Does anyone know why this is Thanks, Nate What is the complexity of datagridview.Sort method Precisely.... DataGridView.Sort (DataGridViewColumn, ListSortDirec ...Show All
Visual Basic Newbie Needs Help with Arrays
I need some help with initializing, read in value, & writing value of Arrays, I am a college staudent and basically i am trying to make a algorithm in visual basic using these pseudocode from a school book. Does anyone know anything about turning these pseudocode into a working Visual basic code. Basically this psuedocode code is suppose to initialize a one-dimensional array called List PSEUDOCODE: Initialize One-Dimensional Array St ...Show All
Visual Studio VS2005b2 hangs while checking out
There is VERY annoying behavior in one of my solutions with VB.NET code (no any problems in solutions with C#). I use SourceOffSite to connect to source control storage, but it seems that it isn't SoS problem. When I try to edit .vb file, VS automaticaly checks out this file, then appears a message: "Source Control: Your action caused a check out of the file(s) <path>, and a new version from source control has been loaded in the developmen ...Show All
Visual C# Class specification in C#
My situation is that I have a console application which works fine as is. It consists of three programs of which one is Main and the other two are methods called by Main. The three are enclosed in a common class definition: public class WAVfile What I would like to do is be able to associate the same two subroutines with other Main programs. It would seem reasonable to me to separate what I have into two .cs files, so I could keep one of t ...Show All
Windows Forms MDI Forms
Okay just a quick question, and hopefully a quick solution. I currently have a main mdi form and two child mdi forms. My objective is to get one of the child forms to open through a button click on the other. So say the&n ...Show All
Visual C# Getting an image out of the resources
Hi there, I added a jpg-image to the project resources and want to use it, but don't know how. :-/ I did not compile any new resource file, I just did a right-click on "resources" chose "add resource", then set the extensions to "*.*" to see all files and added my jpg-image. Here is what I tried to get this image: System . Resources . ResourceManager res = &n ...Show All
SQL Server Open Navigation Link in a new window
I have a report with a hyperlink. When I go to the navigation tab, it does not give me any options to open the link in a new window. I have a link to show help and I do not want the user to actually move away from the reports Any ideas This is such a simple thing..I wonder how MS misses this One way of doing this is to use an expression like this for the hyperlink action ( Note - I had to insert a blank between 'java' and 'script' ...Show All
Visual C# Design pattern for internal node of a generic collection
I am currently design a complicated generic collection with .Net 2.0. Basically I have the following design: class MyCollection<T> : ICollection<T> { private class MyNode<T> { // snipped } } When compiled, this code generates a warning saying that T is confusing because used both for MyCollection and MyNode. In practice, t ...Show All
Windows Forms FileInfo::CopyTo() behaving badly?
following on from my previous thread, ive encountered a little problem in my app which copies a bunch of files from one location to another. FileInfo::CopyTo() seems to cause problems when its used repeatedly... during copies of large files (>1gb) wi ...Show All
Visual C# How to free a BYTE[] ?
Hi We often declare byte arrays in loops, reading files one by one. If suppose there are 100 file and I am reading them one by one into the byte array, creating a new array (new byte[file.length]) everytime . This will allocate 1000s of bytes of memory in CLR. Is there anyway I can free an array explicitly without waiting for GC's collection. One solution could be allocate the array for larger file and read accordingly, but this will make ...Show All
Visual Studio Team System 'Unable to connect to BIS Server' when starting VS Client
I have been using TFS successfully for a while, but keep receiving the following error: 'Unable to connect to BIS server' when I startup VS 2005 as it attempts to connect to TFS. In addition after successfully establishing the initial connection and attempting to submit a pending change I receieve an error stating the 'stream cannot be written'. At this point I cannot reconnect. I have made no permission/users changes since installation so do no ...Show All
