NickNotYet's Q&A profile
.NET Development Where to store the users?
Hi! I'm building a WinForms (c#) application that will communicate to an SQL server on the same local network. However, the SQL-server will not be part of the same domain as the users (or the users machines). So, I'm a bit unsure where it will be best to store my users 1 - Store them in the Active Directory that the SQL-server belongs to. I guess I can do some kind of authentication from the WinForms app to active directory, but is there some way of doing this without sending the username and password in clear text Guess I'll still have to create SQL-accounts for the users as well, as long as I do not impersonate the application as the windows account Impersonation also seems to need to send the username and password in clear text. 2 ...Show All
SQL Server Changing project schema
In running our automated build procedure, i'm getting the following warning: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. I want to change the template that generates the DTSX project file, but I don't know where to find it. Any thoughts ...Show All
Visual Studio Express Editions Virtual Variable
Hi All, I have these two class class Base { public int number = 1; public override String ToString(){ return number.ToString(); } } class Derived : Base { public new int number = 2; } static void Main(){ Base base = new Base(); Derived derived = new Derived(); Console.WriteLine(base.ToString()); Consolt.WriteLine(derived.ToString()); } I was expecting to print out: 1 2 but I am getting: 1 1 Is there a work around to achieve what I was intended to do Thank you, Riady Hi, fields cannot behave like virtual functions. To get what you want you will need a virtual function GetNumber which you override in Derived. ToString must then use GetNumber and not the field number. -- SvenC ...Show All
Visual Studio Team System Is it possible to have data driven validation rule
I would like to run my datadriven webtest and validate on expected value in one of the fields and I want to add a validation rule that is also data driven. You can use the data drvien values. For example, suppose the data source had these values: Name: DataSource1 Table: Products Column: ProductID Suppose you were using the FindText rule, then you would set the Find Text parameter to {{DataSource1.Products.ProductID}} The {{...}} notation indictates to pull data value from the context. ...Show All
Visual Basic Weird DataGridView Adding Data Error
I'm having a weird problem while using a DataGridView. I'm using a DataGridView to display some information in an list of something called a Flag. Most of the information are String, one column per Data Property. In my program, I've got a button I press to add an element to this list. So it adds a new flag and refreshes the DataGrid and the new Flag appears. Now, here's the problem. If a Flag is added to the list before the DataGrid is first shown, it works fine. BUT, if the list is empty when the DataGrid is shown and I then press the button to add a new flag, I get an IndexOutOfBoundsError when I click on any cell in the DataGrid. It's the most bizarre thing; if I start with a flag in the list before showing the Grid, I can a ...Show All
Windows Forms Doubt regarding DateTimePicker
I have used a DateTimePicker in a windows form. I have also defined its ValueChanged event. Following is the event: private void dateTimePicker1_ValueChanged( object sender, System.EventArgs e) { if (dateTimePicker1.Value > DateTime.Today) { MessageBox.Show("Error"); } } I have many ways to change the date in the DateTimePicker like changing it manually or increasing the year, etc. But when I try to increment the month, using the arrow provided on the DateTimePicker to increment/decrement the month, the event is fired continuously (and not once) and I get the MessageBox recurringly. This is because the month goes on increasing (i.e. if t ...Show All
Visual C# Why is it failed to export template in my VS2005?
Hi,everyone, In my VS2005, it is always failed to export project and item template. Either error messages or '.zip' files are shown out. But the first time I have succeed in exporting C# project. Neither opotion have I changed after that. And in the option page, I have not found the option item for this. Could any one do me a favor Thanks.   ...Show All
.NET Development "Safely Remove Hardware" from my program.
Hello, i'm working on a program that you'r supposed to controll with a remote. One important part of the program is that you should be able to plug in USB-disks and easily move data between computers. But in order to do this without using the mouse I need to know how to make a Safe Removal of the USB-disk so it won't get fried when i pull it out. Is there any easy way to get a list of all removable devices and then safely remove them You don't have anything similar in C# C++ is too advanced Thanks anyway. ...Show All
Visual Studio Express Editions Installer Project
I've read though the VC++ Express help file in order to find out how to create a windows installer file for my application. I found out that I should create a new "setup project". Now, I noticed that there is no option for a "setup project" in the "Create new project" dialog. After some research I found out that it apparently isn't supported in the Express version of VC++. So how would be the best way to deploy my applications (including C/C++ runtimes, .NET Framework, DirectX, etc.) Are there other ways to create a windows installer file Also, it looks like VC# Express has some publishing options, are there equivalents for C++ Thanks, but that was not what I was lookin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Activator.CreateInstance on .Net compact
I've got a bit of code that loads an assembly dynamically and invokes a constructor working fine in PC XNA but I can't find the equivilent under .Net Compact on the 360... PC Assembly assembly = Assembly.LoadFrom(s); Type mainClosure = assembly.GetType(scriptName + ".MainFunction"); LuaClosure cl = (LuaClosure)Activator.CreateInstance(mainClosure, new object[] { L.Globals }); Attempt on 360 Assembly assembly = Assembly.LoadFrom(s); Type mainClosure = assembly.GetType(scriptName + ".MainFunction"); ConstructorInfo ctor = mainClosure.GetConstructor( BindingFlags.Instance | BindingFlags.Public, null, new Type[] { typeof(LuaReference) }, null); LuaClosure cl = (LuaClosure)ctors[0].Invoke(new Object[] { L.Globals }); Which f ...Show All
Visual Studio Team System Get specific version not working after moving code from one team project to another
I am no longer able to perform a "Get specific version" after I moved the code from one team project to another. I can see the history of all the files, but when I try to do a get specific version by date or changeset the "Latest" column in the source control explorer window shows "Not downloaded". This is very curious and alarming. Any help would be most appreciated. If you run get at 38788 or later, you would need to use the new name, either from the command line or in the Source Control Explorer GUI. However, if you want to get a version of the file prior to 38788, you'll need to use the old name. I don't believe you can do that from the GUI in v1. If you use the new name and a version prior to 3878 ...Show All
Windows Live Developer Forums Polygon Layer
How can I create custom polygon layer (e.g. ZIP, Census Tract etc.) in VE Can I fill the polygon with different color to produce thematic map Here you go: http://www.calebthompson.com/projects/gpx2ve/vepolys.htm ...Show All
SQL Server sqlxmlbulkload problem with schema
<xsd:element name="current-conditions" sql:is-constant="1"> <xsd:complexType> <xsd:sequence> <xsd:element name="date" type="xsd:string" sql:mapped="false"/> <xsd:element name="time" type="xsd:string" sql:mapped="false"/> <xsd:element name="reporting-station" sql:relation="weather"> <xsd:complexType> <xsd:sequence> <xsd:element name="city" type="xsd:string" sql:mapped="true"/> <xsd:element name="state" type="xsd:string" sql:mapped="true"/> <xsd:element name="temperature" type="xsd:str ...Show All
SQL Server Identity field property lost after import tables between databases
I have found an issue on sql server 2005 data importing function: For example, I have two databases named DB_A and DB_B. If it has a table named table_a on DB_A with an identity field (say field_a), then after transfer table_a to DB_B by using the 'Import and Export Wizard' of MS SQL Server Management Studio, the identity field of table_a on DB_B is no longer an identity field. i.e. DB_B.table_a.field_a is not an identity field any more. This issue is remain the same as transfering tables from sql server 2000 to 2005, or from sql server 2005 to 2005. Has anyone know how to work around for this problem Thanks in advance. Athens Yan P.S.: I have using sql server 2005 with SP1 applied (9.0.2047). ...Show All
Visual Studio Team System Adding files to source control
I created an empty project for a Project Manager (who has Project Administrator permissions) to add files to Source Control himself. He added source to the first sub-project from Visual Studio successful. However, he can no longer add another sub-project at the same level as the first. When the TFS Administrator added this second sub-project for the Project Manager, the Project Manager still was not able to add file to this second sub-project (even after he was given the Team Foundation Administrator rights temporarily). Then the TFS Administrator added a file to the second sub-project and ask the Project Manager if he was able to check the file out. The answer was "No". Can you tell me what would cause this problem and ...Show All
