Sam Betts's Q&A profile
Visual C# How to parse a variable in C# window form?
Hi The user enters his name on the textbox on Form1 as soon as he press the button enter, Form1 closes and Form2 open. I want to get the string that was entered in textbox in Form1 to be displayed in Form2. You give Form2 a property Username and add a TextBox on it with the name set to txtUsername: public class Form2 : Form { public string Username { get { return txtUsername.Text; } set { txtUsername.Text = value; } } } Now in form1 you can do something like this: private void button1_Click( object sender, EventArgs e ) { Form2 form = new Form2(); form.Username = txtName.Text ...Show All
Smart Device Development Native code
I wonder what types of machine code can be generated by eMbedded Visual C++. My project involves testing the code on ARM7 and ARM9 processors for verification but also for demos. The code needs to run directly on the "iron", not over .NET. I prefer you send the response via email.: red_smurph at hotmail.com. Thanks in advance The tools that come with eVC support building native ARM applications that run on Windows CE. eVC may also include support for creating .NET applications, but I'm not sure. You could certainly use Visual Studio 2005 for that. I'm not sure what you mean by "iron," ...Show All
Visual Studio Team System Install Team Foundation Server Beta 3 Refresh with Sharepoint Portal Services 2003
Heya, I get this error when trying to install: "Visual Studio Team Foundation is not compatible with Microsoft Office SharePoint Portal Server 2003. This is a placeholder." Could someone enlighten me a bit more What do I need to install I can not remove SharePoint Portal Services as it is our intranet site. Surely the SharePoint Portal Services has everything the Team Foundation Server need Cheers, Chris Yes it looks like I need another box indeed. With all the cost associated with it. Looks like I'm stuck with two SharePoint websites as well. Bit annoying. /Chris ps. If anyone find way to run Team Fou ...Show All
Smart Device Development Opening xml file
Hi, I have an xml file in the form: < xml version="1.0" encoding="ISO-8859-1" standalone="yes" > <root xmlns:dt="urn:schemas-microsoft-com:datatypes"> <MyData> <MyOrders> <orders orderid="1"></orders> </MyOrders> <MyData> </root> It opens correctly in IE6, but when I try to load the file on a device by doing the following: moRecipes = New Xml.XmlDocument moRecipes.Load( "\My Documents\Personal\pmb.xml" ) I get the this error: XmlException XmlTextReader::Throw+0x32 XmlTextReader::Throw+0x32 XmlT ...Show All
Visual Studio Team System How to suppress instrumentation of dependent projects?
I have a solution with several projects: web application, web service, library dlls, etc. In my case, I have one library dll that I do not want instrumented (I'm only referencing a small portion of the code). However, it appears that if you choose, via the testrunconfig, to instrument one project output then all dependent libraries are also instrumented, even if they are not checked. I would like code coverage to be performed only for the selected projects. Is there a way to block the dependent projects or is this a bug I'm running the RTM Team Suite. I spoke to anothe ...Show All
.NET Development How can I run batch file and get output in code and command window from my Visual Basic .NET code
Hello, I have an batch file which needs to be executed from my VB.NET application. I have successfully done that using System.Diagnostics.Process class and openning command window from that.. But my requirement have changed a little bit.. Now i need StandardOutput and StandardError both to be returned after the execution in both command window and VB.NET Code.. I tried the same with process class.. But It allows either on command window or VB.NET code. Any ideas how to achieve this. Thanks in advance. Regards Amit Pandya ...Show All
Smart Device Development The target device does not have a compatible version of the CLR installed for the application you are a
Error Message: "Unable to load the CLR. The target device does not have a compatible version of the CLR installed for the application you are attempting to debug. Verify that your device supports the appropriate CLR version and has that CLR installed. Some devices do not support automatic CLR upgrade." The Device is running Pocket PC 2003. And has been running programs written with .Net 2003 I just loaded .Net 2005 and ActiveSync 4.1 and created a little test program to deploy onto the hand held. I get the above error. Any help/hit would be greately appreciated. Thanks, Joe If you launch \windo ...Show All
.NET Development Make .Net Application Terminal Server Aware
We have two same test applications written in vb and c#. We have a server on which we have installed Terminal Server and both the applications are installed on it. We use the application from client using RDC (Remote Desktop Connection). Case 1 : When we run the application on the Terminal Server. 1. VB application takes around 65 ms 2. .Net application takes around 110 ms. Case 2 : When we run the applicatio ...Show All
Visual C++ Why is there a popupwindow for assert(false)
Hello, This code #include <cassert> int main() { assert(false); return 0; } compiled like that "/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 8/VC/BIN/amd64/CL.EXE -MD -D_CONSOLE -nologo assertion.cpp produces the output: Assertion failed: false, file assertion.cpp, line 5 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. and then a popup window appears that tells me that it cannot find the Visual Studio Just-In-Time Debugger. HOW CAN I PREVENT THIS POPUP WINDOW I would not expect this window to pop up, ...Show All
SQL Server Cannot complete Install of Express
Product: Microsoft SQL Server Native Client -- Error 1706. An installation package for the product Microsoft SQL Server Native Client cannot be found. Try the installation again using a valid copy of the installation package 'sqlncli.msi'. Logged as MsiInstaller in App Log. The install fails with this and two other items in the bos that shows successful install items SQL Server Database Services Workstation Components, Books Online, Development Tools Installed 2 necessary programs; Windows Installer 3.1 and .NET framework 2.0 redistr. Any Ideas === Verbose logging started: 11/30/2005 19:05:44 Build type: SHIP UNICODE 3.0 ...Show All
Windows Forms Accessing controls in external windows
How do you access controls in a window that have been created by another program I have got the window handle, and want a list of all controls in the external window. I am newbee to .NET, programming in C#. very thankful for help! Jessica4710 wrote: Given a handle, you typically can call Control.FromHandle to retrieve the Control. However this only works if you're on the same thread as the control. Since you are cross-process, this wont work. Won't even work cross-thread. You can get certain information using active accessibility. This is how we recommend folks test their applications. Mor ...Show All
SQL Server SQL Server 2005 basics
I have used SQL server 2000 running queries and ran some basic queries for creating database. I installed Microsoft SQl 2005 and now I a bit confused. Where can I find my Query analyser and Run the query and execute it. 2000 had a simple and neat designs for simple execution but what about SQL 2005. Any suggestions Its a silly question but I need to run one project and I am not able to run SQL. Any help apprectaied I tried going to this location Start menu, ---> All Programs , ---> Microsoft SQL Server 2005 , then ---> SQL Server Management Studio . I am not finding SQL Server Management Studio. I can see configuration tool ...Show All
Visual Studio 2008 (Pre-release) Where can i get
Hi can anybody know where can i get simple and basic programs for c# and wpf Thanx-Nagu I think the Windows SDK would be a great place to start - plus there are tons of blogs on WPF with samples. Is there any particular area that you are interested in http://windowssdk.msdn.microsoft.com/library/ Thanks, -Unni ...Show All
SQL Server Reporting Services 2005 - Problems displaying a report via a ReportViewer control.
I have a report that displays fine in VS 2005 (in the Preview tab), and if I hit it via a URL in IE as a deployed report. However, when I embed it in a ReportViewer control for display on a web site, I get no data back for the report. I am using an Oracle database for the data source. None of the the logs in reporting services show anything wrong, there are no events in the event viewer to indicate any problems, Oracle logs also show no problems and no errors are returned to the page when the "View Report" button is clicked. Anyone out there have a clue I certainly don't. Mike I thought the same thing at first, but perm ...Show All
Windows Forms ComboBox DroppedDown
Hello Sir, This is Chandra and Working as Software Engineer. I got a really weird problem with ComboBoxes. I have set the ComboBox DroppedDown Property to true. Now the actual problem is When the ComboBox DroppedDown is Shown Or True I have to actually click twice to get out of the form or need to click twice to do anything. For Example in My Form If I have 2 Controls One is ComboBox and Another Button Which Clicked Just Closes the Form. Then I set ComboBox DroppedDown = true.So When the ComboBox DroppedDown = true to click on Close Button I need to click twice to initate click event on the button. Plz Help me on how to do it once when ...Show All
