4B7's Q&A profile
Visual Studio Express Editions The name 'txtPlayerMove' does not exist in the current context
Hi, I'm very new to C# and I'm trying to insert a text string into a text box that sits on a form in the same project. The class that is trying to send the string to the text box is in a different file than the form code. I get this error: "The name 'txtPlayerMove' does not exist in the current context" from this code: public bool throwSnow(int range) { //calculates likeliness of a hit at a given range //returns true if snowball hit bool hit = false; int myRoll; Random roller = new Random(); if (snowballs <= 0) { txtPlayerMove.Text = Convert.ToString(name + " is out of snowballs!"); } ... (i didn't include the rest of the code) I'm ...Show All
Visual Studio Team System Can't Install CTP7
I have Visual Studio 2005 team Edition for Software developers installed but when I run the CTP7 setup program it won't install and informs me that "Visual Studio 2005 Team Editon for Database Professionals requires Visual Studio 2005 Team Suite to be installed...". I have previously installed, and sucessfully run, CTP5 and CTP6, both of which are now uninstalled. I have re-installed Visual Studio but I get the same error. I have the following Visual Studio components installed: MS Visual Basic MS Visual C# Team Edition for Developers Team Explorer Visual Studio Tools for Office SQL Server Analysis Services SQL Server Integration Services SQL Server Reporting Services What is the problem ...Show All
SQL Server Can I Debug Remote SQL Server 2000 Stored Procedure in Visual Studio 2005
I can debug an SQL Server 2005 stored procedure in Visual Studio 2005 from a local database (e.g. AdventureWorks). However, when I try to debug a stored procedure on a remote server running SQL Server 2000 the debug process is not accessible (i.e. I can choose 'Step Into Stored Procedure' and it seems to run but I cannot debug it). Am I trying to do something that just can't be done Is this a compatibility issue between Visual Studio 2005 and SQL Server 2000 Or am I missing something Thanks for any advice on this. Richard As far as I can see, Server Explorer in Visual Studio does not give me a 'Modify' option. It gives me a 'Step into Stored Procedure' option that does not seem work fo ...Show All
Visual Studio 2008 (Pre-release) Expression designer like docking
Hi, I was wondering if anybody has realized an "Expression Designer" like docking that he is willing to share Thanks, Tom ...Show All
Windows Forms working with 2 forms
Hi all Im like this topic much and I have a same problem with 2 forms For example I have 2 form I open form1 first, and i have label1.text="first"; then I open form 2 , it has a textbox and a button OK when I write sometng in this textbox llike" change label1" and click Ok and close form2 then i see from1 it was automatically change the lable1.text --"chang label1" Could I do it Thank you very much If you want instant feedback to label1.text. You will need to create an event delegate for the textbox TextChanged event in form 2 that form1 has to catch. Works for both modal and modeless. If the form 2 is modal(ShowDialog), then you can just assign form.label1.text = form2.textb ...Show All
Software Development for Windows Vista How to cancel a sequential workflow with cleanup in advance
Hello, I want to cancel a sequential workflow, but doing some cleanup in advance. The terminateActivity just aborts the workflow and I 'll have to do some cleaning just before getting to the terminateactivity all the time(because it does not go into faulthandler or cancellation handler). But the cleanup procedure is always the same. Furthermore I have to do this very often in serveral branches in the workflow erverytime I want to abort the workflow, so this is no solution. If I raise an exception somewhere in the workflow I 'll get to the FaultHandler. The activities in there are then being executed and then the workflow continues. But it has to be aborted! So I could throw some exception again inside the faulthandler...ugly! But I nee ...Show All
Visual C++ tempereture control program in c language
can any body please specify how to write a program for tempereture control in c language Try to use WMI SDK, especially Win32_TemperatureProbe hope it helps rioc ...Show All
Visual Studio Team System Error 28922 !!!!!
had SP1 of visual studio and TFS installed on my server but it didnt work and i had a server failure, so i removed the SP1 after doing this i had this error: " Team Foundation Server does not exist or is not accessible at this time. Technical information (for administrator): HTTP code 503: TF30059: Fatal error while initializing web service " after searching on line i found that there is problem in version number of Microsoft.TeamFoundation.VersionControl.Server.dll file so i changed it to be compatible with TFS version number. by dowing this the following erro appeared " Please contact your administrator. There was an error contacting the server. Technical information (for administrator): HTTP code 500: Internal Server Error ...Show All
Visual Studio Express Editions Itanium
I have an rx2620(2 cpu) W2003 Server ITAINIUM . Anything I should know before I try to install the Express Version of anything What if, any, images can it build The answer is... Installed VB Studio Express, 2003 Server Platform SDK and .NET on laptop. Installed .NET on 2003 Server. On laptop made a simple app Options->Show Advanced Build Configurations Changed compiler to Itanium. Built app published to my c: drive and copied it to Itanium server and installed. It worked. Thats it. Thanks for the previous help. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How make a DirectX application runs on WindowsForm (C++)
My first post on that board so i'll try be more clear as possible and in advance i thank any kind of help. Well, i'm making a simple directX application based on my studies on this book Introduction to 3D Game Programing with DirectX 9.0 , the problem it's how i make the scene created runs inside a windows form to be more clear, i'm trying to render my scene inside a form but don't know how call a specific function to do that. Another thing, the code i'm posting here create by itself a window and i know that to runs on windows form i'll need erase thoses line of code, 'cause that i needed know how do that using a windows form. I'm using native C++ language and the code of the program i trying to run is down below. ...Show All
Visual C++ remotly execute application/exe
hi all i want to make application that takes the path of executable and execute that exe on remote computer through the WMI or RPC i had searched a lot on WMI that do so but i had not found any example that take the executable path n execute that on other computer,there were examples of using the query but not what i want.help is welcomed. For WMI issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.wmi&lang=en&cr=US OTP Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Basic HYPER LINK IN EXCEL SHEET
Hi, I am using com component (Microsoft Excel 11.0 Object Library) for creating an excel using vb.net code and then doing some manipulations in the created excel. I am using the following code snippet for controlling the excel. Dim objExcelApp As New Microsoft.Office.Interop.Excel.ApplicationClass Dim objExcelWorkBook As Microsoft.Office.Interop.Excel.WorkbookClass Dim objExcelWorksheet As Microsoft.Office.Interop.Excel.Worksheet Dim objSheets As Microsoft.Office.Interop.Excel.Sheets Dim Range As Microsoft.Office.Interop.Excel.Range objExcelWorkBook = objExcelApp.Workbooks.Add(System.Type.Missing) objSheets = objExcelApp.Workbooks(1).Worksheets objExcelWorksheet = objSheets(1) ...Show All
.NET Development Dynamic Webservice reference
Hi there, I have a visual studio solution that has 2 projects 1) is an ASP.NET Web application (the frontend) 2) a C# class library. let's say MYDLL.DLL When I compile the MYDLL.DLL its in copied to the BIN directory of the ASP.NET project. And when I deploy I'm simply copying the folder of teh ASP.NET project to the remote server. That's to set the scene The Class library has a web reference to a Web service. When I'm developing I set this to a particular url. When I deploy MYDLL.DLL, I want the web reference to be read from a config file. But when I deploy, MYDLL.DLL still references the web service that I compiled and developed against!!! I've tried adding an app setting (see below) to my web.config I've al ...Show All
.NET Development GET byte[] encoding?
Hello, If I have a byte[], how to work out the encoding it uses e.g. ASCII or Unicode etc. Many Thanks You can't know simply from a byte array what encoding was used. Depending on the data, you can infer some encodings, but not all. In general you have to know explicitly what encoding a byte array is in, or use something else to define the encoding of the byte array. ...Show All
Software Development for Windows Vista Using the new EVR in DirectShow mode to replace VMR9
Starting using my player application under Vista, I managed to add the EVR support (DirectShow mode). So I followed the msdn instructions (settings the clipping window, handling WM_PAINT & WM_SIZE), but here are a lot of differences compared to VMR9 that cause me troubles: 1° The events throwed by EVR are very minimalists! For example, I miss the VMRRenderDeviceSet (or equivalent) that provides a way to get the real AspectRatio of the video. As shown bellow, the VMR9 can send it 2x or 3x, and the last one is the right one. So after each DeviceSet event, it is easy to query the filter for the VideoSize. (Bellow are shown the received graph notifications sent by the VideoRenderer after starting the Graph) ...Show All
