James M - new user's Q&A profile
.NET Development Why doesn't this work?
Create a console app, add an App.Config, add this element: <connectionStrings> <add name="test" connectionString="string in config" providerName="" /> </connectionStrings> // console app using System; using System.Configuration; // add reference namespace ConsoleApplication1 { class Program { static void Main( string[] args ) { ConnectionStringSettings css = ConfigurationManager.Connectio ...Show All
SQL Server SQL 2000 Publisher and SQL 2005 Suscriber
Where can I found information on how its works and how to do it I tried to do it but I always received an error message If you don't want it to run continuously, then remove the "-Continuous" parameter. Please search for Merge Replication in Books Online, which can also be accessed online at http://msdn2.microsoft.com . ...Show All
Smart Device Development Windows mobile 5.0
How can I obtain a trial version of Windows mobile 5.0 ...Show All
Visual C# Terrarium Game
What a cool concept...learn C#, Object Oriented Programming, and have fun! http://www.terrariumgame.net There's a problem though. " Content accurate as of 05/18/2004" What happened to this project Budget cuts One of the absolute best games ever made was Microsofts 'Allegiance'. The game had very loyal followers, but it was killed by 'bugs' and lack of support from Microsoft. I hate seeing good things go to ...Show All
Visual Studio Express Editions Distinct Values in Combo Box
I've been trying for about an hour to populate a combo box with distinct values from a MS Access database. In my database for example I have: Column ItemA ItemA ItemA ItemB ItemB ItemC ItemC In my combo box I only want each Item to show once but it keeps listing them multiple times, ie - it lists ItemA 3 times, ItemB 2 times and Item C 2 times. I hope this makes sense - I'm not good at explaining things :P ...Show All
.NET Development Deserialization problem in DLL (unable to find assembly)
Hello, I don't understand why this code works within a normal exe test application but it doesn't work in a DLL (it returns the exception in deserialization: unable to find assembly (InvisibleLists....etc.. ): Config.SaveOption(cmb.Items); DataListView[] data = Config.LoadOptions(); ... [Serializable] public class DataListView { ... } Note: the DLL is composed by 3 files and 1 of them contains the DataListView class th ...Show All
.NET Development Appendchild not to root
Hi, I'm new to using XML and I'm wondering how to add nodes to a place that isn't the root. This is a sample of my XML file: < xml version="1.0" encoding="utf-8" > <users> <user id="1"> <login>fred</login> <pin>1234</pin> <balance>10000.05</balance> <name>Fred Blogs</name> <transactions> & ...Show All
Visual C# ClickOnce SQL Express Attach DB Setup
I have successfully deployed my VS2005 .NET (C#) Windows Application to a test-XP workstation. All prerequisites install as well as the actual Application. Problem: I need to attach a database to the SQL Express (2005)! Q. How do I use the ClickOnce to inform the SQL Express to attach a DB I have the same question, only I use MSDE as database. Seems like nobody knows. Maybe there is another tool. ...Show All
Visual C# How to disable/enable controls from another form?
Let's say I have two forms form1 and form2, in form1 I have 5 textboxes, textbox1-5 and a button button1 while in form2 i have a button button2. What I want is when I click button1 from form1, form2 will show up and then from form2 if I click button2, form1's textboxes will be enabled. How do I do that hi, in the button click event of the form2, call form1 and set the controls of the form1 textboxes to enabled that shud solve ur probl ...Show All
Visual Studio Express Editions TableAdapter.Update does not save data
How can I save data entered in a dataset via the UI I tried the code suggested in the "VB Guided Tour", Private Sub Form1_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing Me .AddressesBindingSource.EndEdit() Me .AddressesTableAdapter.Update( Me .SQLdbDataSet.Addresses) End Sub but all changes are lost when I restart the application. Thanks. ...Show All
Windows Forms User Preferences
I'm still very new to writing windows apps so go easy on me. I'm writing a program that is basically a food journal for people doing low-carb diets. There are several things that have been asked for that should really be options and I'm&n ...Show All
SQL Server server problem occurred during deployment of vb.net application with MSSQL db
I use .net 2005 and server, the application i developed connects to a locally hosted mssql db, I want to deploy the application together with the db to client machine. when i installed the application on the target machine, and run the application, it gave me this message : "an error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default set ...Show All
Visual C# Is there a way to access child node by name instead of location in XmlDocument?
First I like to say that this is my first post here and I like to apologize if I post in the wrong place (please let me do where is the right place). I'm strugleling with this question for several weeks now and all my searches in google, codeproject, ic#code and tons of other forums didn't gave me an answer :( I have the following code: XmlDocument xdoc = new XmlDocument(); XmlNode settings = xdoc.FirstChild.FirstChild; switch ( set ...Show All
Visual Studio Express Editions Data Controls!!
I have a database with a table that stores values into two columns. on my form i have a dataset table adapter and binding source control. now i would like the ability to allow the user to enter a value in tbox1 and tbox2 and search for those values from the database table. i need to know if a value in column1 and a value in column2 exist in the same row. any help is appreciated...TIA Hi this should ...Show All
SQL Server Help! Can I control the recursion times of a recursive CTE?
I have a table describing a hierarchy structure and the number of levels is very large, say 10000. Can I control the recursive CTE to get the first 1000 levels Thanks! Sorry, wrong format in last post. Here's the question: I have a table describing a hierarchy structure and the number of level ...Show All
