Touraj's Q&A profile
Visual Studio 2008 (Pre-release) XAML to C# Code Covertor
Is there a way to convert XAML code to a C# code that can then be linked into a project or solution There are several samples in the SDK like FontDialog that work fine by themselves but adding them to a solution that has WPF windows and Windows Forms, the XAML will not compile. It will not give a reason except for error messages stating that methods like InitializeComponent could not be found. This is becoming a showstopper as one can not re-use code. It would be great that all samples have a programmatically created UI version also till such time tools catch up with XAML. Thanks if its just xaml then the xaml can be parsed to get the c# object. Do you mean create the object itself(with xamlreader.Load()),&nbs ...Show All
Visual Studio Express Editions thanks renee
y,know I have just been thinking...... there are a lot of nice helpful people on here, who do all they can to help those in need of help or advice.......and I would just like to thank you all........sincerely renee has just walked me through creating a little project which I am very happy with..... it is not finished yet, and we have had a couple of disagreements, and perhaps we shall have some more.....but I would just like to say....thanks renee...for taking the time and effort to help.... it is greatly appreciated cheyenne because I get dinged... when I give an 80% answer which requires some work on the part of the asker and dave get's applauded when he plops down an entire subroutine. I assume people d ...Show All
Smart Device Development Vista + Standalone Device Emulator
Hy, I'm using Vista Enterprise with Virtual PC 2007 Beta1 and trying to install Device Emulator with Windows Mobile 5.0 images to do some tests. The problem is when I start the PocketPC image I got this message: Error: No VPC network adapters enumerated or no host network adapter with provided MAC address found. What I'm doing wrong Can anyone manage to install this mobile 5.0 images on Vista Ent I have VPN net driver installed and I'm starting with /p option because I'll put IP address on pocket PC and doing test on internet connection. This is my problem .. Vista the VPC net driver and Device Emulator have issues ...Show All
Visual Studio 2008 (Pre-release) REST and POX using WCF June CTP
During Tech-Ed, there was a session on using WCF to create REST services using POX-type bindings, e.g. I could create a single service that would respond to: http://server/customerservice http://server/customerservice/add http://server/customerservice/recent etc. In other words, use REST-style addressing to send back "plain-old XML" (POX) messages. It was demo'd at Tech-Ed, but the guy who did the demo basically said "all 45 minutes of code that I just showed you will be irrelevant once the June CTP is out" So - anyone have any samples of how to do this using the June CTP that make it easier than doing it manually using the May CTP So, I tried to create a custom binding using the config file and set up a TextEncod ...Show All
Visual Studio Team System Exception using TFS client in Web App
Hi All we have a web application which communicates with TFS. This application creates new Work item on the server. We want to create the work item using the credentials of the user logged on to the web application. Therefore we use impersonation in the web app. The solution works fine until the windows profile of the current user exists on the server, but it crashes immediately if there isn't one (HKCU file is absent). I got the following exception: Access to the registry key 'HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\TeamFoundation\Servers' is denied. System.UnauthorizedAccessException: Access to the registry key 'HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\TeamFoundation\Servers' is denied. a ...Show All
Visual Basic Please Help
Im about to create a Script or any that i can put a password to my USB without any software to be used. please help on how!!! thanks Hi Jovert, This forum is for questions related to the Visual Basic 2005 PowerPack downloads. You will probably have better luck getting a quick answer if you post your question in the Visual Basic General section ( http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=32&SiteID=1 ) . Steve Hoag Visual Basic Power Packs ...Show All
Visual C# Pc Temperature
I have read all the internet. nowhere i can find this answer ! I'm almost there ! In my PC i use: ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\WMI", "SELECT * FROM MSStorageDriver_ATAPISmartData"); foreach (ManagementObject queryObj in searcher.Get()) { Byte[] arrVendorSpecific = (byte[])(queryObj["VendorSpecific"]); Console.WriteLine("Temperature = " + arrVendorSpecific [101] ); } but, in my friend, and my brother PC, 101 retrieve 99oC , and 115 , the correct temperature. While in my PC 101 retrive the correct temperature and 115 retrieve 0oC Can someone help me guilhermecvm wrote: hmm, ...Show All
Windows Forms Win Forms converted from VS2003 - 2005 but no visual styles showing when app is run
I recently converted a windows forms project from .net 1.1 to 2.0. Everything is working ok except for the visual appearance. In the designer the controls show up nice and smooth and rounded (such as the corners on the group boxes), the DataGridView headers (I changed my DataGrids to DataGridViews) have nice shading, etc. When I run the application though, everything is plain. The group boxes have square corners, the line isn't blue, and the datagridviews have plain looking column headers. I am at a loss as to how to correct this. I even created a totally new form and none of the graphical effects work on it either. Any clues Thanks!! Hah, well after hours of trying to figure this out, and just ...Show All
.NET Development Async Calls using ASP.NET 2.0 Client Callback won't work properly if the OnComplete function makes another Client Callback
Ref: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=270828&SiteID=1 If you make an asynchronous callback using ASP.NET 2.0 client callback and the OnComplete function you defined makes another callback then you will exeperience unwanted behavior. Here is how it gets started... [code lang="javascript"] Code Snippet function StartFirstCallback() { // execute first callback. you get this script from Page.ClientScript.GetCallbackEventReference WebForm_DoCallback('__Page', "", OnFirstCallbackComplete, null, null, true); } function OntFirstCallbackComplete(result, context) { alert("First Callback Complete"); // execute second callback. you get this script from Page.C ...Show All
Visual Studio Tools for Office Dynamic Array of NamedRanges
My database has "x" number of entries of "salary" and "hours". I want to be able to create an array of namedRanges (do not want to use cell numbers) that will be inserted dynamically with eash subsequent entry of "salary" and "hours". How can I accomplish this C# code would be preferable :). Thanks I'm having a real hardtime databinding listObjects programatically. Any good links on that If I have a formula applied to a cell which sums up several cells; Can the value in the cells of the listObject be Summed on the client side with my applied forumla ...Show All
SQL Server Selecting hierarchy from a self referencing table
I have the following SP which returns a single row based on the ID passed (int identity field) SELECT ManufacturerID , ManufacturerName , ManufacturerDescription , ManufacturerURL , ParentManufacturerID , L astUpdated FROM Manufacturers WHERE ( M . ManufacturerID = @ManufacturerID ) Can anyone recommend the best way to modify this to select not only the matching ID row but also any rows which have matching ParentManufacturerID's, and those rows parents etc... ie recursively all the way till the selected parent rows hit the parent's column default ID of -1 Thanks Mac Please mention the version of SQL Server you are using. You can ...Show All
Windows Forms Move Column in DataGrid
Hi, I'm using DataGrid where I need to move the last column to the first(Remember it is a CheckBox Column that I need to move) and the rest by one position(i.e 2nd to 3rd, 3rd to 4th....). I require a code snippet or atleast an idea about implementing this. Thanks Thanks Knowles, but, I need a Function which sets the transition of columns in the DataGrid ...not the DataGridColumnStyles...Hope to have a function from you. Thanks again ...Show All
Windows Forms Binding to a Business Logic Layer
Hi, The question is more for designers and architects. The question is about working with data, specifically about Binding to a Business Logic Layer. With introduction of typed datasets in .net 1.0 and especially in .net 2.0 I started to ask myself - isthat really necessary to create a class that is a mapping for a db table. I will explain what I mean. Take for example database pubs , table authors. With basically one click VS2005 creates for you a typed dataset, let's call it authorsDataSet , which incapsulates a complete object model of authorsDataTable , authorsDataRow and even multiple tables with their relationships. Notice that authorsDataRow IS an complete object model of an author. Besides, there is a authorsTableAdapte ...Show All
Software Development for Windows Vista WS-Addressing and Workflows
Hello, I'm testing a few workflow engines and one of the requirements is support for WS-Addressing. (The workflows call Web Services running on Java applications servers.) I've read that Windows Workflow Foundation does support WS-Addressing but I haven't been able to find any examples or tutorials for it. Could anyone tell me if Windows Workflow Foundation supports WS-Addressing and if there is a good example or tutorial for it I'm trying to find a solution and to write an activity for it myself so I can add it to a workflow but I don't know where to look to tell the Web Service what it's new EndpointAddress will be. I've also read about Windows Communication Foundation and WS-Addressing but I'm not sure if I need WCF. ...Show All
.NET Development XML socket problem? (C#)
Hi all, I tired create a XML Socket with using c#. My problem is display Exception : System.IO.IOException: Unable to read data from the transport connection: WSACancelBlockingCall ---> System.Net.Sockets.SocketException: WSACancelBlockingCall with my receive Function. Whether because my server is java I sure i can connect server, server and client is using the same port. I guess it is because time out How to fix the problem. Below is my codeing. Please somebody help me. codeing NetworkStream ns; StreamReader sr; TcpClient clientsocket; bool connected; Thread receive; string serveraddress = "127.0.0.1"; int serverport = 4002; private void Connect() { socketConnection(); if (connected) { receive = new Thread(new ThreadStart( r ...Show All
