ceebee's Q&A profile
.NET Development VB.Net and access booking system-Date question
I am currently producing a booking system. This booking system allows bookings to be taken in week blocks where the week starts on a saturday. How would I make it so that when the user types in a date and the date does not correspond to a saturday it is rejected by the system and tells you to click a date on a saturday There are several places you might do this, depending on your requirements and which tools you are using for the UI and for storing the data. At a fundamental level, you are likely going to have to provide a snippet of validation code that performs the date check for you. Can you provide more ...Show All
Visual Studio Team System Issue with Load Test DB connection
I have stumbled across an issue regarding the connection string administration to the LoadTest DB. I have read other threads re: configuring this via the Test Controller Admin dialogue and did manage to get it working briefly. For other reasons I did a un-install and re-install (without incident), but when I re-entered the dialogue to alter it again, the Load Test Results connection string configuration dialogue could not find my destination DB, which is (local). Upon quitting out of this the connection string now displays as: Microsoft.Data.ConnectionUI.DataConnectionDialog+BasicConnectionProperties. Clicking on the ellipses next ...Show All
.NET Development Why do I have to XmlInclude derived classes in order to serialize?
I have a shallow, but wide class heirarchy. I have one base class with several derived classes. During serialization, I pass a reference to the XmlSerializer. The reference never points to the base class; it points to one of the derived classes. So when I attempt to serialize public class Base public class Derived1 : Base public class Derived2 : Base public class DerivedN : Base XmlSerializer ser = new XmlSerializer(typeof(Base)); StreamWriter writer = new StreamWriter(sFilename); ser.Serialize(writer, DerivedClassFactory.CreateRandom() ); //DerivedClassFactory can create any of the derived classes.. On this last line, the execution fail ...Show All
Visual C# Creating a new solution/project by copying an existing one.
I am a newby to this environment. I have spent considerable time creating a Windows Form with a C# program. I want to create a new application using this Form with some alteration and much of the current program code. By the way, I do NOT want to destory my current application or solution. I would prefer to have a new Solution/Project in a new directory. How do I go about it Thanks in advance for your help. Perry G. You should look in the documentation for VS. In there is a topic about extending VS. You'll want to look at the topic for creating ...Show All
Visual Studio 2008 (Pre-release) DLINQ - An error has occurred while establishing a connection to the server.
I got the following exception, "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 settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)" while I was running the following code, [Table(Name="Customers")] public class Customer { [Column (Id=true)] public string CustomerID; private string _City; [Column(Storage = "_City")] public string City { get { return this._Cit ...Show All
Visual Studio Express Editions VS2005 C++ Express - Can't link!
I installed C++ Express and Microsoft Platform SDK for Windows Server 2003 R2. I followed the instructions for changing the lib,bin,and include sdk directory. I tried to build an empty Win32 windows app. The compile goes find but the build has errors: Build Log Build started: Project: TEST, Configuration: Debug|Win32 Command Lines TEST : warning PRJ0041 : Cannot find missing dependency 'winwlm.h' for file 'TEST.rc'. Your project may still build, but may continue to appear out of date until this file is found. TEST : warning PRJ0041 : Cannot find missing depende ...Show All
Visual Studio Problem with Click Once Install? - More on this mystery
We have a problem with one of our clients attempting to install Crystal Reports for .NET Framework 2.0 via click once. the .NET 2.0 Framework installed correctly prior to this attempt. Here is the message the user is receiving. Any ideas would be appreciated. Wendell G Running checks for package 'Crystal Reports for .NET Framework 2.0', phase BuildList Reading value 'BuildNum' of registry key 'HKLM\SOFTWARE\Crystal Decisions\10.2\Crystal Reports' Unable to read registry value Not setting value for property 'CRBuildNum' The following properties have been set for package 'Crystal Reports for .NET Framework 2.0': Runnin ...Show All
Visual Studio Team System Get latest from TFS - Need add in
Hi I am working with TFS as scc and with VS2003. know that when I do checkout in the VS to a file, it opens it for edit but not doing getlatest as it did in sourcesafe. My question is devided to 2. Is there a way to do getlatest to a file from VS2003 is there a way to add a menu item to the rightClick menu in the solution explorer of VS2003 Thanks Avi Hi Faraz I am sorry to say that the "Half way there" staid the same but I here is what I've manages so far. Adding an item to the solution is quite simple CommandBars cmdBars = (CommandBars)applicationObj ...Show All
Visual Studio 2008 (Pre-release) Problem Installing WinFX Components Beta2 on Compaq TC1000 TabletPC
When running winfxsetup on my TC1000 (Transmeta Processor), it starts normal, but then the extraction-progress-dialog stop at 75%, the setup-process is running and consuming cpu-time, but nothing happens (I waited 6 hours, before giving up). What am I to do Thanks for your reply, Heiko Are you hitting this issue http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=426434&SiteID=1 . Try that workaround. If that's not it, are there any winfx setup logs They're in %temp%, and match the pattern dd_*.txt. If you find some, zip them up and send them to me (mark.grinols at microsoft dot com ...Show All
SQL Server I wrote my own configuration tool to maintain the connection strings in a SQL table
I wrote my own VB app to maintain all of my connection strings and link them to packages. I then grab them at run time and set them as variables in memory. ...Show All
Visual Studio Adding a new file to an project that Depends on another file.
Hi All, I want to create a new file with a custom extention for my custom VSIP editor then add this file to the project <- no problems so far Then i want to make this file dependent upon a .cs file, so if its moved the custom file (extension adoc) is also moved (and it looks so much better in the IDE), below is how this looks like in the project file. <Compile Include="Program.cs" /> <None Include="Program.adoc"> <DependentUpon>Program.cs</DependentUpon> </None> Now the question is how can i make a file dependent upon using the either the automation model or the VSIP int ...Show All
Visual Studio 2008 (Pre-release) Cecil project from Mono : better than Linq ?
Hello, Will the Linq team include the Cecil functionnalities It is so much more powerful than Linq. Basically every code is accessible as an expression, visitable, and modifiable at runtime. This links to my former proposal of being able to publish a select subset of variabl es then expresses iself as a subset of Cecil. Apparently Cecil is being used in db4o, an object database, which by the way, has what they call "native queries" which surprisingly ressemble DLinq queries :) Nicolas Rolland Does anyone know why one cannot get the IL from a runtime compiled expressiontree ...Show All
Smart Device Development sql mobile constraints-dataset designer?
I am trying to use sql mobile for the first time and I want to setup table relationships. I saw a post that said to use VS2005 dataset designer. Is this really setting the relationships on the database or just creating relationships in a dataset You can use any tools you wish to create the relationships between tables - I personally perfer the old fashion way of writing SQL DDL queries. You can use the data designer within VS to create the relationships or create the relationships programmatically by creating a dataset and adding tables to it. You've to submit the changes so as what you define within datase ...Show All
Visual Basic Timer Event Not Firing on Win2k
Hi all, I am having tourble with a timer not firing on Win2k. The service was developed on XP and the Timer fires every single time without fail moved it to the live enviroment Win2k Server and If NEVER fires. I looked at Thread timers but they are a bit ahead of me atm so I couldnt get that to work either any one had this issue before if so how was it resolved Cheers Paul Protected Overrides Sub OnStart( ByVal args() As String ) ImportPath = searchpath CreateTimer() End Sub Protected Overrides Sub OnStop() tmr.Stop() dsData.Dispose() tmr.Dispose() End Sub Private Sub ...Show All
SQL Server Please tell me you are joking - All member multivalue parameter
In 2005 SP1, there is no longer an automatic <Select All> option for multivalued parameters. You now need to modify the dataset providing the values for the prompt and modify the dataset containing the parameter. This makes no sense! I am so confused. It was working fine. Why did you have to go and mess with it If you want to add value somewhere, try making the width of the drop down box for multi value parameters resize to the text in the box, or at least make the width configurable. I am not accepting any multi dimensional data source performance excuses either. Rediculous. I agree 100%. ...Show All
