Cody55's Q&A profile
Visual Studio 2008 (Pre-release) TreeViewItem width to fit control & transformation
Hi! 1)Is there any way to set TreeViewItem width in such way that they fit eaxactly all free space in the TreeView. (smth like items in listbox) I cannot manually set it in code because treeview width is defined automatically. 2) How can i apply transformations only to the treeview item and not to its child elemwnts (All effects are applied at node expansion, i tried to set RenderTransform of child elements to null but it didn't help) Or maybe i can perform all transformations before node is expanded but just after + button is clicked but i didn't find necessery event Thank you if you copied and pasted from the link I pasted in the same window/page in the resources section, you dont need to do the follow ...Show All
Visual C# Unicode data in Database!!
Hi all, Can we store the unicode data / culture specific text into my database I'm using VC# 2005 for my App and my database is a .mdb file. I have some strings in local languale like Hindi, India. Now... can i store these string values in my database Pls suggest any related weblinks or some code sample! Thank you. Soujanya Conversion to and from Unicode into a DB is pretty much automatic. The column(s) that will store Unicode need to be NCHAR or NVARCHAR rather than CHAR and VARCHAR. If you make this change then ADO.NET will handle the rest. Note that when switching to Unicode you are cutting the maximum size of the column in half because Unicode requires 2 bytes whereas ANSI requires 1-2. Michael Tayl ...Show All
Visual Basic using folderbrowsedialog geting filenames
how do i get the name of the files in the folder that the user selects and also get the extentions on them First you should check if the user clicked the ok button on folderbrowserdialog. This is the return value of the ShowDialog() method. The name of the selected folder can then be retrieved from the SelectedPath property of the FolderBrowserDialog. Next, you should use the classes from System.IO namespace to get a DirectoryInfo instance and call GetFiles() to get all the files. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dialog As FolderBrowserDialog = New FolderBrowserDialog() If dialog.ShowDi ...Show All
Visual C++ How to Create a new GUID
Hi All, I am developing in unmanaged C++, ATL, Win32. The .Net Framework has a function to get a new GUID. How do I create a new GUID without using .Net function call Thanks Thanks Daamer, CoCreateGuid is not exactly what I was looking for, but it leads me to UuidCreate(), which is exactly what I was looking for. Best regards. ...Show All
Visual Studio debug XSLT - how can I specify an xsl:param to the stylesheet?
I have a stylesheet level xsl:param that I want to pass in using IXSLProcessor.addParameter. I seem to have passed it in OK when run from code, but I want to see what happens in the debugger as all is not well. How do I pass in the param to the stylesheet whilst running in the xlst debugger This is possible. XSLT Debugger uses XslCompiledTransform -- managed implementation of XSLT processor. IXSLProcessor is MSXML interface and you can't pass it to XslCompiledTransform. XslCompiledTransform use XsltArgumentList to pass parameters to transform: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemxmlxslxsltargumentlistclasstopic.asp To do this you need create XslCompile ...Show All
SQL Server Problems with performance when programmatically printing large amounts of pages
We are using VB.NET 2005 to develop a WinForms application that uses SQL Server 2005 Reporting Services to produce reports. Originally we tried using code found on Bryan's WebLog, http://blogs.msdn.com/bryanke/articles/71491.aspx , but found that for reports of 300 pages it was taking about 2 minutes to render each page. When using RenderStream to render idividual pages, reports of about 20 pages printed without a problem, but for reports of 300 pages we recieved the follwoing error: "The stream cannot be found. The stream identifier that is provided to an operation cannot be located in the report server database." Is there some cache or something that we should be using Any ideas appreciated. -- Leah The ...Show All
SQL Server pk constraint enforcement using SSIS to import data
Note: I'm running a bottom up design on this project as I won't know what data I'm really working with until I can get it imported and analyze it. Also, I'm not a DBA or developer, so please be gentle... I am importing 30k+ rows using SSIS (OLEDB -DB2- source to OleDB -2k5- destination). The import works fine, but I just realized that I need to set up a pk on the row emp_ids. The problem is that in the DB2 source, the emp_ids were removed (set to whitespace, but not null). So, I can't just uncheck the 'keep nulls' option and import the data. Any suggestions or links (using SSIS) on how to identify the rows where emp_id = "whitespaces" and 1) either keep them from being imported, or 2) remove them afterwards (I suppo ...Show All
Visual Studio XSLT Debugging
I'm having problems debugging XSLT in Visual Studio 2005. When I click on the "Debug XSLT" button, I get this error: TypeLoadException was unhandled. Method 'Execute' in type 'Microsoft.Xsl.XslPlugin' from assembly 'Microsoft.XslDebugProxy, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation. It does this no matter what kind of xsl file I have specified for the transform, and no matter what xml files I have specified as the input and output. Also, I opened up my XSL and XML files in another editor and the transform worked just fine. Has anyone else had this problem Could this be a problem with having the latest .NET Framework 3.0 installed Or Visual Studio 2005 SP1 Here is my information: Mic ...Show All
Visual Basic Two-pronged Question
Hi, I'm fairly new to VB and learned on VB 2003. I just upgraded to VBE 2005. I'm trying to make a multiple document reader and modifier. My questions are: 1) To be able to view the most documents, is it better to use a Rich Text Box or something else. 2) Is there any information floating around out there on making document readers I'm trying to be able to read MS Word documents, Works documents, Text files, Rich Text files, and an AutoCAD lisp file(its basically a text file). If anyone can point me in the right direction it would be appreciated. Thanks in advance for the replies. I would like to be able to open say a MS Word document and read it without all of the squiggly lines under the words from the spell ...Show All
Visual Studio Cant find the WMP/VLC ActiveX control in the toolbox
I have tried to load the dll- files for both windows media player and VLC ActiveX control but the only thing I get is an unuseable grey icon for the wmp/vlc- control. Are there any steps that i have forgot I use Visual Studio 2005 and have C# as default language and devoloping in asp.net. I have the latest windows media player version downloaded and installet wmp SDK 10 as well. please help! ...Show All
Microsoft ISV Community Center Forums Using Proper function to Format Worksheet
Is there a way to use the "Proper" function to format an entire worksheet. I want to convert a mainframe download in all caps to the "Proper" method (i.e. JAMES BROWN -> James Brown). I assume I will need to write a macro using VBA. Does anyone have any thoughts on how this is done Thanks! Dim cc As Variant For Each cc In Sheet1.UsedRange.Cells cc.Value = Application.WorksheetFunction.Proper(cc.Value) Next cc ...Show All
Software Development for Windows Vista Host WF in Client applcation
Is it practical the host WF in Client appliaction for ad hoc changes Lets say my client application has its own business to do. but its behavior can be change at runtime by some sort of controller. can i host WF that listen to that change event and make the changes on the fly not sure if this is overkill or misuse of WF anyone can advice me that what is cost of hosting a WF Thanks advice. Thanks for the answer. I was actualy asking how expensive to host WF in my client application. in another word, what is the best and worse case to do that. as i know, WF is good for long running activies. but in my case, i only have one or two activies in the WF and they do nothing but listen to changes ...Show All
Visual Studio Team System capture screen shots for test results?
Our QA team has always insisted that we capture screen shots when performing our test cases. I am wondering if this practice is something atypical or not. I personally detest having to do this mundane and brainless act. Hi Jason, I'm not sure if you're asking about taking screen shots during a test (if it fails, for example), or for manual testing; anyway, either of these scenarios I'm sure that it is not atypical and many teams do it. I understand that sometimes it might be frustrating, but some people think it is really helpful. I guess it's a matter of perspectives. Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
Visual Studio Express Editions How to Make an explorer window to view a folder the user selects?
How can I make a explorer window in my program to view the selected folder by the user And with that, what code can I use to change what folder is viewed in that explorer window Thanks (Im New To VS) Thank you. Im glad you didnt shoot some code out at me. What im making is basicly a download explorer. It will show all the contents of a folder, specified by the user, to show the contents of a folder, with their downloads in it. All I need is it to show the filename, and icon. Thats it. Im sure this wont be to hard. Oh, and one more thing. Im gonnaneed a code that will allow a user to select what folder it will display.... I want them to choose that in a toolbar at the top, so all i need is a code that if t ...Show All
Visual Studio Tools for Office Problems creating the install package
Hi, i've managed to create the add-in that i want and i can test it on my development machine and it works fine and integrates with other projects well and all is good with the world on that front. however, when i try to build the setup project that visual studio creates for me the compiler tells me that the build has failed and gives me no errors descriptions for some reason. just says failed and gives no reasons! so i had no idea in which direction to look about solving the problem and i've searched the net up and down trying to find something but i just can't get it. i'm sure i'm doing something silly but i can't for the life of me see it. i saw an article about the whole trust and security thing and i've implemented that into my ...Show All
