Giuseppe Pinna's Q&A profile
.NET Development Inserting a New Record with FormView in ASP.NET 2.0
In the insert mode of form view, the primary key is hidden from the user. In the underlying access database, the primary key is autonumber. Clicking the autogenerated insert button causes the error: "You tried to assign the Null value to a variable that is not a Variant data type." Do you have to programmatically set the unique ID key, and if so how would you do that in Visual Web Developer The form view is linked to an access datasource with ...Show All
SQL Server SQL2005 Database Schema without Assocated Owner?
I was quite happy to see that schema names and database users had finally been separated in SQL 2005 and used it to finally clean up a mish-mash database that hosts a number of tiny unrelated applications. I created a new schema for each little section, and the schemas are all owned by dbo. There is no associated user with the schema. Really it all works great... ...except... from an ADP project in Access! If an object is in the dbo schema, or i ...Show All
Visual C# Why all these get/set-methods instead of public variables?
I've started to use classes to structure up my programs and all tutorials i've read says that i should do like this: class Spelare { float positionX; public Spelare() { positionX = 100f; } public float PosX { get { & ...Show All
Visual Studio Express Editions How to use System.DirectoryServices in visual studio 2003?
Dear friends, I don't know why I cound't use System.DirectoryServices to access Active Directory. When compile, it says " System.DirectoryServices namespace cannot be found". So, how to solve Regards, David As I think System.DirectoryServices classes is for .NET framework version 2.0 only, not for 1.1 (Visual Sudio 2003), so you must upgrade to Visual Sudio 2005 to use them. ...Show All
Windows Forms Masked Edit in TextBox
I need to control de text that insert the user, but a custom mask, it means that is not a date, or the time or something like that, is a name of a file, an url's adress, and things like, that. I have fond a component: Maske ...Show All
SQL Server New RDL Spec differences
Is there somewhere that explains the major differences between the 2003 RDL spec and the new one released in November I will be going through the two specs in detail in January looking at the differences but I was just wondering if there's a quick synopsis out there somewhere. Are there any major differences Darren I guess I'll answer my own post in case anyone else out there is interested. F ...Show All
Software Development for Windows Vista Getting Vista File Open dialog with .NET application
Our application is written in C# 2.0 and using standard file open/save dialogs. In XP, these are pretty basic dialogs, but on Vista they remain the xp-style dialogs and not the Vista-specific open dialog. I've noticed with MFC based applications, if you use the common dialog you can get the Vista specific open dialog when running the same app on Vista. Any idea how we can get the OS-specific open dialog in C# ... if not possible withou ...Show All
Software Development for Windows Vista Vista 5308 Feb CTP installation issues.
Ok, I've come across a few issues when installing the ctp builds for both december and feb. The first issue is this: my system is using a USB keyboard and mouse. Legecy keyboard is enabled in the system bios, but when I boot from cd, and it comes up asking me to "Press any key to boot from cd or dvd" at this point we have no keyboard functionality. To circumvent this issue I have had to plug a ps2 keyboard in and use this to enter my ...Show All
Visual C# how do i prevent "show desktop" or "windows key+m" from minimizing my program?
hi, i don't want my program to be on "TopMost" but i also don't want it to minimize. Never. even if i disable the minimize feature, the program can still be minimized by clicking on the "show desktop" icon or pressing Windows Key+M. I'd like to prevent that. Can someone tell me a possible way to do it btw, the "show desktop" button doesn't trigger the 'resize' or 'changesize' event in the form. Thanks, For the ...Show All
Windows Forms Data Abstractionlayer
Hi , im currently creating an abstraction layer for databindable objects.. its supposed to expose a common interface for all bindable objects. and now i wonder , what types/interfaces would be good to databind currently i have support to bind: DataTable (and dat ...Show All
Visual Studio Team System Adding users/ groups with "/" char in the caption of the name
Hi, I am running Team foundation RTM. When I try to add windows domain users to one of the security groups I get the error: "Team Foundation Server could not resolve the user 'XXXXX/XXXX'. The user or group might be a member of a different domain , or the server might not have access to that domain. Verify the domain membership of the server and any domain trusts". I noticed it only happens with users ot group wh ...Show All
.NET Development XSL Character Count
I have an XML file with child nodes holding values like "0045", "0008" etc. As u can see the count of zeros keeops varying.How do i write an xsl to get the count of zeros in the node I want to store this in a local variable and and so that i can use that as an index to the substring functin .How do i do that Once again, thanx 4 ur reply ...Show All
SQL Server An attempt to attach an auto-named database ....\aspnetdb.mdf failed
I've installed VWD 2005(Beta 2) and MS SQL Express and also followed the aspnet tour at http://beta.asp.net/guidedtour2 . After trying new webcontrol (login control) and trying to execute the page, I've got an error such as below: An attempt to attach an auto-named database for file c:\inetpub\wwwroot\Demo\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. ...Show All
Visual FoxPro Calling a report with a command button on a form
I'm trying to call/open a report with a command button that resides on a form. How can I do this I'm new to VFP & I've searched the help file but found nothing. As Andy said, you can set it up in a startup program. That is a better option than hard-coding it in a Config.FPW How do you set up a startup program Create a simple text file called CONFIG.FPW (if you have one already just modify it ...Show All
Visual C# Changing width of scrollbar on combo box
I'm currently writing a C# application that will utilize a touchscreen as the primary interface method. Since I'm using a touchscreen and not a mouse, large, easy to hit controls are key. This hasn't been a problem for the most part, but I'm running into trouble in a situation where I use a combo box. I can change font size of the items listed in the combo box, so each row is tall enough to hit easily. The problem is that there are more item ...Show All
