rdx's Q&A profile
Windows Forms Create property Datasource,DisplayMember,ValueMember same Combobox Control
Please help me create property Datasource,DisplayMember,ValueMember same ComboBox form my control. Please help me! I guess I’m still not following... your Control doesn’t have a ComboBox but you want it to be able to access another one If so... simply adding a property like this to your control would simply require the caller setting it. //private reference to ComboBox private ComboBox m_ComboBox; public ComboBox ComboBox { get { return m_ComboBox; } set { m_ComboBox = value ; //Other setup (if needed) ...Show All
Visual Studio 2008 (Pre-release) When and where to set custom IIdentity when implementing custom authentication
Hi - If custom user name/password authentication is being implemented, where is it possible/recommended to set the "PrincipalIdentity" to a custom IIdentity object So far I have custom implementations of ServiceCredentials, UserNameSecurityTokenAuthenticator, UserNameSecurityToken and IAuthorizationPolicy all hooked in and working nicely to verify user credentials against a custom store. I am looking to attach a custom principal object following the example in this thread . However, the object obtained from EvaluationContext.Properties["PrimaryIdentity"] when IAuthorizationPolicy.Evaluate gets called is a GenericIdentity. Where should I (ca ...Show All
SQL Server SA password
Hi expert, I just install SQL server express. Very smooth installation and allow me login into the server by using window authentication. How i want to login as sa. if I using sa as login and SQL Server authentication. I cannot login to ther server. Thanks. Hi, http://support.microsoft.com/default.aspx scid=kb;EN-US;Q285097 HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Software Development for Windows Vista Developing a Distributed Workflow
Hi group members Hope u be doing gr8 with WWF , well did any body try a distibuted (but tightly coupled , as the complete objects/context may also be needed to be passed) Work Flow in WWF . Like couple of activities run on Machine A then Other on Machine B (see figure below ) Machine A Machine B Machine C Acttivity 1   ...Show All
Visual Studio Converting IDTWizard to GAT project and solution templates.
I'm trying to convert our existing project templates into GAT. Unfortunately my GAT doesn't let me do some things and does too many things for me in other cases. First, let's throw away the Visual Studio text replacement stuff everywhere and use the "T3" stuff. I previously complained about this for project items and somebody replied that I might be able to do that in the next release of GAT. Does this also apply to project templates Second, the Action is only ran AFTER the project has been created. There is no way that I can see to get in before the project is built. Third, I can't disable the project Name and Location. My wizard is respon ...Show All
Windows Forms Drop down menu on a button ?
I inherited a windows forms 2003 app which showed the paint tools in a pane, using a toolbar. I continued this approach, but I've been asked by the client one time too many for changes that you just can't do in a toolbar, so I've removed it and added a button for each tool. My problem now is that standard buttons don't seem to offer a drop down menu, only a context menu. Am I right in thinking this If so, what's my best option 1 - an owner drawn combo box 2 - write my own control 3 - trawl the web and assume that someone else must have written this before me Hi cgraus, Thanks for your feedback. Great job that you solv ...Show All
.NET Development App works under ASP.NET dev. server but not under IIS
Bascially my application just reads data off Excel sheet and displays the data on web page. This does work under ASP.NET dev. server but when i try to use IIS (yes i have set it to run that applicaation under 2.0) it throws the following error: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][O ...Show All
Visual Studio Team System Enhanced build features
I'm trying to setup the "out of the box" build environment that Microsoft claims the Foundation Server includes, however I'm obviously running into some problems. First off, I have two virtual pc's. My server is running 2003 w/ sp1, SQL 2005, and Foundation Server, with Active Directory. My client machine is running 2003 w/ sp1 and visual studio (beta 2.050215-4400). I converted my vss database to team foundation server and this entire process seriously took 63 and 1/2 hours! Granted, I had both machines running in virtual pc on the same box (p4 2.4 w/ a gb ram). Does this seem normal After playing with the pro ...Show All
.NET Development error using tableadapter
was looking for a little help on this one i'm doing the tutorial for 05 http://beta.asp.net/guidedtour2/ and i'm on page 14 adding update functionality, the code provided is generating an overload error for the way in which the .Update is being used. Here is the error I'm getting. Error 1 d:\Authors\App_Code\DataAccess.vb(23): error BC30516: Overload resolution failed because no accessible 'Update' accepts this number of arguments. / Has anyone else come accross this or is there a correction out there somewhere that i'm missing I ...Show All
Visual Studio Team System TypeNamesShouldNotMatchNamespaces AKA CA1724
This rule seems overly constraining. With namespaces (and the advent of the global namespace in C#) and some of the names of the nested namespaces in the FX, it seems to me this rule will generate much noise (e.g. the following nested FX namespaces are really general and could apply to many different projects/applications: Common, Services, Collections, Design, Util, Resources, IO, Configuration, Internal). "Design" is a nested framework namespace example where the FX doesn't follow this rule, and seems to actually encourage application-defined nested "Design" namespaces. Comments, opinions Peter, This rule ...Show All
Visual C++ regarding _WIN32_WINNT version in XP
I have a question regarding _WIN32_WINNT. I am using a WinXP machine with both Visual Studio 6.0 and Visual Studio.Net 2003 installed on it. I want to use the flag FlagsEx (member )in structure OPENFILENAME( declared in commdlg.h). But this requires conditional compilation _WIN32_WINNT >=0x0500(in commdlg.h) to be true. Since I am using a XP box so by defualt this should be true .But the structure doesnt include FlagsEx member. I am not able to understand this. Also i have checked my header file that comes with the SDK , there are many files that define _WIN32_WINNT. I want to know shouldnt it be dependent on the Operating system th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Point where a ray intersects a plane
Hi, Im working on getting my 3D model to move around with the mouse on the screen and i have been trying to find out how to get a Vector3 location for where a ray intersects a plane and so far i can find nothing. If anyone can point me in the right direction on how to do this it would be excellent. Thanks for any help, -Dave Heres the current code im using to pick an object... [code] private bool Intersect( Mesh mesh) { Point cursor = this .PointToClient( Cursor .Position); Vector3 near, far; if (cursor.X < 0) cursor.X = pictureBox1.Width; //this.Width; if (cursor.Y < 0) cu ...Show All
Visual Studio Team System Working folder already in use by another workspace on this computer
I am getting this message on a computer on which there are no other workspaces for that computer. In addition, all of the working folders have been deleted for the workspace that I am working in. We do occasionally log into that box with another user name, but there were no workspaces defined under that login either. (Besides, can't we see all the known workspaces if you log into TFS as admin anyway -- BTW: I don't particularly like that "feature" under the standard workspace editing location for admins because its easy to grab the wrong one.) You may want to try running "tf workspaces /server:[ser ...Show All
Smart Device Development Deploying a .net2/sqlce app
Hi! note: new in mobile development but experienced .net developer Can you give me a guidance on what do I need to install in a wm2003 device to deplory a .net 2.0 app which also uses sqlce 2005 Are some specific dll's enough I would like to create a complete CAB with all the necessary files so that end-user can easilly install/uninstall the application. Unfortunately, you can not do that. License does not allow you to break NETCF/SQL Mobile CABs apart and you can not have CAB in a CAB as only one instance of CAB installer is allowed. You can install SQL Mobile, NETCF and your application CABs one by one via AS: http://msdn.mi ...Show All
Visual C# How to prevent a form from being activated/gaining focus.
I'm working on a project where I want to be able to click on a form but not have the form keep focus. Although not what I'm working on at the moment but the Windows On Screen Keyboard is a good example. The OSK when clicked on doesn't take focus, but keeps the focus on the control that had the focus before. It does this but still is able to proccess an onclick event and send the keystroke over to the control that has focus. I'm needing to do something similar. I've tried overriding the onActivate method but it seems by then the form has already taken focus. Any help is appreciated. You might be able to do s ...Show All
