Jeffrey Becker's Q&A profile
Windows Forms Design-time functionality at run-time
I am trying to find a way to paint a selection border around a control whenever it is active at run-time. I would like the border to be as similar as possible to the selection frame that is displayed around a selected control at design-time. The way I am currently doing this is by hooking the MouseDown event of the control. In&n ...Show All
Windows Forms DockPanel by Weifen Luo
I used DockPanel (DockManager) by Weifen Luo with Framework 1.1. But with Framework 2.0 it doesn't work. Do anybody know any solution Yes, I have! I removed some compile errors, but program doesn't work correctly. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed DirectX in C# Forms - differences between SDK
Hi - this is a repost since my previous html one was garbaged... anyway I've been trying to embed DirectX controls into a C# winforms application. However, there seems to be a major problem getting all the forms controls to paint... I thought it was something I was doing wrong, but then tried using the old Summer 2003 API and it all worked fine Basically, I create a UserControl that handles all my rendering code, then add that to a forms application, which in turn sets up rendering flags and so forthAs an illustration, here's two screenshots (I tried using the img tag but it seems that the forum block it ) http://www.benwalkermusi ...Show All
Windows Forms Building a custom cell/column for the DataGridView
Hey guys, I've been having a lot of fun with the new DataGridView control! Right now, I'm trying to figure out how to build like a custom column/cell type. I need a cell that is sort of like a textbox. I'm bind a guid to it (CustomerID), but I want it to display the customer name. I also want to add some extra funtionality when the user clicks in the cell an modifiers the text. Any ideas where to start here We don't have a sample yet that derives from DataGridViewCell, but the button sample here http://msdn2.microsoft.com/en-us/library/ms171619.aspx is a good start for a sample that doesn't paint regular ...Show All
Smart Device Development Displaying the form on the whole screen
Hi ppl, I want to display the form on the whole screen of the PDA. I mean i want the form to use the space on the top where the clock is and where the Start button is. I don't want the clock and the start button. Is it possbile Awaiting Nabeel yep Public Const SHFS_SHOWTASKBAR As Integer = &H1 Public Const SHFS_SHOWSIPBUTTON As Integer = &H4 Public Const SHFS_SHOWSTARTICON As Integer = &H10 Public Const SHFS_HIDETASKBAR As Integer = &H2 Public Const SHFS_HIDESIPBUTTON As Integer = &H8 Public Const SHFS_HIDESTARTICON As Integer = &H20 Friend Sub MakeNotFullScreen(ByVal frmX ...Show All
.NET Development Thanks and VWD
I am using SQL Express and I do not know how to add images to my database. I've created a dataset and linked it to datalists so everything is perking along except I'm just clueless on the image handling. I create a resx file thinking that would work except I don't know how to coordinate it with the data. In Access it is an easy thing to add an image OLE object to my database which gives me a load of options in reports so you would think that it would handle similarly here, but I'm not making any progress and after a week an half of hunting around I'm hoping someone here will clue me in. Thanks ...Show All
SQL Server SQL Agent Failing when trying to run my SSIS Package
My SQL Agent was working fine. Now when I try to run it, it failes when trying to run my SSIS package. I looked in the logs, and job history, no luck in finding any critical errors. My SSIS package runs fine through VS 2005 in debug mode. Here are the only errors: 01/04/2006 09:53:48,,Warning,[396] An idle CPU condition has not been defined - OnIdle job schedules will have no effect 01/04/2006 09:53:48,,Warning,[260] Unable to start mail session (reason: No mail profile defined) 01/04/2006 09:53:48,,Information,[129] SQLSERVERAGENT starting under Windows NT service control 01/04/2006 09:53:48,,Error,[364] The Messenger s ...Show All
.NET Development occasional "Cannot generate SSPI context"
Can any of you experts help me out on this error “System.Data.SqlClient.SqlException: Cannot generate SSPI context” The weird thing is that this only happens occasionally, about 20 times per day [1] Client side: 1. What is the connection string in you app or DSN (please specify) "server=mydbserver; database=mydatabase; uid=; pwd=; trusted_connection=yes; Max Pool Size=10; Connection Timeout=60; Packet Size=4096; ;" 2. If client fails to connect, what is the client error messages (please specify) Category: 300 Computer Name: KATTEFOT Event Code: 0 Record Number: 54 Source Name: AltInn.eGA Event T ...Show All
Visual Studio Team System FxCopCmd and global suppressions.
I've found some strange behaviour running FxCop from the command line (FxCopCmd.exe) for a project with global suppressions: The global suppressions get ignored after cleaning and rebuilding the solution. Steps to reproduce: (This is with the VS 2005 release candidate.) 1. Launch VS 2005. 2. Create a new C# project (Windows application) named "FxCopCmdTest". Save it to C:\ (for simplicity). 3. Run code analysis on the project. 4. In the Error List there should be 5 warnings. Of these, CA2209, CA2210, and CA1014 do not apply to a source file. Right-click and suppress any of them -- a GlobalSuppressions.cs file should be created. 5. Run cod ...Show All
Visual Studio Express Editions Region
OK..this may be an easy question but I want to know before going any farther in my training. What is a REGION and the purpose of it in coding Thanks, Brian Hi Brian, Region is a graphics programming term used to define an area of the screen. One common use is for "hit testing" - say, for example, you had a form with a picture of a clown face, and you wanted to perform an action when the user clicked on the nose. You would define a Region that matched the size, shape and location of the nose, and then write Event code to handle clicks within that region. For more information, see http://msdn.microsoft.com/li ...Show All
Visual Basic Assembly Info
I have create an attribute class and add this attribute to AssemblyInfo.vb file. This attribute is an array string in Assemblyinfo.vb. In my winform application, how do I get the value of this array string Hello. A lot of this depends on where you're needing to read the attribute from. Is it in the same assembly that you're executing or in a dependency assembly Here is one way to do it if you're just needing to point to an assembly and retrieve the information If I created a project called MyCustomAttributes and within this defined an attribute called ExtraAttribute it might look something like this <AttributeUsage( ...Show All
SQL Server Getting started with SQL Server Mobile
I have recently upgraded to VS 2005, .NET 2.0, and SQL Server 2005 and am trying to upgrade some of my older Pocket PC 2003 apps. I am trying to educate myself but have become a bit confused about how to proceed and was hoping some of the knowledgable people in this group could point me in the right direction. I have developed several data collection applications that used Pocket Access on the device and very easily sychronized with a custom MS Access database via Active Sync. I am slowly coming to the realization that using SQL Server Mobile will NEVER be that easy (which is a shame). My questions are...... 1. If I want to upgrade to SQL Se ...Show All
Software Development for Windows Vista Database maintenance
What are the methods and recommendations re maintenance of the database Mario Since nobody answered I guess the question is too general. What I'm looking for is What are the methods provided to get rid of old tracking data in a production enviornment ...Show All
.NET Development 32-bit .NET and MDAC
I have a 32-bit .NET 2.0 application that uses MDAC 2.8. Does a x64 computer with MDAC 2.8 SP2 have the 32-bit version as well I wouldn't imaginge that a 32-bit program could use the 64-bit MDAC libraries. If not, can it be installed in conjunction with the 64-bit one JR Most of the odbc are only available in 32 bit. Sql server is the only exception that I know of. As long as your application is compiled for the x86 processor it will use the 32 bit drivers. ...Show All
Visual Basic Query editor in VS2K5 / Query editor in SQL2K5
The possibility of executing and editing SQL Code from the VS 2005 IDE is great...having the SQL Project with all our scripts and procedures inside the Solution is awesome...however the Query Editor and the Results Pane fall short compared to the ones inside the SQL 2005 Management Studio..... Is it possible to use the editor in the SQL 2005 Management Studio inside the VS2005 IDE instead of the default one Thanks in advance. Best regards, Alan. Hi, You can also enter the suggestion at this address http://lab.msdn.microsoft.com/productfeedback/default.aspx . It will be treated as a product bug / issue by ...Show All
