JohnGrabau's Q&A profile
Software Development for Windows Vista "LoaderLock was detected"
I get this message after closing any VS2005 application in Debug mode.... VS2005 stays in debug mode until I explicitly kill my app. At first, I thought it was only on Avalon apps, but I get it on any regular WinForms app, even ones that I am recompiling on VS2005... Any idea what it means LoaderLock was detected Message: Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or ...Show All
Visual C# UserControl Terminate or Close Event
Does anyone know of an event for a UserControl that fires when the UserControl is closed by the user In VB6 there was a terminate event. In windows forms there is a close event. I haven't been able to find an equivalent. Thanks in advance for you help. Provided you are sure that the Dispose is being called on the user control when it is closed you could listen for occurrences of the Disposed event. Otherwise I’d have to suggest implementing ...Show All
Windows Forms Database question
I am writing a program that will allow you to create new databases on a SQL server. However, I am getting an error that says the database 'MODEL' is being used, and we can't get an exclusive lock on it. I have no problem creating  ...Show All
SQL Server Will PPC 2003 DLL's for SQL CE work on WM5 PPC
Writing an installer to handle switching the DLLs depending on OS version is somewhat of a pain. The SQL CE dlls that we are told to install for PocketPC 2003 and WM5 PPC are different... but I noticed that the 2003 DLLs seam to work fine on a WM5 PPC. Is there a perf hit or some other problems I will run into for doing this that I just haven't hit yet Will this work for any WM5 PPC thanks This might work, b ...Show All
Visual Studio creating my new report (new to crystal report)
I use vb.net and MSsql. 1. In my report's "header" field, i want to display a details of the current user. (the user name is a unique key in db table and the current user name is held in my program: datamoduleUser.userName, i can code a dataset, dataadapter to select the details, just not suer how to connect to crystal report so that the report can display the details) 2. In my report's "details" section, i want to display a details that are ret ...Show All
Smart Device Development ActiveX for PPC 'Hello World'
I'm starting to get desperate on my quest to find a simple, decent "Hello World" example for how to create an ActiveX control that can be hosted in PocketIE. If anyone can point me to some good articles (with source code, preferably) I'd be more than grateful! It looks like the Windows Mobile v5.0 SDK contains a sample for using an ActiveX control on a web page that is opened in Internet Explorer Mobile (which ...Show All
Visual Basic 2 Textfiles in DataSet
Hey there I have a problem: I import 2 textfiles (they are saved in the same folder and TabDelimited) with the Visual Studio 2005 wizard into a DataSet. Now I'd like to do a SQL query which gives me all the records that are in one table but not in the other one. But here I got an error. I tried some ways in query builder but it seems that a query through 2 textfiles isn't possible. When I select a row from only one textfile the ...Show All
Windows Forms Access to some hidden values
The best examples i can think of is the case of Button subclasses. Why would i have to build my own HotTrack system when the core already does it Give us a ReadOnly property for : - Hot state (MouseOver) - Pushed State When i create a U ...Show All
SQL Server After Installed sql express sp1, install sql sp1 error.
setup support flie error. Could you please postthe setup log files http://msdn2.microsoft.com/en-us/library/ms143702.aspx HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server search a database
Hi, All In my trusty VB6, i would use some simple SQL to update a data grid as the user types into a text box, somthing like : Public Sub SalesSearchproductsquery1() Dim andrequired As Integer 'called on the lost focus of the search text boxes 'Build the search critera andrequired = False gsqlstr = "" gsqlstr = "Select * from productstbl " 'Build where only if something has been entered If Len(SerchItemC ...Show All
Visual Studio 2008 (Pre-release) Font Issues February CTP
I am seeing a number of issues with fonts in the February CTP. I cannot set certain font families. For example, I set Microsoft Sans Serif as the FontFamily of a MenuItem but the displayed FontFamily is Tahoma. FontSize is also always 11 no matter what I set. I cannot set the FontWeight and FontStyle properties. For example, in the aforementioned MenuItem the displayed font is always bold. When I set certain font families the display is corrupte ...Show All
.NET Development installtion of .net frame work on win 98
Respected sir, i want to know wheather i can install .Net frame work on win98 SE thank u anamika wrote: sir, as i isatall .netframe work redistributed edition and windows installer 2.0 on my pc.can u pls tell me now how can i run .net apllication on my pc . thank u ...Show All
Visual Studio 2.0 deployment?
It looks like gacutil.exe does not come with the redistributables. Sounds like Microsoft is encouraging me to build a deployment package I’m not familiar with deployment packages so where do I start Not sure what your question is. gacutil.exe comes with the Framework or Windows SDK. If you want to build a deployment package, you can use the setup project in visual studio 2005 ...Show All
Windows Forms Need to enable/disable ToolStripMenuItems when shortcut is activated
I have a common scenario: items with associated shortcuts on a dropdown menu. With the old WinForms menu system, when the user hit a shortcut, the Popup event fired for the dropdown menu and you could enable/disable the items according to current conditions. E.g. if the shortcut's associated item became disabled, the item wouldn't be actioned. This wonderful scheme doesn't work for ToolStripMenuItems, because shortcuts don't seem to fire any ...Show All
Visual C# Defining a DLL entry point in C#? (DLLEXPORT not DLLIMPORT)
I want to call a DLL class library written in C# from unmanaged C++. I saw this example: http://msdn2.microsoft.com/en-us/library/2x8kf7zx.aspx . It works so I tried to transfer it to my files. I got a System.EntryPointNotFoundException. The problem is: How do you define an entry point in a C# DLL The C++ seems to work so the error must be in the C# DLL. hi there, The error that you are getting means that eit ...Show All
