Svekke's Q&A profile
Windows Forms some WebClient questions
Hi, there ***************************************************************** string remoteUri = "http://test.com/test/"; string fileName = "test.jpg", myStringWebResource = null; myStringWebResource = remoteUri + fileName; WebClient myWebClient = new WebClient(); myWebClient.DownloadFile(myStringWebResource,fileName); ************************* ...Show All
SQL Server Trouble inserting multiple nodes during UPDATE
I am trying to insert multiple nodes to an xml column using an update statement from a joined table. For (a simplified) example: UPDATE Documents SET DocumentDetails.modify('insert <DocumentParty name="{sql:column(''n.Name'')}"/> ...') FROM Documents d INNER JOIN DocumentNameXRef dnx ON d.DocId=dnx.DocId ...Show All
Visual J# Where are the Object Test Bench Features?
The functionality of Object Test Bench seems to missing from the Software Architects edition I know that unit testing is only in the Developers Edition, but I had thought that the Object Test Bench was tied to the Class Designer which is included in the Software Architects edition. I can bring up the Object Test Bench window, but the functions, like Invoke Static Method, which are context menu items off of the Class Designer, don't ...Show All
SQL Server how to setup LOCKS in ATL OELDB Consumer?
in sql server, we can use TABLOCK to lock a table, but how can i do this in ATL, without using a SP i worry if two user perform db.Update() at the same time and refer to the same row, there may cause a problem. i fond this line in the OLEDB ref. Locking can occur with any of the methods that interact with rows on the data source. These include IRowsetLocate::GetRowsAt , IRowsetLocate::GetRowsByBookmark , IRowsetUpdate::Update , and othe ...Show All
SQL Server Shading By Value
Currently in my reports I am shading every other row by using an expression in the background color property. This works fine. Is there any way to shade by other options I have a report with a non-unique id as the first column. I would like to be able to alternate the background color based on these id's. For instance I might have three rows of white background (id = 1), five rows of grey background (id = 2), and two rows of white background ...Show All
Visual C# Getting Connection String?
I found the code (at the bottom) as a way to fish the connection string out of the config file. However, despite using System.Configuration; I cannot find these references--e.g. ConnectionStringSettings -- in System.Configuration. I find only System.Configuration. ClientSettingsSection System.Configuration. ConfigurationException System.Configuration. ConfigurationSettings System.Configuration. ConfigXmlDocument W ...Show All
Smart Device Development sql select statement
I am trying to use the SQL " SELECT * FROM machines", this retrieves all records(rows) fine when I use the "sqlcedatareader" I want just to access 1 record from the table but the code keeps breaking on the "executereader" line SELECT * FROM machine WHERE mc_no = 12345 Why is this SQL syntax not working Where can I find an SQL syntax reference this works - SELECT * F ...Show All
Windows Forms Validations for Toolbar Button
How to perform the Client Side and Server side Validations using the Validtor at the run time by clicking the toolbar button. B'coz for the windows button, the property called CausesValidation is available, but for the Toolbar button this property is&nb ...Show All
Windows Forms Customize Drag & Drop in the Desginer
In VS2003 I received a DragDrop Event for a designed Form. In 2005 the event DragDrop isn't fired anymore. Is there any workaround to receive the DragDrop Event For each Component, which has a ParentControlDesigner I attached the DragXY events, if a Component was added. if (designerHost.GetDesigner(control) is System.Windows.Forms.Design.ParentControlDesigner) { control.DragOver += new DragEventHandler(OnDragOver); control.DragDrop += ...Show All
Visual Studio Express Editions Web.Config error
Installed vswebdeveloper 2005 beta 2 express edition, the IDE does not allow me to edit web.config file. Also, The IDE shows a package load error! details: 'visual studio explorers and designers package as failed to load properly' any suggestions I read 'Problem installing beta 2' post by Chuck Fain and uninstalled duplicate Microsoft.VisualStudio.* assemblies from %windir%. That fixed the problem. ...Show All
Smart Device Development Read specific line from a file?
Hi, Is there a method to read a specific line of a text file The StreamReader class does not seem to have a method to do so. The Peek method isn't what I'm looking for either. Would appreciate your help. Thanks. Will threading help If you know in advance what is the file to be processed, you can start a thread to index it first. I did a simple test program, and indeed, with indexing, reading any line is extremel ...Show All
Visual C++ template compiling problem
The code below compiles fine under Suse10 gcc 4.0.2 but gives the following error message using VS.Net 2003: error C2244: 'itk::Statistics::ImageNeighborhoodVectorSampleGenerator<TInputImage,VFeatureVectorDimension,VInputImages>::SetListIndexToImageIndex' : unable to match function definition to an existing declaration itkImageNeighborhoodVectorSampleGenerator.h(44) : see declaration of 'itk::Statistics::ImageNeighborhoodVecto ...Show All
Visual Studio Express Editions C# and Windows Forms
Dear Developers ... I have an problem with Visual C# 2005 Express in an Windows Forms Application. There are two Forms. My Application starts with an Login-Form. Then the user types in his Login-Information and if everything is ok, then the Startpage from my Programm should be shown. In the Eventhandler of my "OK"-Button I wrote at last: Startpage formStartpage = new Startpage(); formStartpage.Show(); this.Close(); T ...Show All
Windows Forms Hiding/Showing Groups in a ListView control in VB2005
I'm trying to figure out if it is possible to show/hide groups (that contains elements) in a listview control. Like the MS Outlook Bar, whereby one could click on contacts, e-mail, etc... showing what you need. Considering we are able to create groups, surely there must be a way to show/hide them. Possibly ColumnHeaderStyle.Clickable must be set, whereby I write a procedure for the ColumnClick event, or am I wrong at this Or is there more or les ...Show All
Visual Studio Team System Visual Studio 2005 Team System RC VPC
Hi! I download Visual Studio 2005 Team System RC VPC from MSDN Subscripbers dowloads site. When I try to start the VPC and login with: User: Administrator Password: pass@word1 the system deny this account. What wrong This account present in MSDN Subscription downloads site and in Readme.txt file dowloaded with VPC. Thanks. Hi nmd, Did you find the AdventureWorks Samples for Team Foundation (VSTS) Thanks in advance. Guil ...Show All
