silentC's Q&A profile
Internet Explorer Development using window.open want to get rid of url bar in new window within IE7
Using the window.open method : The line below running in IE6 produces a new window with a only the top title bar and status bar. However in IE7 there is always a address bar just below the title bar. I can't get rid of it. Surely there's a way! . Does this have to do with the anti-phishing filter If so is there a way to know that the client has that turned on so that I can't do a switch for window sizing based on what's going to be shown window.open( "StreamStageDisplay.aspx" , "_blank" , "directories=no, height=800 , left=800, location=no, menubar=no, resizable=yes, scrollbars=no, status=yes, titlebar=no, toolbar=no, top=100 , width=100 ) I found this in the MSDN blogs that perhaps answers the ...Show All
Windows Forms Invalid cross-thread operations and CheckForIllegalCrossThreadCalls=false
I am developing an application in C# .NET2 and I'm finding some issues with cross-thread operations on GUI controls. The controls are a mix of Panel, TextBox and Label and these are all being accessed by threads other than the thread that created the control. Of course, when debugging with Visual Studio 2005 these operations are highlighted by the appearance of InvalidOperationException. I could just switch off these exceptions with CheckForIllegalCrossThreadCalls=false, but that doesn't feel like the right thing to do. Could someone please tell me why cross-thread access of GUI controls can be such a problem Cathy. Hi Cathy! The Control class (and its inherited classes like TextBox or ...Show All
SQL Server Error: 'The DbpropMsmdMDXCompatibility property is not overwritable'
I am getting the error: "XML for Analysis parser: The DbpropMsmdMDXCompatibility property is not overwritable and cannot be assigned a new value." when I try to connect to an AS2005 cube through http using Office 2007. I can connect to the same cube fine with other clients. Any ideas how to approach this issue MDX Compatibility Mode is a session property and cannot be changed from command to command. What you describe here sounds like a bug inside connection pooling in msmdpump.dll - perhaps somebody connected with non-default value for MDX Compatibility Mode, and his connection is being reused for your session. ...Show All
SQL Server How to search for a Stored Procedure?
Hi, Could anybody please tell me how I can search for a stored procedure in SQL Server 2005 I know the name of the stored procedure and I want to find in which database that stored proc is located/stored and I want to see the code of it. (I have all the necessaary previleges.) Please tell me how I can I do this. Thanks in advance. Regards, Ram. Hi, you can check for existance of stored procedure as .. declare @name varchar (100) declare @spname varchar(100) declare cu1 cursor for select name from master..sysdatabases open cu1 fetch next from cu1 into @name while @@fetch_status =0 begin exec ('select * from ' + @name + '..sysobjects where xtype = ''P'' and name = ''' + @spname +'''') if @@rowcount> 0 begin select @name as ...Show All
Game Technologies: DirectX, XNA, XACT, etc. d3d9b Debug Version
I have installed a game that wasn't working properly, after wards it told me i needed to download DirectX SDK but after i used the program the same problems are still occuring. also it said that my d3d9b is a debug verion and will slow my computer down. what can i do for this problem help me please! A respectful game should never ask you to install the DirectX SDK. Please avoid installing the SDK for gaming reasons and contact the game's technical support for a proper resolution to the issue. ...Show All
.NET Development Identifying Subnet Mask
I need to be able to identify the subnet mask that the local computer is on. Thanks Off the top of my head, I don't know where (if any) in the .NET Framework you can get this, but you can always obtain the IP address in question and calculate the subnet. Do an Internet search on "Calculate Subnet Mask" and you can implement a helper class or single method that can accept an IP address string and perform the logic. Good luck! Ethan ...Show All
.NET Development What is the best way to handle null values?
Hi, Just wondering if somebody could point me a link or explain what is the best way to handle null values. What i currently do at the moment I get the data from the database - I loop through it and for each column that allows null I do the following.If the data contains nulls I dont process it. Dataset ds=GetEmployee(id) DataTable=ds.Tables[0], foreach (DataRow myRow in dt.Rows) { if (myRow["Surname"] != System.DBNull.Value) Employee.Surname = Convert.ToString(myRow["Surname"]); if (myRow["Id"] != System.DBNull.Value) Employee.ID= Convert.ToInt32(myRow["ID"]); if (myRow["BirthDate"] != System.DBNull.Value) employeeBirthDate = DateTime.Parse(myrow["B ...Show All
.NET Development XmlNode.ChildNodes[index] bad performance
Hello, I'm using XmlNode.ChildNodes[index] function to access a node by index, and it causes a performance problem. Is there a better way to access a node by index Thanks, I'm using .net framework verion 2.0 and yes, what I need is all types of child nodes, about 10,000 nodes if I do a foreach loop on the nodes it is much faster than a for loop, with access by index. my current solution is to do one foreach loop, initialize an array of nodes, and then when I need a node by index I use the array. I haven't found a different way to do it... ...Show All
SQL Server Express remote connection on a LAN help
I have recently installed SQL Server Express on a desktop machine for a program that we use. I am in need of adding additional machines to gain access to the server for the database. Right now, the program is working on the local machine fine. What do I need to do or enable for access on a local LAN All machines are XP Pro on a workgroup. Also, the software we use has a remote connection manager that requires inputting the server address for the machine. Is it better to use the computer name or IP address, and then what is that format SQL Instance name is 'uesafh' if that helps. Any other information that I can provide, please let me know. Thanks! Ok, thanks for the help so far. I have been reading however, that I need to install S ...Show All
Visual Studio Express Editions Date Formatting
Sorry for the long complicated post!! Basically, I’d like to learn about custom date formats and how to do them, and where to put the code. I would really appreciate an expert’s help to walk me through date formatting. A few weeks ago I posted on this forum about “is the date format dependant on a computers’ locale ” (posted 16 January 2007). I’ve tried very hard to understand and work out the helpful answers given but I’m still confused!!! I’d like to learn how to format a date in different ways – so that the date will always be processed in the format I’ve given to a programme. This is some code by DMan: Dim dti As New Globalization.DateTimeInfo() ‘This sets the short date pattern only…you should be thorough and set all patterns when ...Show All
Visual Studio Express Editions relative path in my c# prog
where/how can i tell my C# program to use -relative path- for all the files that i access from it thanks for your help with this... You can use Application .StartupPath It will return the path of your program. From there you just need to adjust as needed. ...Show All
Visual Basic Setting Authentication to multiple pages
How do one set authentication for mulitple pages for an administrator using Login Function in Vb.net using vb language Is this a Forms project or a web developer project If it's forms, then you can simply maintain a login/authentication variable nd check it with each form (or a variation of such). If it's a web project, please refer to the http://forums.asp.net for answers for such questions. You also don't need to multipost the same question across similar forums. ...Show All
Windows Live Developer Forums Status property on AdCenterCampaign
Hello, When are we going to get the status property on the AdCenterCampaign object I can pause and resume a campaign using the UI. It's very anoying that we can't see this using the API and that we cant pause/resume a campaign. Simulating campaign pausing, by pausing the orders is an ugly hack, when you guys could probably implement campaign pausing/resuming in 15 minutes on your side. Best regards, Peer Jakobsen It would be nice if this worked like Google adwords. Where you can set the status flag of an entity, then all the work is done on the server side. Not requiring us to make a separate web service call to pause the order or campaign or entity. ...Show All
SQL Server 32 bit sql sever to 64 bit sql server deployment
Hi Do we need to perform any special checks when we deploy SQL Server application developed using 32 bit SQL 2005 Edition in 64 bit SQL 2005 Edition To my understanding, 64 bit SQL Server 2005 provides better memory management and provides high performance when compared to 32 bit and it should not be an issue in deploying the application developed in 32 bit SQL Server 2005 in 64 bit environment. Any help/hints on deploying in 64 bit SQL Server (for a product[SPs, TSQL Stmts] developed using 32 bit SQL Server) is appreciated. Thanks Kart There should not be any problem using 32-bit application that connects to 64-bit sqlserver. Sql management tool is 32-bit afterall. The SPs, UDFs, etc. developed o ...Show All
Visual Studio 2008 (Pre-release) TreeListView dosen't work with HierarchicalDataTemplate
Hi everybody, I want to create a TreeListView-control like the "property-tree-explorer" in XAMLPad. So, I started using the TreeListView implementation from the ATC-Team and removed the explicit declarations of TreeListViewItems in the XAML-file. Instead I set the ItemsSource-Property of the control to an oberservable collection (which has an ObservableCollection for second level items in it)and set the CellTemplate of the first column to an HierarchicalDataTemplate. Here's the XAML-code of the TreeListView <l:TreeListView x:Name="TreeListView"> <l:TreeListView.Resources> <HierarchicalDataTemplate x:Key="CellTemplate_Name" DataType="{x:Type l:TestType}" ...Show All
