janekw's Q&A profile
Visual Studio Team System Implicit constraints, Pre-defined constraints, User-defined constraints
Please could someone explain to me the differnece between the following: Implicit constraints Pre-defined constraints User-defined constraints As I understand it, Implicit Constraints seem to be those that come with an object when you drag it onto the designer. There is a list of implicit constraints, somewhere e.g. SupportsASPNET, SupportsASPWebApplications, SupportsStaticContent, AuthenticationModeConstraint. Where in th ...Show All
SQL Server Failed to generate a user instance of SQL Server
Hi, On my developer machine I don't have any problems with VS2005 and SQL Server 2005 Express. Now I should set up a server (Win2003Web) for a webhosting environment. Every website has its own application pool with its own application pool user. Now if I try to connect to a db in my data directory I get the following error: Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. ...Show All
Windows Forms Dimming a class based on a choice
Hello all, Here's my delma, I have an MSSQL database and a Sybase database that can be used with a spacific application, I have the .NET data providers for both and have created 2 classes based on their respective providers, the classes are identical in every respect except the provider from which they are based. What I am looking to do is based on an option on startup instanciate the proper class. The problem I have is, what do I do with ...Show All
Visual Studio StoredProcedure, parameters not working in Crystal .Net loading
I use Visual Studio 2005, I create some basic stored procedure on my SQL server 2000. Then i create web project and dynamcli create ReportDocument and fill parameter @id with some value crReportDocument.SetParameterValue(0, 6); or crReportDocument.SetParameterValue("@id", 6); when i load report crReport.ReportSource = crReportDocument fails with error Failed to open a rowset. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for ...Show All
Windows Forms High lighted row in datagrid?
Hi, In datagrid, how could i find that a row is high lighted (programmaticaly) You can use the DataGrid IsSelected(int rowIndex) method. for example, if you want to know if the second row in the data grid is selected you can use t ...Show All
Visual Basic Read only datagrid
I'm trying to create a "view only" grid that does not show the add record row at the bottom of the grid. In my test program contains two tables: Events Tournaments An Event can have 1 to many Tournaments. I create an oledbdataadapter for Events and generate a dataset (DataSet1). I create another oledbdataadapter for Tournaments. The dataset generated off the second adapter is added to D ...Show All
.NET Development Exporting a DataTable to a CSV file
Hi I was hoping their was a way I can use the ADO.net functionality to write the data contained in a DataTable object to a CSV file. I’m quite new to C# development so I need a kick in the right direction. Thanks Its all to do with your connection string. With accessing CSV you need to thing of a folder as a non-relational database and the csv files in the folder as tables. Once ...Show All
Visual C# Reading Newly added line from textfile
Hi all I am using a windows service that monitor a log files directory (using filesyswatcher) in c#. In this LogFile Directory Some of the textfile appended new datas line by line. How i read the only new appended datas from these textfiles Please give me a solution. Thanks Anup Here is some old code of me that I once used to read lines from a logfile: System.IO.FileSystemWatcher k_Watcher;   ...Show All
Visual Basic VB.NET modem code
Hi, I have VB.NET code that will dial a number. Now what I need is code that will: Hang-up the phone if 8 rings occur If the phone is picked up, it will wait 3 seconds. Please post the code here. I am happy to answer any questions you have. Thank you. Hii... so any specific code for hanging up the modem HLP THX ...Show All
.NET Development Class Library version questions
I would like to create a Class Library for work. I will be putting in data access, error handling, .... other generic classes Now how is the versioning handled Such as lets say I have a class library called Test.dll, and three programs call that Test.dll. Now I make a change to the Test.dlland recompile it, do all three of the programs referencing the Test.dll need to be recompiled to use this Test.dll Or what is th ...Show All
Visual Studio 2008 (Pre-release) Calling type extension method recursively
Hi, Does anyone of you know if it's possible to call a type extension method recursively. Example public static IEnumerable < RegistryKey > GetSubKeys( this RegistryKey registryKey) { IEnumerable < string > registryKeyNames = registryKey.GetSubKeyNames(); foreach ( string registryKeyName in registryKeyNames) { RegistryKey registrySubKey = registryKey.OpenSubKey(registryKeyName) ...Show All
Visual C# Tcp Chat
hello , i have a problem. im developing a client / server tcp chat. the problem is that it works perfectly when i run de server and the client in loalhost, i can work with several insances of the client if the server is local,.,, the problem is that when i tr to work on lan or internet... (lan with same workspace) it dont work... i do the next on server static void Main(string[] args) { Program pr = new Program(); IPAddress loca ...Show All
Visual Studio Team System Cannot enumerate a DLL created with Visual Studio 2005
In converting routines that have worked in VS6 and .NET to VS8, the following item failed to work. Purpose: To enumerate routines in a DLL Problem: The ImageDirectoryEntryToDataEx call fails for the V8 library but works for the V6 library. LoadLibrary returns a handle for both. Question: Does A) VS8 create a DLL that cannot be processed with this call or &n ...Show All
SQL Server New Java driver for SqlServer
Theres been rumors on a future effort in building a new JDBC driver to support the SqlServer 2k5. What level of JDBC will it strive to accomplish Can it be a more open project Also, the old driver perhaps lacks some things that higher JDBC specs feature so it would be nice if it could provide some sort of backward compatibility. It would be nice to have the new RowSet thingies and some generics support. Can I get a beta of the new Driver I ...Show All
SQL Server Can't install SSIS on an XP machine
Hi all, Why would I not be able to install SSIS on an XP machine The option is grayed out. As a matter of fact, all the options are grayed out, save for the client tools. I'm using the September CTP. Thanks in advance, Anthony Rizzo, MCSE, MCDBA What SKU or Edition are you attempting to install Which options are grayed out Was SSIS already installed on this machine ...Show All
