yzhu's Q&A profile
Visual Studio Team System Microsoft Project Plan (.mpp file) in Project Portal always locked
Hi, Was wondering if anyone has seen this problem and possibly have a workaround for it. If we create a project plan using Microsoft Project 2003 (or 2007), publish the plan to the team server and then save the .mpp into a document list in the Project Portal. When attempting to edit the file project always displays the error "The file is locked by another user", read-only, notify, etc.. However the other user is me! Sometimes the error can be avoided by deleting Temporary Internet Files but not always. Curiously this only affects .mpp files that have been associated with a team project and are stored in the project portal. Storing them on the file system, or storing unbound plans in the portal works just fine. ...Show All
Smart Device Development Serial Port Communication
Hallo, I wrote a little prog, which sends a message and the messages md5 over the serial port: I'm using Visual Studio 2005.NET, PocketPc-Emulator and a virtual serialport-driver. This way I connected the emulator to COM2 and COM2 to COM15. So I can send and receive Data via the emulator on COM2 and via Win32-Application on COM15. For testing I write all incoming Data on the emulator to the serial output. Private Function com_sendString(ByVal toSend As String) As Boolean Dim hash As String hash = "##HASH:" & md5(toSend) & "##" Try If (serialPort.IsOpen = True) Then serialPort.WriteLine(toSend & hash) Else MsgBox("Port is closed!!") En ...Show All
Windows Forms Wizard wierdness.....
Can anyone point me to a good tutorial on how to use the SqlDataAdapter configuration wizard I used the wizard to create a dataadapter for a table I had just created. I checked in the advanced options and saw that I should be creating Update, Insert and Delete commands. The SQL I specified in the query builder is "Select * From <TableName>", with the approriate table name in place of the place holder. I tell the wizard to finish and it tells me that it created Insert and Delete commands but it did NOT create an update command. I can go an create my own updatecommand in code but thats a pain compared with the ease of using the wizard. Is there somthing that I am doing wrong to not get the update command to generate proper ...Show All
Silverlight (formerly WPF/E) New XAML elements do not display immediatelly
I created a test HTML page containing a WPF/E control - Canvas, clickable Rectangle that covers the entire canvas, TextBlock at the bottom of the control that displays a message about the coordinates of every click. On every click after displaying the message, I create a small ellipse(circle) and add it to the Canvas at the point of the click. It all works fine when the entire page is visible in the browser, BUT in a shorter browser window, where the TextBlock is not visible, the clicks do not render circles, UNTIL I scrolled the browser down and the TextBlock became visible. At this point all circles that should have been rendered moments earlier, appeared. When clicking while the TextBlock is visible it all works fine. Scroll it ...Show All
Windows Forms save plain text in richtextbox...
I wanto save a plain text in the richtextbox, but I failed when did this as: FileStream saveFile = new FileStream(filename, FileMode.OpenOrCreate); StreamWriter fileWrite = new StreamWriter(saveFile,Encoding.UTF8); fileWrite.Write(this.richTextBox1.Text); fileWrite.Close(); after I save it and reopen it ,found something was added besides the plain text sometimes( and other times its just the plain text). so why the this happened, and what's the efficient proper ...Show All
Visual Studio Team System Database Validation Rules
I see built-in database validation rules that can be used with webtests. My quick try to use them the way I use the other validation rules failed, I get an error "DatabaseFieldValidation Validation Object reference not set to an instance of an object. Column=TestColumn, ExpectedValue=Test, WaitTime=15, Retries=1, DatabaseServer=servername". I could not find any document which explains them, can anyone direct me to the documentation or any idea on why I get this error Can these be used with Webtests that test webservices Here it is - < xml version="1.0" encoding="utf-8" > <TestCase Name="WebTest1" Id="51e3d301-be9b-4b62-9f82-11f6be950467" Owner= ...Show All
SQL Server Import Data to SQL server from Excel spreadsheet
Hi all, Firstly, i'm new to integration services and have only done a little with DTS jobs. I'm trying to create an integration services project which will import data from an two worksheets in an Excel spreadsheet to two different tables in a database. I'm looking at only one table at present to make things a little more understandable. One stipulation i have is that i need to be able to specify a variable value and insert that as an additional column in the database. I have and Excel source and a SQL destination both of which have been set up with there specific connection managers. I also have a variable which i add in using the derived column task. When i try to debug this i am getting a few problems. I think these may be to do with th ...Show All
.NET Development Finalizer
What is the core differnce betwenn destructor and Finalize() I took the question to mean "What is the difference between C#'s destructor and the .Net Finalize() method " To which the correct answer is "There is none". You have described the difference between the C++ destructor and a .Net Finalize(), which may well have been the OP's question! ...Show All
SQL Server Who can give us an example connecting to a remote dw?
hi, now i have a problem about Analysis Service, i have deployed a dw on a server and i want to connect it with ADO, but only when client and server is on the same machine ,i can succeed,if not the client can't connect the remote dw . thks & Regards What product are you talking about Is it SQL Server or Analysis Server Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Visual Basic nested collections and for each iteration
Hello, Below is a small snipet using multi-dimensional Collections. First I have tried to create a multi-dimensional associative array. This way I can reference items in my table by string keys, such as colTestSheet.Item("animals").Item("fast") has the value "tiger" . I would like to be able to retrieve the key value . In the For Each loop in the testSimple example the key value that I would like to be able to print is "animals" and "birds". Is there a way to access the key values in the for each loop Sub testSimple() Dim colTestSheet As New Collection colTestSheet.Add New Collection, "animals" colTestSheet.Add New Collection, "birds" colTestSheet.Item ...Show All
SQL Server Web Synchronisation Using RMO
hi every body please help me out on this issue , since i am at final stage in finishing up the module. Previously i had done web synchronisation using RMO it is working fine at my office where i have an 2003 server which is an domain controller , publisher i have configured on the 2003 server , and i had subscribers on xp Machines where it was well working fine, clients were not on the domain , it is an independent Machine. we had an security error which was resolve by this same forum, ie the client windows login id should exists on the server too. only then synchronisation is happening at our office, Now the problem is i have an same setup , but the server 2003 is hosted at a remote place , which is not an domain controller, n ...Show All
Windows Forms the progress bar didn't changed when the progresschanged occur of the BackgroundWorker
hi i have a backgroundworker object on the form and on the dowork event i write the code to fill the dataset like this Private Sub BackgroundWorker1_DoWork( ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork Me .GoodsDetailsTableAdapter.Fill( Me .MS4GM_DBDataSet.GoodsDetails) e.Result = Me .MS4GM_DBDataSet.GoodsDetails End Sub on the progresschanged event of the backgroundworker i write the following to make the progressbar on the form change it's value Private Sub BackgroundWorker1_ProgressChanged( ByVal sender As System.Object, ByVal e As System.ComponentModel.ProgressChangedEventArgs) Handles BackgroundWorker1.ProgressChan ...Show All
SQL Server ADO
Hi: Is it true that a .net project of WinCE 5.0 pro can't access Win2000 SQL database thru ADO Any solution Chang Thank you Darren: I'm new to work with WinCE. My purpose is to use a handheld (Symbol 3090 running WinCE 5.0) to run a simple application (a .net 2005 program) over RF connection to real time access my SQL server. I need clear instructions to setup the environment. Your answer will be very appreciaated. Jeanet ...Show All
Visual C++ OnInitDialog in VS2005
In VS6 it was easy to add a handler for OnInitDialog but I can't find a way to do it in VS2005. I need to update some stuff before the dialog is shown for the first time. Is there another message I should be using instead of OnInitDialog Thanks, Ken Go to the class view tab in the solution explorer and find your dialog class and then right click and choose Properties. The handler for the WM_INITDIALOG message is obtained through the Properties pane of your CDialog derived class under the 'Overrides' (the diamond shaped toolbar button second from the right in the Properties window) where it appears as 'OnInitDialog' and from which dropdown list of actions you can select '<Add> OnI ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sampler state broken?
Well I've just finished converting my engine to Beta 2, but there's one major problem now: sampler states don't seem to work! I used to use this code before the SpriteBatch.End(). ' Set sampler state. Dim samplerState As SamplerState = _graphicsDevice.SamplerStates(0) samplerState.MipFilter = TextureFilter.None samplerState.MagFilter = TextureFilter.Point samplerState.MinFilter = TextureFilter.Point I used to use this code before the SpriteBatch.End() call and it worked well - there was no diffusion and the sprite magnified perfectly. But now it has no effect whatsoever. Anyone have a clue why this is the case and/or how to solve it please Thanks. This is because the default ...Show All
