PerGeert's Q&A profile
Windows Forms Custom TabControl Designer
I have Inherited form TabControl and added a custom Designer Inherited from ControlDesigner. When TabControl uses this Designer I cannot select the TabControl, in the IDE, by clicking on it. I am monitoring messages, from the Designer, and the Control does not recieve WM_LEFTBUTTON Messages on the main body of the Control. In fact this seems to be a Non&nbs ...Show All
Windows Forms How do I retrieve the pixel position of a selected item in a ListBox?
Hey gang, I'm writing a custom control (my first ever!) which is an advanced ListBox control. You can seed the list items various ways, add, edit or delete items, sort, reset etc. It all works really nicely but now what I want to do is add functionality to pop up a floating textbox directly over the top of the selected ListBox item wh ...Show All
Software Development for Windows Vista Get Workflow Runtime
Is it possible to get WorkflowRuntime in CodeActivity if so, How You cannot get the WorkflowRuntime instance within a code activity. The reason for this is that the workflow instance runs on a separate CPU thread to the WorkflowRuntime instance and it does not include the overhead of being threadsafe. Instead you should think of this as interacting between the workflow and the host and the proper way to do this is through a service. You can use the simple service implementation in HandleExternalEvent and CallExternalMethod or you can write your own service. There are examples in the SDK and in the HO ...Show All
Visual Studio Express Editions Error installing SQL Server 2005 Express
I'm having dificulty installing MS SQL Server 2005 EE onto my XP Pro Machine. I did have the VS2005 Beta2, but i think this was fully removed (Tried using Add/Remove Programs, but had to use Windows Install Cleanup in the end). I've downloaded the executable and whenever i run it i pass the system configuration check 100%. I continue to install using the default options, and the following components install correctly: MSXML6 SQL Setup Support Files SQL Native Client SQL VSS Writer However, the SQL server database services does not install, giving the following error message: TITLE: Microsoft SQL Server 2005 Setup ...Show All
Windows Forms Can I display any text on RowHeaders in the DataGridView?
I want to display time on all RowHeaders of DataGridView, I'm using VS2005. If you have a TemplateField in your GridView you can add a HeaderItem and do something like the following < HeaderTemplate > <% = DateTime .Now.ToString( "hh:mm:ss tt" ) %> </ HeaderTemplate > ...Show All
Windows Forms not able to locate line of code geberating the pb
My class frmacct is a form. Sometimes, I get the error message : 'Object not set to a reference' but the code stops and puts that 'yellow back color' at the begining of my form class: Public Class frmclass So I m don t know how to locate the line that generates the error since the debugger stops at the begining of the form Thanks Hmm, thats a little odd. What language are you using You could try to trap the exception using (debug menu)->Exception and trap the "Common language runtime" exception System.NullReference Exception. Of course you might already be doing this because it should break to the debu ...Show All
Visual C# USB and C#
Are there any libraries or classes that allow C# applications to talk to devices on a the USB (Universal Serial Bus) Read this article and follow some links from it http://msdn.microsoft.com/coding4fun/someassemblyrequired/isthatyou/default.aspx As well you can look at http://www.componentsnotebook.com/notebooks/csharp/deviceio.aspx or http://www.icsharpcode.net/opensource/sharpusblib/ ...Show All
Windows Forms event to handle form selected from taskbar
basically if my user has minimised the form into the taskbar and there is a new row into my datagrid i have the form set to flash using a timer, but i cant work out how to disable the timer when the user opens the form back up from the taskbar. cheers steve j Disable the timer in the forms GotFocus event . timer1.Enable = false; ...Show All
Visual Studio Team System Duplicate Project Names
I am running TFS Beta 3. I have a situation where I have cancelled the creation of a new project (during the phase of it downloading the templates) and now I can't re-create the project with the same name. It says it already exists, although its not available as an Add Existing Project either. Is there anything I can run on the server that will validate all existing project data in the database Regards Graham One option is to try to force deletion of the old project. You'll want to use the TFSDeleteProject executable (used to be "DeleteTeamProject"), and might find the following post helpful: http://f ...Show All
SQL Server SQL Server Express 2005 Install Problem
Hi, I'm trying to install SQL Server 2005 Express Edition and receive the following error. The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine WKSBVN521J Error:2147749891 (0x80041003). Error:2147749891 (0x80041003). I've tried the various batch / command files with no success. Looking at the WMI Control on the General tab in the Computer Management Console it shows the following: Failed to initialize all required WMI classes. Win32_Processor: WMI: Access denied Win32_WMISetting: Successful Security information: Successful Win32_OperatingSystem: WMI: Access denied Is ...Show All
Visual Studio Refactor Encapsulate field repeatedly
Hi. I have an object with more the 100 fields. I wonder if there is a method to automate the process of encapsulating those fields. I'm just too lazy to do "Right-Click -> Refactor -> Encapsulate Field" for 100 times if i select all the fields and do "Encapsulate" then only last selected field is encapsulated. Any suggestions on this Thanks. Hi, This is not supported in the shipped code of Class Designer. However, you can easily add this feature by creating a command yourself through an add-in. You can install the CD Power Toys add-in , create a command and insert the following co ...Show All
SQL Server Free space information in Management Studio
In Enterprise Manager, the taskpad view showed me how much space is available in the data and log files. Is this information available anywhere in SSMS For instance, in one database EM shows me that I have 1200MB free in the data file and 400MB free in the log file. It also says, at the top of the taskpad view, that I have 0 free space in the database - I'm not sure how they relate, but in SSMS the only number that I can see is the 0. It also takes several mouse clicks and scrolling over to see the breakdown of the data and log sizes. OK, further research uncovered the following: http://www.sqlservercen ...Show All
Visual C++ _tmkdir
Can any one tell me if write permissions to the particular directory are sufficient for _tmkdir to create a new sub directory or are any higher permissions required. Thanks, KarthikR Hello KarthikR, The access rights for a directory are assigned by the administrator of the computer and generally should not be reassigned by a program. You'll note that C++ does not provide a way to alter or even read these access control lists. In order to find out what access rights you have for the folder, open up the folder's properties (in Windows Explorer) and choose the security tab, then Advanced. In this UI, the FILE_ADD_SUBDIRECT ...Show All
.NET Development How to Modify Codebase Path for New AppDomain
I would like to know if there is a way to change the probing directory used by the Loader to locate assembly dependencies. What I am interested in is a way to create a new Appdomain, and modify the path used by the loader to locate assembly dependencies (I would be satisfied if I could do this in the default AppDomain). The final result would be an application that hosts an appdomain (named NewAppDomain for the purpose of the illustration). The assemblies loaded in NewAppDomain would have their dependencies searched for in a specified directory, NOT the directory of the hosting application/AppDomain. I understand there may be CAS issu ...Show All
Visual Studio Tools for Office .net COM Add-in for Excel - cannot find Extensibility Projects
Hi I have installed Visual Studio Tools for Microsoft Office after installing vb.net and Microsoft Office 2003 respectively. I cannot find the Extensibility Projects folderin the Other Projects folder. Please would someone help. Thanks Murray Hi Misha Thanks for the last response. The thing is that I want to sell my Add-In to users of Excel 2000 and onward. I would also like to try and target Excel 97 users if possible. So how do I create and Add-In to manipulate my VBA code that can be used in Excel 2000 and Excel 2003 (and at a stretch in Excel 97). It seems that I massive part of my market lies ...Show All
