Will George's Q&A profile
Community Chat I lost My Pictures
Hi there, I wonder if anyone is kind enough to lend me a hand. When I was rearranging My Documents, I carelessly deleted the My Pictures folder. Since then the My Documents folder has no more the My Pictures folder. I wonder how can I do to regain the My Pictures folder in the My Documents folder. Many thanks Michael duck thing wrote: Cool idea Neat new technology Great find on the Net Share it and discuss it here! thanks Michael this sounds like a great idea/technology/find on the Net. I accidentally deleted my head from my butt ... does anyone know where I can now find it Norton Undelete didn't do the trick ... but it DID leave me ...Show All
SQL Server how we get the text() value
how we get the text() value. your always give half answer, ---------------------------------------------------------------------------------------------------- Youe Solution declare @query varchar(8000) select @query = 'select month ' + ( SELECT distinct ',SUM(CASE WHEN Status = ''' + status + ''' THEN Count END) AS [' + status + ']' AS [text()] FROM sometable s FOR XML PATH('') ) + ' from SomeTable group by month' select @query exec (@query) It looks like you are just doing a FOR XML query, so you dont need to use the XQuery text() operator. You should be able to use SQL's CAST/CONVERT operators: http://msdn2.microsoft.com/en-us/library/ms187928.aspx ...Show All
Windows Forms DataGridView - LastDisplayScrollingRowIndex ?
Hi To get the first displayed row index you use dgv.FirstDisplayedScrollingRowIndex. But how about when you want to get the last displayed one I want to have a certain row displayed, if it is NOT already displayed: if (rowIndex < dgv.FirstDisplayedScrollingRowIndex || rowIndex > dgv.LastDisplayedScrollingRowIndex) dgv.FirstDisplayedScrollingRowIndex = rowIndex; Kind Regards It worked perfectly, thanks! Isn't this the same intRows = dataGridView1.Rows.GetRowCount(DataGridViewElementStates.Displayed); intBottom = intRows + intTop - 1; I'm just curious why you counted the columns and cells :) Kind Regards ...Show All
Visual C# How do I stop running a function?
Hello, I need to know how I can stop running a function in the middle of running it. I cannot give any real coding examples but, I can get a structural example and show what I mean. private void TestFunc(string a, string b) { while(a != b) { try { // Code that should run like normal. } catch(Exception ex) { // If the code gets here I should stop the entire function right away! (TestFunc) } } } If the code gets to the catch I have to stop executing the function right away and run another function (which is handled elsewhere). This is a very newbie question but, I've not had to do this yet. Thanks for any help. Quilnux You can return fro ...Show All
SQL Server SSAS and Excel 2007: Server Side Formatting vs Conditional Formatting
I have some server formatting on a measure so as to be able to flag the presence of certain numbers at a lower level for the data. ie: I want to flag a cell if any of the DESCENDENTS is greater than a certain value. I have done this and it works in the OWC browser. I can get everthing to work in Excel 2007 except this.. Excel 2007 doesn't seem to support server side formatting. Is this true I don't think I can acheive this using Conditional formatting.. any ideas anyone Make sure that the connection properties for the SSAS connection from inside Excel 2007 have server-side formatting enabled... In Excel 2007, when on a pivot table that was created from an SSAS 2005 cube, the PivotTable Tools part ...Show All
Microsoft ISV Community Center Forums Word: Normal.dot template menu bar
I have programmatically modified the Normal.dot menubar (adding more dummy options), and I want to get rid of all of them, permanently, to return to the original state and appearance of Normal. dot.... How can I achieve that, please thanks Per the engineer: Please try the following steps to locate the Normal.dot : Open Microsoft Word Choose the menu “Tools” and then “Options” In the “Options” window, choose the “File Locations” tab In the list called “File Types” – select “User Templates” and click the button “Modify” The “Modify Location” dialog box would come up. Click on the down-arrow besides the “Look-in” Combobox to know the folder where the Normal.dot and other user templates are stored. ...Show All
Visual Studio Express Editions radio box text
I have fourRadioButtons on a form. I want to assign a different text value to each (based on the contents of a picturebox), but I don't know how to. Well you simply set the .Text property of them. Example: Me.theRadioButton1.Text = "new text" Me.theRadioButton2.Text = "new text" .. .. however you need to determine this "content" shown in the picturebox in some way. Perhaps by the Image location/file path of the image ...Show All
Visual Studio Team System Nothing happens when pressing the Report Builder button.
When I press the Report Builder button on the report site homepage, nothing happens. I can see that IE is trying to open reportbuilder.application on a the report server, but I do not see any dialog requesting me to allow the application to run. When I log in on another PC with the same credentials I can create reports using Report Builder. These are the details I get when running the application directly from the server. PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : fi ...Show All
Software Development for Windows Vista CARDSPACE ISSUE WITH JULY CTP & IE 7.0 Beta 3
I have hosted web application supporing "cardspace" locally on machine having july ctp & ie 7.0 beta 3 (IE: 7.0 v7.0.5450.4 ). on WIN 2003 & iis 6.0. The problem I am facing here is that during Login Process my web application does not popup the CARDSPACE selection window(Code for popup and displaying CARDSPACE is correct). I am able to access http://sandbox.netfx3.com/ and able to sign in using CARDSPACE.( here windows CARDSPACE is automatically popup). I am guessing the problem here is with my installation ....... or Configuration. for hosting web application having "CARD SPACE" facility required anything other than july ctp, ie 7.0 beta 3 or any configuration should be changed for IIS gu ...Show All
Visual Studio 2008 (Pre-release) DataBound TreeViewItem
I have some troubles when I'm binding a TreeViewItem. I can't retreive the TreeViewItem from the ItemContainerGenerator . Here is a simple test case: <TreeView x:Name="tv"> <TreeViewItem x:Name="tvi" Header="RootNode" ItemsSource="{Binding ElementName=t, Path=Col}"> </TreeViewItem> </TreeView> TreeViewItem tvi0 = (TreeViewItem)tvi.ItemContainerGenerator.ContainerFromIndex(0); //tvi0 is null !!! but this one is working <TreeView x:Name="tv" ItemsSource="{Binding ElementName=t, Path=Col}"> </TreeView> TreeViewItem tvi0 = (TreeViewItem)tv.ItemContainerGenerator.ContainerFromIndex(0); // ok Does anyone know a workaround I want to use bin ...Show All
SQL Server Checking Job Status using T-SQL
Hi. How can i check the job status using SQL Query I tryto change the SP_HELP_JOB but its too complicated, Is there any other method so i can insert all things into temp table and select current_status from the temp table. ...Show All
Visual C++ Make drive mapped to USB mass storage device read only
Hi I need to make the drive that is mapped to USB mass storage device to read only. I spent hours together to have this done, but in vain. The aim is to make these removable drives read only once they are plugged in the machine, so, files from fixed drives cannot be shipped outside. I need sample/examples in VC++. Thanks in advance. Thanks. I'll pass my program only the drive letter, it could be 'C' drive, or another drive, say 'G' drive mapped to removable USB thumb drive. The program should make the drive read only. What appropriate APIs should be invoked to do that I need pseudocode atleast. I have tried applying appropriate SD that has only requried ACL with specific ACE(s) with specific access rights masks. T ...Show All
Windows Live Developer Forums User Collection
I am starting to lose my mind here! I am developing my first third-party game for the Windows Live Messenger and I can't seem to get the example scripts to work. This is wat my XML looks like: < xml version="1.0" > <Entry> <EntryID>7</EntryID> <Error /> <Locale>en-us</Locale> <Kids>1</Kids> <Page>1</Page> <Category>50</Category> <Sequence>10</Sequence> <Name><my game name></Name> <Description><my description></Description> <URL><working link></URL> <IconURL /> <Type>Dir</Type> <Height& ...Show All
Visual Studio Express Editions Visual Basic Problems Using DirectX 8.0
ok, What I really would like is to download visual basic 6.0, but I cant find anywhere to do that.. My problem with visual Basic express edition, is I cant seem to get my reference to Directx 8 to work, I have reinstalled directx 8 and VB but it still wont work for me, any ideas> I am programming in BASIC and am very new at it... if anybody could help me I'd be very thankfull, you can contact me by emailing me at Lukeskiwalker@bellsouth.net , or posting here... Thank you very much, Wesly Are you typing the fully qualified typename when your typing them in If you added a reference and you havent put an imports statement in then you will have to type a fully qualified typename. If ...Show All
Visual Basic search string and return the following six characters.
How would I best click a button and display the six characters that follow a specific part in a string. i would like to display in a label. for example search the above state ment for "button and " then return "display" to a label in the form. Thanks in advance!! I trying to convert a string into a double, can anyone help Dim number As String = myString.Substring(myString.IndexOf( "ET: </small><big><b>" ) + 20) number = Quote.Remove(Quote.IndexOf( "." ) + 3) Dim Open As String = myString.Substring(myString.IndexOf( "Open:</td><td class=""yfnc_tabledata1"">" ) + 38) ...Show All
