William Bartholomew's Q&A profile
Visual C# MDI and Merging
I have a MDI parent form with a MenuStrip control on it with two Main Menu Items: File and Window ---> Window is setup as the .MdiWindowListItem for the MenuStrip and the MenuStrip is setup as the MDI parent ( MainForm's) MainMenu... Now when I run the application and click the File menu item then New menu item it creates a child form for the MDI parent to hold and when i maximize this child form instead of the min max and close box items merging with the MenuStrip it places it directly above my MenuStrip and I havn't the slightest clue as to what i'm doing wrong!! Could someone please explain how i can get this to merge properly with my MenuStrip -Will, Ok sorry for this post; I guess I had a bad name ...Show All
SQL Server simple DB operations are throwing Native Exception Error - 0xc0000005 - Intermittently
Hi All, We have written a multithreaded application in which we are maintaining separate Database connections for each thread. these connections are opened and closed at the start and exit of the thread. We have observed that even if there is only one thread running ( application thread), execution of simple Select queries some times throws Native exception(Error - 0xc0000005 ). This error comes intermittently. Execution of same query doesn't throw exception. Further investigation by breaking the debug at the time of native exception and then looking into the stack trace shows that native exception has occured at one of the Native API ( CompileQueryPlan() ) which is being called implicitly by the SQL Mobile. Each time when w ...Show All
.NET Development Time scheduling datatype: Schedule, Duration
Hi, one little question here, i can't find it thru the search, might not be using the correct search keys. What datatype should I use to indicate time I mean I want to store 2:00AM, or 5:00PM, just the time, without the date. So it is something like a schedule, a schedule that will runs for multiple days. Secondly, how should I indicate duration Duration like, 30 minutes, 2 hours Since, the unit of measurement is different, be it hour, or minutes; should I change it into the smallest feasible unit of measurement, or should I create a new data structure to store it Is there any ready made data structure in .net Thanks Eugene Generally, the rule of thumb is, if you wish to express a duration, us ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to Launch a XNA game in a new thread ?
Hello, So, no, this thread is not a tutorial on how to do it. And I am a beginner at thread programming. I ll start by explaining why and what I would like to do. So I am planning on creating a game that can be played by multiple persons either on the same machine, or using network. I though that having a thread listening to input events was a good idea. On thread for each input devices (keyboard / mouse / game pad ... ). I also wanted to have a thread that managed rendering. And information sharing was done through a FIFO buffer. External thread are writers, while the receiving thread was the consummer. It would be something like the following: A "device listener thread", lets call it a playerManagement thread (PMT), receive som ...Show All
Visual Studio 2008 (Pre-release) Call Indigo Web Service from IE
Hi, Does anyone know if it is possible to call a method from IE on a self hosted WCF service in the same way it is possible to do using a .asmx service My Indigo service is working nicely I just used to find it great for debugging to be able to call some web serivce methods directly from a browser rather than using debug messages or logging. Thanks, Aaron Hi Aaron, Unfortunately, we don't have this same type of capability in this release of WCF. However, it's a very common customer request and we're working on some new tooling that should help with this scenario. Stay tuned... -steve ...Show All
Visual Studio 2008 (Pre-release) Links in WSDL from WCF service contains local machinename
I am hosting a WCF Service in IIS (on Windows Server 2003). I have no problem making a WCF client and connecting to it. However, I want also to make a client that calls the service via a web service reference. But this does not work because in the WSDL which I access at http://191.139.96.94/MyVirtualDir/MyService.svc wsdl (ip made up) all links like this one <wsdl:import namespace="mynamespace" location="http://machinename/MyVirtualDir/MyService.svc wsdl=wsdl0"/> does not contain the IP but the the local machinename and since I am not on the same domain as the service the links cannot be resolved. How do I prevent this from happening I believe what you want can be achieved by ...Show All
Visual Basic Text is not displaying in my listbox.
I got rid of all my debug errors but it still is not displaying the text into my listbox. I know the text string is getting passed because I placed a msgbox(strText) in the AddListItem Class and it popped up just fine. So why is the text not showing up in the form1 listbox Public Class Form1 Inherits Form Public watchfolder As FileSystemWatcher Delegate Sub AddItemHandler( ByVal strText As String ) (Some code follows... then...) Private Sub logchangeAdd( ByVal source As Object , ByVal e As _ System.IO.FileSystemEventArgs) If e.ChangeType = IO.WatcherChangeTypes.Created Then Dim strText As String = "File " & e.FullPath & " has been created" ...Show All
.NET Development Different ways of using xpath query within C#
I havent used xpath in months (years ) and I was looking at a few examples Uses XPathNavigator and XPathNodeIterator http://www.codeproject.com/soap/myXPath.asp Using SelectSingleNode http://www.mastercsharp.com/article.aspx ArticleID=69&&TopicID=9 Is the 2nd listing the old way of doing it under the 1.1 framework No, XPathNavigator can be implemented over different stores, .NET 1.x and .NET 2.0 have it over XPathDocument, XmlDocument and XmlDataDocument and allow it to be implemented over other stores if someone wants to do it. MSDN has some examples I think e.g. XPathNavigator over .NET objects structures. In .NET 1.x SelectSingleNode is a method around in the .NET DOM implementation (System.Xml.XmlDoc ...Show All
SQL Server How to get Top 3 records in the group level?
Hi all, I have a query which is grouped by a field called R_ID, which gives me a list of records for each R_ID. So here is the thing, I want to get only top 3 records for each R_ID. I tried using 'select top 3....', but the result is not what I wanted. It doesn't consider the grouping. Is there any way to achieve this task Please let me know if some body has any idea. Thx. The answer depends on whether or not you have SQL Server 2005 or SQL Server 2000. If you are using SQL Server 2005 you can use the ROW_NUMBER function. What is also needed is to know what field you are ordering your groups by (to get the top 3). Dave ...Show All
Visual C++ msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin Hi Martin, can you clarify on what you mean when you say, " Are you sure that WinDoctor is right ".... I know its installed correctly, up to date and functioning properly if that's what you meant. ...Show All
Visual Studio Team System Dropdown box value Validation query
Hi, I have a dropdown box box with the following code <select name="ctl00$ContentPlaceHolderBody$DropDownListEventType" onchange="setflag();setTimeout('__doPostBack(\'ctl00$ContentPlaceHolderBody$DropDownListEventType\',\'\')', 0)" id="ctl00_ContentPlaceHolderBody_DropDownListEventType" style="width:250px;"> <option value="15">Assessment: Superday</option> <option value="14">Assessment: Superday1</option> </select> I want to validate whether the dropdown value is "Assessment: Superday". I have entered Form Field Name with "ctl00$ContentPlaceHolderBody$DropDownListEventType" and value with "Assessment ...Show All
SQL Server (URGENT)AMO - create local cub files (.cub)
Hello to all, i build a asp 2.0 app where clients can interact with cubes stored in a SSAS 05, but i'm getting troubles with performance, so i was thinking to offer this information as local cub files, but the only way i know to create this files is using EXCEL, but i wish to do this task with programming code. Is there a way to create local cub files using AMO . I know there is a mdx command that offers the cube creation, but will be much easier and secure if there is an API like AMO or ADOMD that could bring this functionality. Thanx I have the Visual Sctipting Code to create local cubes in batch on the SQL server. The application consists in three DTS packages, one for the schedulling the built local cube, other for the build and ...Show All
SharePoint Products and Technologies No context menu for Reporting Services
I installed the RS add-in on my MOSS site and was able to publish reports to my Report Center site. So far so good. However, the right click context menu for my reports does not show any entries for Reporting Services admin. My MOSS site is AD authenticated and I'm using a domain admin account for all installation and testing. I used Windows Authentication for RS integration. Doing the same on a standalone MOSS server works as expected. What am I missing How do I enable the RS context menus Any pointers This was the steps I use to install: 1) SQL Server 2005 Developer Edition -Mixed security mode -Latin1_GeneralCIAS -D:\SQL Server\ as Data Folder -http://localhost/reports og http://loc ...Show All
Visual Studio Sandcastle Help File Builder 1.2.0.0 Available
The latest update to the Sandcastle Help File Builder is available at http://www.codeproject.com/useritems/SandcastleBuilder.asp v1.2.0.0 - Changes made in this release: A new Prj Summary button appears on the main form in the Assemblies to Document section. It opens a form in which you can enter summary comments that should appear in the root namespaces page of the compiled help file. A new Namespaces button appears on the main form that allows you to specify which assemblies should appear in the help file and the namespace summaries to display in the root namespaces page and on the help page for each namespace. By default, all namespaces in all assemblies are documented with the exception of the global (unnamed) namespace tha ...Show All
Visual Basic Why is this method invisible to Visual Basic
Hi, In a class written in C# I have the following method: public abstract void OnExit(ref object state, object instance, object[] arguments, Type[] genericTypeArguments, Type[] genericMethodArguments, TypedReference returnValue, Exception exception); I want to inherit this class in a VB project and to override this method: Public Overrides Sub OnExit(ByRef state As Object, ByVal instance As Object, ByVal parameters() As Object, ByVal genericTypeArguments() As Type, ByVal genericMethodArguments() As Type, ByVal returnValue As TypedReference, ByVal exception As Exception) However, the compiler complains and writes: error BC30284: sub 'OnExit' cannot be declared 'Overrides' because it does not override a sub in a base c ...Show All
