Dietz's Q&A profile
.NET Development Attributes and inheritance on fields/properties/methods
Hi there! I'm trying to work out how (if at all) attributes are inherited on overriden fields properties and methods. According to this msdn page , they are inherited, but how do you retrieve these attributes Here's some code I'm testing with... Hi Michael, thanks for your response. I think my issue is in the difference not being documented, as I would expect these to descend through the inheritance chain in the same way given the inherit argument, but as I've discovered and you've confirmed, they don't. In my opinion it's fair enough that the PropertyInfo.GetCustomAttributes method returns only the attributes declared directly on that instance of the PropertyInfo, but only if the Type.GetProperty method only returns properties actually d ...Show All
Visual Studio Express Editions Check control type
Is there a way to use switch case instead of If else to check the type of controls passed ie Button,CheckBox...etc..thanks Regards Alu ...Show All
Visual Basic Form1.Designer.Vb or Form1.Vb??
Dear folks, I’ve got a group of VB projects in my Solution Explorer. One is a Windows Service project, other a Application Console and the last one is a Windows Applicaton. Fine. When I take Windows Application project and add a new Windows Form I see Form2.Vb and nothing else. As usual. But I’ve added MSDVideo project sample and I see now how the ones VB forms own when you expand a “xxxxxdesigner.VB“ I mean, for example if add in that project a new form named Form4 I’ll obtain a couple of references: Form4.Vb-> Form4.Designer.Vb I don’t get the point at all how do the same in the other projects. I don’t mind in the slightest but I feel curiosity for this behaviour. Why, I wonder, a t the end of the d ...Show All
Visual Studio Team System Static Data Management
Hello, This is probably a stupid question, but I'm starting to play around with Data Generation scripts for unit tests in my database project, and I have a query about what I would call static or system data. For example, the data generation scripts take care of user data, but what about tables of types or the equavalent of enums for instance, a UserType table which contained data such as: UserTypeId | Description ---------------------------------- 1 | Standard User 2 | System administrator 3 | Editor Or similar The IDs would have to stay constant thoughout the system, so either I create a deployment script that creates the data or use the data generation tools. If I use a deployment script, will (1) the data ...Show All
Community Chat I can't believe most Windows users don't know how to use toolbars, OMG.
This is most irritating. Almost all of Windows users in my company don't know how toolbar works. They don't know they can enable toolbar, take out toolbar, customize toolbar, and not even the simplest of all, move toolbar around. Toolbar is so simple, standard, and flexible. And yet, they don't know how to use it. And now, I think that's the main reason why IE7 doesn't support moveable toolbar, and that pisses me off even more. Argh. There are people using computers everyday that are unaware of some of the most basic computer functions. I went into a staffing company where their own secretarial staff were unable to pass the secretarial testing they required to place secretaries in other businesses. The tes ...Show All
SQL Server Where does the query run?
Sorry, if this is in the wrong place!! If I'm using Query Analyzer on my local machine (XP) to connect to and run a query on a remote server (2003Std, SQL2000) which machine does the processing I am under the impression the server runs the query and send the results to the local machine, is that correct Thanks! Taitt wrote: Passthrough Query passthrough is a query in sql server that queries another database source probabaly another sql server, heterogeneous data source or oracle ...Show All
.NET Development Windows Service
Hello all, I am working on a little tool that will send a mail containing a generated XML file. When I add the following code in a regular console application it works fine, but when I try to make it a windows service it just won't work.. well, at least i don't get any mail from it! Here's the code: (Please tell me if you see anything wrong with it, it's my first go at a service) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.ServiceProcess; using System.Text; using System.Xml; using System.IO; using System.Timers; namespace XmltoMailService { public partial class Service1 : ServiceBas ...Show All
Visual C++ Hello World code compiles succesfully but doesn't run
I will apreciate if you can help me with my following trouble as I'm trying to find a solution for the last 2-3 days. I've got a simple hello world code (see below) and I'm trying to build an executable. For compiling and linking I'm using "cl -GX hellow.cpp" and the operation completes succesfully without errors. hellow.cpp: #include <iostream> using namespace std; int main() { cout << "hello world\n" ; return 0; } However, when I execute the derived executable the "hello world" text isn't displayed. Any clues why Note: I'm using Visual Studion 2003 .NET and the compiler is ver. 13.10.3077 for 80x86. Also, I've tested the code on another PC with the same software and works like a swe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The values used in the attempt to create the GraphicsDevice were invalid.
Is this because my graphic card does not support shader model 2 I didn't even know of this requirement till I saw it on the readme file. Time to change my geforce4 I tried that, but I continue to get the same error. I'm just trying to build the basic Windows Game (XNA) project (from File->New). The relevant (I think) code looks like this: private void InitializeComponent() { this .graphics = new Microsoft.Xna.Framework.Components. GraphicsComponent (); this .graphics.AllowMultiSampling = false ; this .GameComponents.Add( this .graphics); } There's no WindowsGame_Starting function in this example. Any suggestions AG ...Show All
.NET Development .NET Framwork 3.0
After I install .NET Framework 3.0 update from MS site, I am unable to open my McAfee security center. I can’t even uninstall it from Control Panel (nothing happens when click change/remove button). Anyone knows why TX After a series of trials and errors, it is NOT the .NET Framework 3.0 update that causes the problem, it is the Root Certificate update for IE 7 that disables the McAfee Security Center and blocks internet access. Don’t download the Root Certificate update for now. ...Show All
Visual Studio Express Editions Benefit Portal not available
I been waiting for the benefit portal for C# and C++ Express but i only get page not available all the time. And i been waiting for like almost two weeks now, but i only get this page error. Yea, I just registered and I can't access the benefits either. I get the same error. I hope it's just a delay in being able to access them and not something more devious at work here. ...Show All
SQL Server SQL Express 2005 installation fails on all of our PCs
The installation fails and crashes with "Error 110", while attempting to install the SQL Native Client... then crashes (DrWatson). This happens on every OS and test machines that we have within our company... flavors of W2K and WXP, all with .Net Framework 2.0. If the SQL Native Client exists, the installation continues without error. If SQLEXPR32.EXE is run directly from the command line, the installation will succeed. If SQLEXPR32.EXE is called from a Windows Installer Custom Action type 50, it will always fail. This is the method we used to successfully install MSDE previously. Our command line is: /qb ADDLOCAL=SQL_Engine,SQL_Data_Files SAPWD=password1 SECURITYMODE=SQL DISABLENETWORKPROTOCOLS=2 INSTANCENAME=Instanc ...Show All
SQL Server Connection Issues To Report Services
Hello all, I just installed the SQL 2k5 standard suite of services on a w2k3 enterprise edition server. All went well except for the connection to the reporting server. I get the error below. "No connection could be made because the target machine actively refused it" I can't seem to find any information on this error and have no clue where to even start. I've done 10+ installations of this software on various machines and have not encountered this error on any of them. I have uninstalled, then reinstalled the reporting services and still no solution. All connection attempts are being made on the actual server, not from a desktop. sp1 for sql 2k5 is also installed, if that helps. Windows Firewall is off. What w ...Show All
SQL Server Make Connection to SOAP endpoint without integrated login?
I have a endpoint on our SQL Server and I've written a test .Net app to access it and it all works great. It uses the Integrated Login for Authentication. My project in the end will have connections made to the endpoint via some custom code on a Non Windows/Linux platform. My concern is that there is no Authentication method that I can use from this client. Integrated is out since it not something you log into. SSL is out since there is no Cert store. Isn't there a way to use the SQL Authentication in a Mixed mode SQL Authentication install What are my other options I need to be able to get data from our SQL server from this custom platform. We looked into using TDS protocol, but would rather not have to license it and develop a c ...Show All
Windows Forms MDI Client should manually register in menu without beeing instantiated
I build an MDI Application. Each different kind of MDI Child should be able to selfregister in a global menu bevor a concret Instance is created. Is this possible, and how. The best form me would be a base class for all MDI Childs where this functionality is covered. I am looking forward for your help. Thanks. I see what you want to do. While the typical approach to this is to just hardcode the list of available MDI forms, you want a more dynamic approach - you want your program to populate the menu with possible MDI children at runtime. Do I have it about right It sounds to me like what you're looking for is a plugin-based approach, or, if you'll only ever be using the MDI children you build into your o ...Show All
