mgi1100's Q&A profile
Visual Studio 2008 (Pre-release) HierarchicalDataTemplate, ItemsSource and CollectionViewSource
Hello! Is there a way to specify, in XAML, that a HierarchicalDataTemplate may have it's ItemsSource object to be wrapped by a certain CollectionViewSource (The instance of CollectionViewSource could for instance provide sorting of the ItemsSource collection) If yes, may you provide a hint, please ! Best regards, Henrik Dahl Hi Henrik, The data binding team has been discussing that scenario pretty extensively lately. Unfortunately, the decision for V1 is not to support that, but we will for sure consider it again for V2. I think this will be a pretty common scenario, and we should allow i ...Show All
Software Development for Windows Vista Communication between Workflow Instances without Runtime Service
Hi, how is it possible to communicate between workflow instances if i wouldn't like to use custom runtime services I would only like to reach a workflow instance property value. (The workflow instance might not be started.) Can DependencyPropeties be used for this scenario or do they support only Workflow Instance <-> Child Activites communication Thanks Osi Hi Osi, It is not possible to do this through the framework. Workflow instances do not have knowledge or access to other instances. -Angel ...Show All
Windows Forms How to resize button to follow Text at runtime?
Hi everybody, Is there a function or property to set Button size to folow the length and size of its text at runtime For example at runtime, I set Font of Button to a size of 20 and has veriable length of Text, I want the button to be able to display the text clearly and whole text is displayed. How do I do that automatically This is all in VB.Net. Thanks. den2005 Thanks anyway, That is what I thought. I try find another way. I have another probelm concerning converting BLOB from database to byte() ad loading it to a Microsoft.Ink object for dsiplay using Ink.Load() method. Is anyone can help me den ...Show All
SQL Server Using SQL Reporting Services Wrapper in a report called from an application
I have a C# application that calls for a report from SQL Report Writer. It iwll be returned as an HTML page, Excel sheet, or .pdf, depending on the type of stream I ask for. What I really want is the report wrapper that the report server uses that have all the save types and whatnot already built in. Anybody have some suggestions ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DxDiag and DirectShow error, please help
as i figure out there is no "real" reliable source of information (or at least not very trustworthy) out there. i came here to seek a solution. when i was trying to run DxDiag, it popped an error message up telling me that there was a problem accesing DirectShow, the cause of that might be previous improper use of the DxDiag. and it asked me if i want to skip loading DirectShow. i have no idea what caused this problem but as u guys are pretty advance developers (i assume), u probably know that the problem with DirectShow prevent me from playing many media files. i tried re-installing Dx9, but as ...Show All
.NET Development FtpWebRequest - Access to IBM AS/400 FTP Server - 501 Character (/) not allowed in object name.
Hello everybody I'm trying to communicate with an AS/400 FTP Server. As a first try I just execute the WebRequestMethods.Ftp.ListDirectory method, which translates to the NLST FTP command. Doing the same accessing a Microsoft FTP Server or a UNIX FTP Server works fin. This is the code to get the listing: Dim Uri As System.Uri = New System.Uri(listUrl) Dim listRequest As FtpWebRequest = CType (WebRequest.Create(Uri), FtpWebRequest) listRequest.Credentials = New System.Net.NetworkCredential(User, Password)listRequest.Method = WebRequestMethods.Ftp.ListDirectory listRequest.KeepAlive = False listRequest.UseBinary ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Stretched Texture
My texture displays stretched vertically and I have no idea why. I loaded it using TextureLoader and used Sprite.Draw2D(texure, rectange, size, position, Color.White). I always set the rectangle and the size to the same. Can anyone help I'm new at this stuff. Thanks! Here's a method I developed that is quite effective at turning a Bitmap into a texture (and gets around the square problem): protected D3D.Texture BitmapToTexture( D3D.Device graphics, ref Bitmap bmp ) { MemoryStream loMS = new MemoryStream(); // Create a square offscreen bitmap, the dimensions of which are // the si ...Show All
Windows Forms crystal reports not displaying data
Help! I'm developing a desktop application that uses several crystal reports. I use an ADO.NET dataset and set the datasource for all my reports in code. Up until a week ago, I never had any kind of problem with this. Then suddenly - as in it ran fine one minute and not the next - all my reports stopped showing data. I get ...Show All
Windows Forms How to set DataGrid Cell Value
Im trying to set the DataGrid CurrentRow Cell value to what is contained in a text box txtMyValue.Text on my form I have tried the code below but it wont work Can anyone set me on the right path DataGrid1.CurrentCell.RowNumber, 0).value = txtMyValue.Text All three of these ways are correct. -mark Program Manager microsoft This post is provided "as-is" ...Show All
Visual Basic Moving things in a listbox
ok, i have a menu and a listbox, in the form1_load i have: For Each toolStripmenuItem As ToolStripMenuItem In ToolStripSplitButton1.DropDownItems Me .ListBox1.Items.Add(toolStripmenuItem.Text) Next In my menu i have: box1 box2 box3 The listbox displays all of these, i then want to be able to select box1 in the listbox and move it around, say under box3, i also want the changes to appear in the menu, how would i go about this OK...sorry for the wait. Here's a example... It's works, but it's not drawing splitter lines and such. You'll have to make that code. To run my exmaple, start a new app ...Show All
Visual Studio Express Editions C# express Fails to debug
My copy of C# express (.img version) on my windows xp sp2 pc debugs successfully but it will not launch the subsequent .exe. I have reinstalled twice and I still get the bug. I have also installed C# express on a windows 2000 computer in my store room (only a pentium 2!) and it didn't do the above either. I can do a normal F6 build and execute the file by double clicking on it's icon in explorer, but that's no fun. The only clue I have is that there may of been a corrupt installation file. The file that contains the vc# installer (Ixpvcs.exe) when trying to install it several times - it couldn't install certain files... Any help wo ...Show All
Visual C++ Feb 2005 CTP: Are precompiled headers broken?
Use /Yc on one file (usually ill-named stdafx.cpp) to create the precompiled header file, then use /Yu on all other files to use the PCH file. If you haven't used a consistent 'stdafx.h' but were relying on /YX to automatically (re)build the PCH file as necessary, you'll have some pain to work through, and you'll also enjoy quite substantially improved compile times once you've done it. Hi, I have a similar problem. I try the sample code provided on msdn for the use of /Yu /Yc and while it works well with VC++ 7.0, it doesn't with VC++ 8.0. More specifically, I try to build a pch file using a previously b ...Show All
SQL Server Executing an external process() in SQLCLR Project
I can create an external text file from within the SQLCLR project, but I cannot run an external executable. Just in case you are asking, I need to do this to push data into a legacy application using a different DB format. I have found it best to simply use my old language (Clipper) for data validation, etc. - and especially since I require multiple indices to be open. So, if you could just take my word on this. The following code: Process newProcess = new Process (); string path = @"C:\TEST.BAT" ; newProcess.StartInfo.FileName = path; newProcess.Start(); Executes without error, but does not ...Show All
Visual Studio Team System How to config the TFS client to access TFS Source control on another port?
The TFS in our company is behind a fireware and on this fireware we setup a port tunnel by which the port number 1345 on fireware is mapped to 8080 on TFS. Now how can I configure our TFS client to access TFS through this port(1345) We only need source control, so only one port (8080) is mapped. Thanks! Go to VS, Tools/"Connect to Team Foundation Server..", then click on Servers button, and you can create a server mapping using the port # of your choice. Will that work for you ...Show All
Visual Studio 2008 (Pre-release) xaml.xsd
where can I find xaml.xsd I haev downloaded the winfx sdk at: http://www.microsoft.com/downloads/details.aspx FamilyId=23A22468-5807-4FF7-A363-CE6FE69B8F04&displaylang=en and the iso image at: http://www.microsoft.com/downloads/details.aspx familyid=64193cc5-d566-402c-a211-ba48b312cf6d&displaylang=en but after installing them I cannot see xaml.xsd anywhere. James The links to overall download links for the WinFX November CTP is at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=143002&SiteID=1 ...Show All
