AnAgile's Q&A profile
Visual C# Checking values of variable at runtime.
I have created a C# project using Visual Studio 2003. I have declared a string variable 'strTest'. I want to check the values of strTest.Substring(0, 2) at runtime. I tried checking its value in quickwatch window but getting the following error: error: 'strTest.Substring' does not exist I get the same error for strTest.ToUpper() etc. but its working fine in vb.net. Can anyone plz suggest a solution. Thanks. Ashok Make sure the variable strTest is in the current scope. Where do you declare it and where is the current statement when you try to check the value You can also try the immidate w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. managed directx fullscreen
All of the managed directx sdk tutorials are in windowed mode. Could someone post a simple example of fullscreen managed directx Thanks. I'd suggest getting a book on Managed DirectX because the web is a horrible place for information. I posted this on a similar topic, so be sure to check out the following thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=178855&SiteID=1 ...Show All
Visual Studio Tools for Office Problem with Canceling Outlook application opening under .Net?
Hi, I’m having problems while canceling outlook opening under .NET, using VS.Net2003 & outlook2003. In my project I added a reference to the ‘Microsoft Outlook 11 Object library’ and created a new outlook application with the following line: Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application(); Once the above line is executed, there is an attempt to open a new outlook application and if outlook was not opened, a windows with the title ‘Microsoft Exchange Server’ is opened asking whether to ‘connect’ or ‘work offline’ or ‘cancel’. If I select ‘cancel’ the same windows ...Show All
.NET Development C# equiv of isdate?
Hi, How do i check if a string contains a valid date Ex, i have a string ="jan 6 15:15", I want to set the year to 2006, but only if it's not already a valid date as is the case. so, the resulting string should be "jan 6 2006 15:15". but if the string already has a valid date, ex "jan 7 2005", I don't want to touch it. I try to use the datetime.parse inside a try/catch, but i couldn't get it to fail. It keeps setting the date to now(). Has anyone done this before If you know the format that it must be in, have a look at the DateTime.ParseExact method, otherwise us ...Show All
SQL Server ETL using SSIS
Hi guys, I have been able to put together a simple SSIS package and familiarize with how it works. Now as I am trying to put together this ETL job I am stuck and am looking for some recos: I need the source system to be able to do a join on my Datawarehouse table and push thru only those rows which I am interested in. Can this be done using one of the Data flow task Presently we do it by using staging area, creating temp tables, doing joins, but if I attempt the same here, what is the advantage I would derive out of SSIS Any pointers will be helpful Does anyone know as to how I can tap into the SSIS meta data and maybe kind of ...Show All
Windows Forms Setting initial values when adding a datatgridview row
Hi, I have a datagridview bound to a datatable in a dataset. When the 'add new' button on the bindingnavigator is used to add a row I want to use all default values except for one column which has to be set programatically. The default values are fine, they were set up in the column properties of the datatable. But how do I change the one special column If I use the addnewitem event in the bindingnavigator, does this occur AFTER the new row has been added to the DGV and the corrasponding datatable As a guess, I tried this, changed the value in the datatable cell and called DGV.RefreshEdit to update the DGV. Didn't work. I don't even k ...Show All
Windows Forms Whenever I try to introduce an animal i get a stack overflow in terrarium.exe
Does anyone know what might be the issue with this THanks, Paul Tyng Well try to create some good bug then ..... :) like one we have got Terr(o)rium :) lolz..... I was so enthu about this stuff when I first read about it on web, the very same day I got .NET 1.1 (by that time the old version was removed from the site),& ...Show All
Visual Studio Express Editions Case Select - Not the best way ..
I am trying to look up data in a grid. I am using a Select Case statement, see below. My question is there an another way to do this. I have another table/grid of data that has 30 rows and 30 columns and my Select Case statement will be very big. Bad Christian, a C# example in a VB Forums. Beat yourself for that mistake.... Code Example of simple hashtable in VB. Button 1 populate a hashtable with a list of objects. Button 2 searches for items with the key. Public Class Form1 Private HT As New Hashtable Structure TestStruct Dim x As Strin ...Show All
Visual C# Getting a list of computers on a network
I'm writing an application that needs to get a list of computers (their names) on a network. The examples I've found all seem to query an ActiveDirectory on a server, which is not what I need. Is there a way to get a list of computers on a server-less network using the .net 2.0 classes I've done this before in VB6 using API's, so would I have to do that in C# 2005 using System.Runtime.InteropServices, or can it be done with System.DirectoryServices Thanks for any help with this. Yeshia wrote: Im not sure if this is what you are looking for but this code should get a list of computers ...Show All
Visual Studio Team System Modeling tools
First off, I'd like to say I was happy to read about this much needed additon to the VSTS family. Way to go, guys! Now, for my questions: You've said that this version of TSData will not include data modeling features. It follows that many of us will have to integrate existing modeling tools with TSData. Are there any features that can be used for that purpose Will you present best practices and/or how-tos on this subject Does TSData support creating and managing configuration data (by this I mean DB records that must be deployed for applications to work and are created and mantained by the DB dev team) Cheers, Brian ...Show All
SQL Server INNER JOIN Question
How do I deny a Innet join(make the inverse) I tried to use <> at the condition but it keeps bringing the equal results... Thanks Ah, I think I finally see what you are going for. I think FULL OUTER JOIN does the trick: drop table test1 drop table test2 go create table test1 ( value int primary key ) create table test2 ( value int primary key ) insert into test1 select 1 union all select 2 union all select 3 union all select 4 insert into test2 select 3 union all select 4 union all select 5 union all select 6 union all select 7 GO select * from test1 full outer join test2 on test1.value = test2.v ...Show All
Software Development for Windows Vista Windows Vista CTP?
Hello everyone, Is it possible if anyone could tell me that will there be any CTP or pre-release, available to the general public to evaluate windows vista before the final release Thank You The rumors I hear say another CTP will be released to testers/MSDN this month (Feb 2006) and that a broader public CTP will be released in April. However, these are all rumors. ...Show All
Software Development for Windows Vista ASP - StateMachineWorkflow started but not starting?
The following code works in a winforms app, but not in asp. WorkflowRuntime workflowRuntime = new WorkflowRuntime(); //only creating 1 instance of this in asp ExternalDataExchangeService svcDataExchange = new ExternalDataExchangeService(); workflowRuntime.AddService(svcDataExchange); svcDataExchange.AddService(new MyServiceNamespace.My_Service()); workflowRuntime.StartRuntime(); WorkflowInstance wfi = workflowRuntime.CreateWorkflow(typeof(MyWorkflowNamespace.MyWorkflow)); wfi.Start(); MyServiceNamespace.My_Service comLink; comLink = workflowRuntime. ...Show All
.NET Development How to enable ETW tracing for System.Data.OracleClient.1?
I have an web-app that inserts and updates data in an Oracle 10g database using databinding with the SqlDataSource. Inserting data into the table works fine, but when I try to update a row that has a datetime field it crashes and says that it cannot insert null value into the field even though I pass I valid value. The only solution I have come up with so far is to modify the SQL-statement to update the datetime field using Oracle's CURRENT_DATE() function. To find out what is actually sent to the database I tried to enable ETW tracing for System.Data.OracleClient.1 according to the article Tracing Data Access , but I never got it work ...Show All
Visual Studio VSS 6 And VB6
Hello I am looking to correct the behaviour of VB 6. After loading a project, Tools -> Source Safeshows "Create a project from SourceSafe..." "Add Project..." etc. This VB 6 project is under safe control. If I click "Tools -> SourceSafe -> Create a project from SourceSafe..." and point to the appropiate SourceSafe project every thing is normal untill close and reopen the VB. Michael What exactly the problem after closing and reopening VB6 In general you create a project from source control only once and then when you open the project from disk it should be under source contr ...Show All
