Software Development Network Logo
  • .NET Development
  • Windows Forms
  • Microsoft ISV
  • Windows Vista
  • IE Development
  • SharePoint Products
  • Visual C++
  • Visual FoxPro
  • Visual C#
  • Smart Devicet
  • Visual Studio
  • Game Technologies
  • VS Team System
  • SQL Server
  • Visual Basic

Software Development Network >> Agent00's Q&A profile

Agent00

Member List

sl0140
bilalso
Scott Swanson MSN
martona
sluggy
PaoloZ
Cuckoo
bryanedds
Matt Lin
JDavide
jeff1024
INTPnerd
David Turner
Shirvo
Anarchy
MIKE DANAHER
rusty_bone
Vasic
Marcusbris
Matthew Erwin
Only Title

Agent00's Q&A profile

  • Visual Studio 2008 (Pre-release) Bug in ItemsControl?

    Hi there, The ItemsControl seems to have problems with item selection whenever the items in it override Equals(object) such that the behavior is not reference equality. For example, if you a bunch of Int32s to a ListBox and some of the ints have the same value, selection is broken. Here is some XAML to demonstrate the problem: < Window x:Class = " ItemsControlBugRepro.Window1 " xmlns = http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x = http://schemas.microsoft.com/winfx/2006/xaml xmlns:col = " clr-namespace:System.Collections;assembly=mscorlib " xmlns:sys = " clr-namespace:System;assembly=mscorlib " Title = " ItemsControlBugRepro " > < Windo ...Show All

  • Visual Studio 2008 (Pre-release) Sending selected tree view item data to model (how to bind)

    Hi All! I am trying to develop simple WPF-based application and faced one problem. I have UserControl that contains TreeView. This tree view is bound to hierarchical Categories structure. User can select one particular category and view the contents of the selected category in some list view (this list view is not from the same UserControl). Now I want to have Application.SelectedCategory property which will always contain the category selected in tree view. This property will be used in other user conrols. I tried to establish OneWayToSource data binding using TreeView.SelectedItem property, but the attempt failed because this property is get-only and it is not registered as dependency property. What should I do Handle selection change ev ...Show All

  • Windows Forms How to implement copy/paste/cut/undo/redo commands in C#?

    The above code looks like it will handle TextBoxes and ComboBoxes, which is great, but anyone got any code to handle columns within a DataGridView   Hi,Chris Gin What kind of work do you want to do whiling handling columns within a DGV And, I recommend you to start a new thread to ask your question. Best Regards. Ye ...Show All

  • SQL Server Report Headers vs Page Headers

    Hi, this is probably a simple question but I just can't figure it out. I'm using SQL Server Reporting Services 2005 sp1. I'm trying to design a report that displays a particular embedded image on the first page, and then a different one on every subsequent page. I.e full, fancy company logo on the first page, and a trimmed down version on every other. In Crystal, I would have simply used the Report Header and Page Header sections to achieve this - easy. However, in SQL Reporting Services, there is only a Page Header section - therefore whatever I place in the Page Header shows on every page. Now, I know how to stop it displaying on the first page, but I don't know how to display the other image instead. I read in a support forum t ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Compile in Release

    I am in a huge rush right now. Between VS2003 and VS2005 they moved where you choose whether you compile in Debug or Release mode. Where is it now I have manually added the drop-down box to the tool bar, but it's grayed out. This is extremely frustrating and critical to testing DirectX stuff. Inside the build menu there is only: Build, Rebuild, Clean, and Publish. As for Project Settings, I am guessing you mean Project Properties. And yes, I can access that through the Project menu or right clickong on the project in the Solution Explorer. (And to think that the VS2005 help had a three line article saying: "Select from the Solutions Configuration drop-down box on the standard toolbar& ...Show All

  • Visual Studio 2008 (Pre-release) WCF hosting: NT Service X IIS?

    Hi Everybody! We are starting a new project for a high available web system and we are thinking about using WCF to provide the required services. Probably we will use server clusters in order to provide the required availability, but we don't know yet if the solution shall use 3 levels of clustering (web, application/business and database) or 2 (web/application and database) as it depends on the customer budget. I'd like to know which solution would be more suitable: hosting the WCF services as NT Services or within IIS. Could you help me regarding the pros/cons of using each one considering: 1 - How easy each one adapts to the clustering hardware solution 2- Performance 3 - Security ...Show All

  • .NET Development WebClient.UploadFile

    I am using WebClient class to upload files from client side to server side, the system succeed to copy the file but fails to open it due to header lines were added, Please advice How can i upload the file from the client to the server successfully Nadia I create a txt file which name xx.txt, then I execute the WebClient.UploadFile to upload the file to the server side. The file was uploaded successfully but few lines of header and footer was added to the original context of the file. Please see the example bellow. -----------------------8c8883ecf24ad9e Content-Disposition: form-data; name="file"; filename="xx.txt" Content-Type: application/octet-stream Context of the txt file --------------------- ...Show All

  • Visual C# C#: Launch URL from inside a windows application

    Hi,   I am new to C#, and was wondering if someone could provide sample code for launching a default website from within a windows form I have a userform with various buttons. I would like to click on a button and then launch the desired intranet website. I poked around the web and this is what I have found:-   Private void button8_Click( object sender, EventArgs e) { string targetURL = @http: //www.duncanmackenzie.net; System.Diagnostics. Process .Start(targetURL); } Any help is much appreciated.     Thank you. That worked perfectly! Cheers. ...Show All

  • Visual Studio Express Editions Print data from a form

    How can I print information from a database showed in a form, and how can I establish margins or styles. The easiest method is to use reporting add-in software such as DataDynamics: http://www.datadynamics.com/default.aspx or CrystalReports: http://www.businessobjects.com/products/reporting/crystalreports/default.asp ...Show All

  • SQL Server Retrieving SQL data from VC++(using VC++ 2005)

    Hi to all, I made a database using SQL Server 2005 and now I want to interact with that database through VC++ 2005. Is that possible If so, how can I do it Thanks in advance!!! Try starting here: http://msdn2.microsoft.com/en-us/library/ms166342.aspx Buck Woody http://www.buckwoody.com ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Managed DirectX performance

    Hi, I can't get DirectX to go faster enough in 2D environment. Wasn't expecting to hit a road block so soon. Any solutions to improve 2D performance. VB.NET\Window\Fullscreen\ 80 FPS (My little man travels 1 pixel per tick..this is not faster enough) ConroeE6600\RAM 2gig @ 1066\ATI 1300AEX512/128 24bit BMP have tried Draw and Draw fast with fullscreen exclusive No, I am not recreating surfaces in control loop What is vsync..Do you think that would increase FPS beyond 80 PresentInterval doesn't appear in my DirectDraw object browser. Thanks for your help..80 FPS sounds good to me, rather good, but I wanted MORE! ...Show All

  • .NET Development Best practice in declare

    What is the best practice for declare any objects I wish to know what diference this make. Like: 1) object obj ; obj - new object(); obj.toString(); 2) new object().toString(); Will use more memory then other What it can help my program Best performance Less memory usage like in example 2, this will be deleted after i use Point well taken, if you have an object that has file handles or other critical resources, then you should explicitly dispose of the object so the object's resource properly returned. It is best to the use the using statment for such operations such as   using (Font font1 = new Font("Arial", 10.0f)) { } That way the resource will be properly disposed of when the section is finished. Read up on the using ...Show All

  • Smart Device Development Windows Mobile 5.0 cmd.exe+console.dll download

    Hello, I'll appreciate being told where I can download the cmd.exe and console.dll files for Windows Mobile 5.0. The Symbol MC70 device I have, doesn't run console applications because It hasn't those files in its \Windows directory. Thanks in advance, Zani. Hi Zani I'm not aware that Microsoft provides this for Windows Mobile 5.0 (they did for Windows Mobile 2003). I suspect you'll have to change your application(s) to use a Windows GUI. I'd ask Symbol it there able (and allowed) provide this for you. Michael ...Show All

  • Software Development for Windows Vista Hosting WorkflowService (WorkflowRuntime) in IIS using WCF

    Hi, I'd like to host some kind workflow service (using Windows Workflow Foundation) within the IIS. Therefore I have configured a service file (.svc) and an appropriate web.config file. When the service starts (managed by IIS ) it should load the WorkflowRuntime instance. Therefore I've created a class implementing the IExtension<ServiceHostBase> interface holding that instance. Because my application is not directly responsible for creating the ServiceHost (-> IIS) - how can I add this extension to the service host Is it possible to configure this via the web.config file (<extensions>-Element) Or do I have to write such a class inheriting from ServiceHostFactoryBase and configuring the service file Thank you! ...Show All

  • Microsoft ISV Community Center Forums SaveAs help

    I am trying to write a macro that saves a file with the name of a person. The name of the person is always in the same cell location, Column A. I am currently using this line to do the save: ActiveWorkbook.SaveAs Filename:="O:\Lead Report\temp\" & Sheet.Range("A2") & ".xls", FileFormat:= _ xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False I get the error: "Runtime error (424) - Object Required" I do not know what this means. The Workbook I am trying to save is generated from a drill down into a Pivot table that is then Moved to the new workbook. Any suggestions would be appreciated. Thanks! ...Show All

©2008 Software Development Network