vim.au's Q&A profile
Visual C# Recursive call?
Hello, I studied this source on indexing public Employee this[string index] { get { if (index.Length == 0) { // handle bad index } return this[FindEmployee(index)]; // 'FindEmployee' returning an int } } I created my own equally look-alike function but if the 'return this...' is executed the get property is again accesses causing recursive calls of my getter. Is that correct (offtopic: by the way, how do I mark code as code I don't see any button or indicator to do so...) Regards, Henk Are you having an internal list that holds the employees If that is true you need to return the item at the index of that list. Your current call is callin ...Show All
Internet Explorer Development Hide address bar IE7
Hi Is there a way to hide the address bar completely, without using the Kiosk mode I work at a library and in IE6 we have the catalogue running without the address bar to stop students typing in the location they want to go to, but this doesn't work in version 7. Any ideas Thanks Ian Hi! In order to hide the Internet Explorer Address Bar, create the following registry key : HKCU\Software\Policies\Microsoft\Internet Explorer\Toolbars\Restrictions\ Then set the NoNavBar DWORD value to 0x00000001. It's that easy Ben ...Show All
Visual Studio Express Editions Currently Playing Media
Hi, I'm making a utility that needs to monitor when the audio changes that you are listening to in Media Player, is there anyway to do this What I want is an effect simular to the Media Information option in messenger, where Media Information updates as your song changes, etc. Any thoughts I would be gratefull, thankyou. PsychUK wrote: It's all very complicated, it's a shame the media information doesnt get written to the registry. It might make your task easier, but it would be a malware author's dream. The potential to create and publish malformed media streams whose data could be written to the registry by WMP itself is probably a can of worms better left closed. ...Show All
Windows Forms multiline problem
i have likes this equation; "label1.text = textbox.text" when my users click my button my form get the index of textbox to label but it arrange auto size for label and enlarge the width of label ;;; but i want this, when text is reached to 10 letter so text must continue to new line; summary i need multiline property in label; is it posssible and if it is yes how can anyone help to me; your sincerely; you do not tell me that you use web forms my answer about winforms so i look for it again ...Show All
SQL Server Clustering
Hi, Where can I post issues with SQL 2005 clustering. Is there any prereq that needs to be followed before installing SQL 2005 on a windows cluster Thanks Good Morning I try to install Sql 2005 Cluster, but this message appear at the end of bad instalation: Microsoft SQL Server 2005 9.00.1399.06 ============================== OS Version : Microsoft Windows Server 2003 family, Enterprise Edition Service Pack 2 (Build 3790) Time : Thu Oct 25 09:34:23 2007 Task did not appear to start on machine: \\MACHINENAME : 267013 I share my CDROM drive and i make a sucesfull install. Thanks ALLAN HIRT Luis F. Rosa ...Show All
SQL Server Mix Relative and strict dates
I am trying to write a report where I can have a drop down with values like yesterday,today,lastweek. But I also want the user to be able to select a specific range, say 7/1/2006 to 7/5/2006. Also why can't i update the value of a parameter through to an expression Like set the value to =Today(). It throws an error about the type. Can someone point me in the right direction here Expressions are compiled at publish-time and cannot be changed without re-publishing the report. This re-publishing can be done programmatically, but I think there are better alternatives. What are you looking to accomplish with changing the expression Ian ...Show All
.NET Development Question about DataTable Constraints
It seems the only constraints you can add to a DataTable are UniqueConstraints and ForeignKeyConstraints. I would like to see a CheckConstraint such as column value < x or > 0 or <> 0…. Is this possible with DataTables There are only UniqueConstraints and ForeignKeyConstraints for a DataTable, but you can hook into the RowChanging and ColumnChanging events of the DataTable and check for legitimate column values there. Regards, Dave ...Show All
SQL Server Framework 2.0 changes - TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.
If you connect to a server and open a query in SQL Managment studio (2005) and looses connection and then regain the connection, when you try to run the query it gives me a "TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host." This happens against both 2005 and 2000 servers. If I re-run the query it works. However, this happens in our VB.NET app as well for clients with Wireless connections. So, something has changed in Framework 2.0 regarding this, does anyone know how to tell the client to not throw this error and just try connecting the server instead which will work If I remember correctly, the same procedure should work for RTM bits. Is it not workin ...Show All
SQL Server Parse dataset in report
I am using a "jump to report" that accepts multivalue parameters for fiscal periods. It works fine, returning the correct data. However, I want to add the chosen fiscal periods to the report header in a textbox. When I use =Join(Parameters!DATEfiscalperiod.Value, ", " ) the results in the textbox show as: [DATE].[fiscal_period].&[5], [DATE].[fiscal_period].& When using:: =Parameters!DATEfiscalperiod.Value results in [ rsInvalidExpressionDataType] The Value expression used in textbox ‘textbox5’ returned a data type that is not valid. Is there a way to parse the dataset to only return "5, 6" in a string TIA ...Show All
SQL Server Visual Studio .NET 2005 includes SQL Server 2005
Visual Studio .NET 2005 includes SQL Server 2005 May I ask you a question Is the SQL Server 2005 a fully SQL Server that I can use like SQL Server 2000 Thanks for your responses :-) Thats a thing of definition :-) VS 2005 comes with SQL Server Express which can be also used for other applications, it sure has limitations which can be found here: http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Multiple grouping and blank pages
I have a report with 2 types of grouping. The first is monthly and the second is basically a grand total. I want to have the report with 1 page per month with the grand total on the last page. Everything is in one table object, with two groups in the table footer. The problem that I have is that if I put "Page Break After" on my Monthly grouping the total is going to end up on a different page at the end. If I put "Page Break Before" I get a blank page at the start. Anyone got a idea of how to get myself out of this Make sure the table starts from the top of the report, i.e. don't leave any empty space before the table. Then you shouldn't get the blank page. We are working on improv ...Show All
Windows Live Developer Forums Can not AddAds
Hi Everyone, I am trying to add an ad over nusoap throught MSN adcenter API. I am using the following method : CampaignManagement.AddAds The example is visible here : https://adcenterapi.microsoft.com/v3/CampaignManagement/CampaignManagement.asmx op=AddAds I am sending the following envelope : < xml version="1.0" encoding="ISO-8859-1" > <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Header> ...Show All
Software Development for Windows Vista recommend way to do IPC between app and service
Hi guys, until now I've used (unnamed) Pipes to communicate between apps and services. For that to work I used OpenProcess(serviceProcessHandle, PROCESS_DUP_HANDLE), so that I can duplicate the pipe handle from the service to the app. This still works in Vista with UAP turned off - even from a guest account. But as soon as I turn UAP on, OpenProcess fails with "access denied" - even in elevated mode. I guess that's intended So since my old IPC method doesn't work now, anymore, I'd like to know which IPC method Microsoft now recommends to be used for communication between apps and services. Thanks! Thanks, I'll look into this. Last time I checked out named pipes I didn't like them at all for wha ...Show All
Software Development for Windows Vista Reg. Designer re-hosting
Hi, Designer re-hosting examples are good. When I am tring to change the base class of root activity to statemachineworklfow activity through property grid, it is giving throwing propeties dialog with message "Property value is not valid." and error details "The method or operation is not implemented.". Are these examples are for sequentialworkflow If so, how to convert these examples to statemachineworkflow One more issue: When binding properties of one activity to properties of another activity, it is working fine. I want to show this binding through graphical lines between activities. How to get it possible Regards, Chakri. You need to implement the UpdateBaseType method in the M ...Show All
Visual Basic vb code part 2
Hi all, I ported a class from c# to vb, it's bassicly a class for the systray icon with balloontip it compiles and i think the code is correct, but for some reasen i got some problems 1. the std tooptip is truncated eg "hallo" becomes "h" 2. the balloon never shows up when the sub ShowBalloonTip is called I stairing to the code and slowly driving me nuts, i must be overlooking something simple the origional c# code is here I'm ghoing to cut the vb code in peaces en post them for some reason i can not post 'big'messages remco this should be pasted rightuned 'vb code part 1' ''' <summary> ''' Sets focus to your icon ...Show All
