BasL's Q&A profile
Visual Studio 2008 (Pre-release) NumericUpDown equivalent in WPF
Is there any WPF equivalent of Winforms NumericUpDown control Maybe anybody has already developed it Yes, but there are issues. Buttons for Up-Down controls are very small and RepeatButtons have an inherent margin and padding (even with Margin and Padding set to 0) that restricts the content area for arrows etc. This is probably due to its internal control elements. Further, if one bypasses these issues with a ControlTemplate, then the built-in event-driven hover and click visual effects are lost. Solution: Use a ControlTemplate (e.g. with ellipse/rectangle) but implement the visual effects yourself ...Show All
.NET Development How to dynamically change connection string in generated dataset class?
I have a project with database classes which are generated from database objects. That is I add a dataset to the project and drag and drop a database object onto it. The problem with this is that I have to give a connectionstring which is stored in the code. This is ok while developing the application. But runtime I want to use another connectionstring, both for security reasons and because each user of the application will correspond to a database user (ms sql) and shall have a corresponding connectionstring. Is there an easy way to do this without having to restore to plain all datasets and do everything myself The name of the proper ...Show All
Visual Studio Express Editions Function help
I am trying to get the information from textbox1 and output it into an array. I have tried this: char chrsplit[1000] strcpy(chrsplit, enctextbox->Text->ToCharArray()); but i get this error error C2664: 'strcpy' : cannot convert parameter 2 from 'cli::array<Type,dimension> ^' to 'const char *' with [ Type=wchar_t, dimension=1 ] i found on another forum that this may be b ...Show All
Smart Device Development GetLastWin32Error().ToString()
hi all, i am a newbie in windows, while handling a project regarding .net compact framework when i print GetLastWin32Error I got value 0 what does it mean. please help me complete my project as soon as possible thanx That means "No error", so whatever you've called last succeeded. Please see this for other errors: http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcesdkr/html/_sdk_error_values.asp Also, please see this, specifically #13: http://www.danielmoth.com/Blog/2005/03/please-read-before-posting-to-ng.html ...Show All
SQL Server problem copying database from sql server 2000 to sql server 2005
Hi, I have right now sql server 2000 instance installed on a server (serverone) which is accessed on all nodes through an ODBC connection. Now we have upgraded our server to windows server 2005 which will be on other machine servertwo. I have right now installed sql server 2005 in servertwo. Wish to copy the database from serverone to servertwo. Once it is copied and everything is working fine. I want to uninstal sql server 2000 from serverone. What is the best way to do this I am trying different things like tried running code Advisor on serverone which is not recognising the sql server 2005 instance of servertwo. It's giving messa ...Show All
Smart Device Development windows services for CE.NET??
Due to a very complex network environment I need a Mobile ASPx APP can comunicate with a Unitech PA962 portable terminal running Win CE .NET 4.2. That communication must be established to print over a Cameo2 Zebra Bluetooth printer. The PDA has a AnyCom Bluetooth CF-300 and a Orinocco 802.11b card on it. From the Web application I'm sending a string with the information to print, (command secuences and variable data) using a tcpclient over a tcp port pointing to the PDA's IP address. Since I can't use XML WS inside the PDA I'm thinking on build a Windows Service that runs un the PDA, that WinService will be "listening" to that port for incom ...Show All
Audio and Video Development play a socket stream
My computer(client) is connected to a server using a socket.The server sends a movie(lets say an avi file) and the client receives it through the socket.How can i play that avi stream without saving it on my harddisk pls help! Hey Gheatza, The Media Foundation forum probably isn't the right forum for your question, since Media Foundation for Windows Vista will not have the support in-box that would be needed to source a live AVI-format presentation. That said, if you were so motivated, you could try to write a Media Foundation Media Source that is capable of sourcing a live AVI presentation; howev ...Show All
.NET Development Advice on Parameter problem with Odbc call returning multiple result sets
Hi all, I need some help with a problem regarding parameters to a stored proc please. To set the scene, I have a C# app that gets data from a database. To do this it calls a stored proc "getData". getData is called through a Microsoft.Data.Odbc.OdbcCommand object that I have. The stored proc returns two result sets, I read all of the data in the first one by using IDataReader results While (results.Read()) and I move on to the next result set (when finished above) by doing: results.NextResult() This has been working perfectly fine, however I introduced a parameter to the stored proc and I now get an excep ...Show All
Visual C++ _CRT_SECURE_COPP_OVERLOAD_STANDARD_NAMES not working
Hello, i tried using _CRT_SECURE_COPP_OVERLOAD_STANDARD_NAMES after reading from the following post: http://blogs.msdn.com/michael_howard/archive/2005/02/03/366625.aspx i am still getting the depricated methods warning. i am including the code here. /******** stdafx.h - start *******/ // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #define _CRT_SECURE_COPP_OVERLOAD_STANDARD_NAMES 1 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #include < ...Show All
Visual Studio Team System Team Test Load Agent - Installation issues
I am trying to install the Team Test Load Agent on my Laptop (config - WINXP-SP2, 512MB RAM), I have admin priveleges on the Laptop. The setup does the following actions before failing > Copies files into specified folder > enter my userid and password > enter valid controller machine name ERROR Message Pop up " Setup Encountered error Please refer setup log for more information" I find the following message in the setup log [10/05/05,10:52:44] Setup.exe: GetGlobalCustomProperty({3CFC9708-E1DF-4D5B-AFCF-A49B86D176AE}) [10/05/05,10:52:44] Visual Studio 2005 Team Test Load Agent Beta 2 (English): CRootComponent:: ...Show All
Visual Studio Team System VSTS EVent Viewer error about a bucket
Getting this error in our event viewer...any ideas Bucket 03263974, bucket table 5, EventType teamfoundationue, P1 1.0, P2 vc, P3 v2.0.50727, P4 8.0.0.0, P5 database, P6 sqlexception.16.2786, P7 738b1975, P8 ef68247e, P9 NIL, P10 NIL. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Here are the full details: Event Type: Information Event Source: Team Foundation Error Reporting Event Category: None Event ID: 5001 Date: 1/24/2006 Time: 5:33:45 PM User: N/A Computer: 6NYTP71 Descript ...Show All
Visual Basic Welcome to the Visual Studio General Discussion Forum
hi.. i've been using vb6.0 to develop applications. we just switched to visual studio 2003 .net.. i have the following code in vb6.0 Do While Not RSDetail.EOF If RSDetail.Fields("itemno") = vItem Then vQty = vQty + RSDetail.Fields("Qty") RSDetail.MoveNext Else vSearcher = "ActCode = '" + vItem + "'" RSActTBL.MoveFirst RSActTBL.Fi ...Show All
Visual Basic Edit And Continue won't let me make changes ... why?
Hi, My main reason for downloading the Visual Studio 2005 professional beta was to get the edit & continue functionality that I miss so much from VB6. However, when I break into my code at a break point and start to make a change the IDE tells me that: "You have made edits to the sourcecode that cannot be applied. Changes are not allowed if debugging has started via attach. If you continue to debug, your source code and application will not match." What What is "debugging via attach". Of course the only bit of the help system that I need is broken when I click on help for edit & continue in VB!! Can anyone t ...Show All
.NET Development Is it possible to convert XML into a Class?
Given an XML stream as below, is there any possibility to convert the same into any treditional class style with . (dots) as seperator of the nodes of the xml file... for instance bank.code.tostring() should reslut me " 5070 " and bank.description.tostring() should result " ICICI - Bangalore " bank.location.destination.code should result " MB " bank.location.zone.code.tostring() should result " 12 " etc ., And the XML file being ... < xml version ="1.0" encoding ="utf-8" > < MainBank > < bank > < code > ...Show All
Visual Studio Tools for Office XMI - Tool compatibility
Hi, Is it possible to get the formats in which different tools use to emit XMI while exporting file As of now, there is no standard XMI format that all tools follow isn't Why is it so Is there any possibility that this could become possible in the future Thank you. Hi, Could be please answer the second part to the question "Why isn't there a common standard that all tools follow Will it become possible in the future " I searched around but itseems the formats aren't available for public use. Thank you. ...Show All
