KirkHaselden's Q&A profile
Visual Studio 2008 (Pre-release) WPF Feb CTP: Bug in ComboBox dropdown
Try the following simple XAML code: <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " xmlns:system="clr-namespace:System;assembly=mscorlib" FontSize="{Binding ElementName=FontSizeCombo, Path=SelectedItem.Content}" > <StackPanel Orientation="Horizontal"> <TextBlock VerticalAlignment="Center&q ...Show All
Windows Forms Change ColumnStyle for all the columns
Is there a wya to change the Column Style for all the columns the datagrid The no of columns in the datagrid change dynamically. Is there a way i can specify columnstyle for all the columns in the datagrid instead of& ...Show All
Visual C# Code to detect speed performance of operations.
Hi all, to save me from re-inventing the wheel, I was wondering if anyone has (or knows where to find) some simple code that I can use to test the speed of the code in which i am processing and output the results to Console, or something Thanks Tryst You can use this piece of code for simple profiling: int tickCount = Environment.TickCount; DoLongOperationYouWantToProfile(); int diff = Environment.TickCount - tickCount; TimeSpan sp ...Show All
Visual C++ TIME CONVERSION BUG
// TimeConstructionBug.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "ATLComTime.h" int _tmain( int argc, _TCHAR* argv[]) { COleDateTime a(2006, 12, 1, 17, 0, 0); SYSTEMTIME b; a.GetAsSystemTime(b); FILETIME c; ::SystemTimeToFileTime(&b, &c); COleDateTime d(c); CString startTime(a.Format()); CString endTime(d.Format()); printf( " ...Show All
SQL Server Custom Source Component Problem?
Hi,I have developed a custom source component to get data from a generic odbc connection with some special caracteristics. The component works fine by getting and mapping the output fields etc... The only two problems existing are that when i run the task it says that the data flow has no components inside... how is this possible since i have my source mapped to a flat file inside that data flow This is the error: SSIS package &q ...Show All
Visual Studio Team System Deleting a Team Project
Hi, is there any way to delete a Team Project created by me From Team Explorer exists the remove option but I couldn't find one to delete all the different parts of a Team Project (SCC, Project Portal, Work Items, etc). Is it possible Thanks a lot LucasC See Buck Hodges blog entry at http://blogs.msdn.com/buckh/archive/2005/01/24/359462.aspx . The post refers to the December CTP, but it works for Beta 2 as well. See the update at the ...Show All
Visual Basic Book/Resource on Hardcore .Net Architecture
Hi, This is my first Message in the forum and a Newbie to .NET Could u refer me a good book or online Resources while deals with Hardcore .Net Architecture Thanks check out this book http://www.microsoft.com/mspress/books/5353.asp ...Show All
Visual C# Where to Find Good Tutorials / Overviews for DataGridView ??
Hi There I'm getting a bit lost in the MSDN documentation for the DataGridView in .NET 2.0, could anyone please direct me to some good overviews/tutorials TIA Bill Hi Bill, The following link gives a good overview of all the features with snapshots: http://www.windowsforms.net/WhidbeyFeatures/default.aspx PageID=2&ItemID=13&Cat=Controls&tabindex=5 Regards, Vikram ...Show All
Visual C++ Two questions - finding modified properties pages easily and highlighting file in solutions tab.
I'm new to Visual Studio, and we're using 2005 mostly because we need x64 builds. We have several projects in our solution, and when working on these, changed properties pages for projects and some files. Now I'm trying to configure a release build, but the properties pages we added (e.g. adding an include search path) should have been put in 'all configurations' page, not the 'debug' page. I didn't know any better at the time ...Show All
.NET Development problem consuming my web service
'project with web service <webmethod()> _ public function myws(id as integer) 'do db stuff with id and build document Dim xd As New XmlDataDocument xd.Load("path...\myxml.xml") Return xd end function ---------------------------------------------------------------------------- 'project that consumes web service ws = New com.domain.www.WebService dgWS.DataSource = ws.myws(100) dgWS ...Show All
Visual Studio Express Editions How do I reset a form
I'm real new at this so bear with me. I set up an application similar to a calculator with two text boxes for input and then it does a calculation. After it runs, I want to click a button to reset it (i.e., restart the application over again with blank text boxes and reseting the variables). Problem is I can't seem to find anything that does that. Any help would be appreciated. Casgo. ...Show All
Visual Basic Object Oriented question
This seems like there is a really basic answer... I have a collection of objects (lets say Products) inside another object (say Order). The product object has a function called GetTax(). Inside that function it needs to reference a property of its parent object, Order. How can I access a property of a containing object In the below sample, the MyParent object is pseudo-code... Imports System.Collections.Generic Pu ...Show All
Smart Device Development How to Hard Reset a Device programatically
I try this http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=260264&SiteID=1 and it's so cool for my first application for secound application I like to try to "hard reset" or "restore factory default" how to thanks OS : Windows Mobile 5 for PocketPC Language : VB here an example private const uint FILE_DEVICE_HAL = 0x00000101; private const ui ...Show All
Visual Basic Website containing Television VB code
I´m trying to develop a decent tv tuner/capture application (since there are no such apps, nowhere, I say) in Visual Basic 6.0. I´m using the MSVidCtl component together with the AnalogTVTuningSpace and IChannelTuneRequest object to achieve this, as desc ...Show All
SQL Server Error: Failed to generate a user instance...
Hello, When trying to add a new SQL database to a VS 2005 project I get this error: Failed to generate a user instance of SQL server due to a failure in starting the process for the user instance. The connection will be closed. [CLIENT: <local machine>] Any ideas what is causing this error and how to fix it Thanks Tom Hi Tom, This question has been discussed several t ...Show All
