Software Development Network Logo
  • Microsoft ISV
  • Visual C++
  • VS Team System
  • Windows Vista
  • SharePoint Products
  • Visual C#
  • SQL Server
  • IE Development
  • Windows Forms
  • Game Technologies
  • Audio and Video
  • Visual FoxPro
  • .NET Development
  • Smart Devicet
  • Visual Basic

Software Development Network >> PatrickCairns's Q&A profile

PatrickCairns

Member List

Troy Lundin
Aaron.W
Yulia
user11
Dracoman
Bernaridho
RobbieJ
Science_1
Foxer
Cyberjunkie
Jonas.S
Ceres629
Sundar Srinivasan
SidharthMalhotra
César Andrade
Thomas Greenleaf
mcbsys
Nitwit
Billr17
Abongs
Only Title

PatrickCairns's Q&A profile

  • SQL Server Not Printing from the Preview Window in the IDE

    Does anyone else have an issue printing the first time from the preview window in the IDE I understand that they are fixing the issue with having to hit the print button twice, but even after that, the report appears to print, but never makes it to the printer. Thanks! BobP For what it is worth, we have the same problem too. We've installed SP1, but not SP2. Karl ...Show All

  • Visual Studio 2008 (Pre-release) Can't compile cause InitializeComponent() missing?!

    Hi everybody, I don't know why I'm not able to compile my project. The solution consists of multiple projects. Two are library projects, each which normal classes and wpf-windows in it. One of these projects rejects compiling because InitializeComponent() couldn't be found. In the other project, with exactly the same referenced assemblies, there isn't this kind of error. Does anyone know a solution for this prob Thx! Hi lee, x:Class is set correctly in the xaml-file. The error occurs in the code-behind file where IntitializeComponent() is called in the constructor. ...Show All

  • Visual C# ignore mouse down event

    I'm new to C# programming, learning it for pleasure on my own time. As an exercise, I'm creating a simple Windows program that 1) takes the mouse-down event as an 'anchor' point, 2) while dragging the mouse around continually draw a line from that anchor point to the current mouse position, 3) once the mouse-up occurs, shrink the resulting line down automatically until it disappears. Not too hard, and it works perfectly fine. My problem is that I do not want the Form to accept any mouse-down's while the shrinking logic is occurring. Currently, while the line is shrinking, I can do some more click-and-drags, and once the shrinking completes, those subsequent lines are drawn/shrunk in like fashion. I want to effectively ignore any mouse- ...Show All

  • SQL Server Having two issues with SQL Server 2005

    I'm having two problems and one of those problems is making me feel like something of an idiot. 1) How the heck do I access the Query Analyzer I have a stored procedure that I'd like to watch variables in during debugging and I've been told the Query Analyzer is the way to go. In 2005 you are supposed to be able to access it directly from Management Studio but I can't figure out where it is. 2) I am trying to run the Database Tuning Advisor, but when I choose a database and workload then click "Start Analysis" I get a Microsoft Visual C++ Runtime Library error. A message box appears and says: Runtime Error! Program c:Progr... R6031 -Attempt to initialize the CRT more than once. This indicates a bug in your ...Show All

  • Visual Studio Express Editions Automatically enter Text from one Text box to another as you type.

    I would like to setup a Text Box that pulls the Textbox.text from 2 separte text boxes and then displays them in this textbox. For Example... TextBox1.Text = "Jimmy" TextBox2.Text = "Taylor" TextBox3.Text = "Jimmy Taylor" But the kicker is I want it to add the "J" in TextBox3 as I type it in TextBox1 ect. I tried a number of places but I am not sure how to describe this and I am not coming up with very good examples. Thanks in advance for any help. From you description I understand that you created a form which is called Form1, correct To make things clearer you should avoid calling variables or members the same. So use: Sub Init(ByVal f As Form) m_frm = f End Sub ...Show All

  • SQL Server How to connect SQL Server Mangement Console to Adventure Works

    This may not be correct request but I have SQL Server Management Studio Express.  How do I connect the Adventure Work Database to the console How do you use Access to connect to the SQL Server Express Thanks for your help. Mark's instruction is working. Alternatively, you can use the following script to attach AdventureWorks database if you install it using default settings. EXEC sp_attach_db @dbname = N'AdventureWorks', @filename1 = N'c:\Program Files\Microsoft SQL Server \MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf', @filename2 = N'c:\Program Files\Microsoft SQL Server \MSSQL.1\MSSQL\Data\AdventureWorks_log.ldf' ; ...Show All

  • Visual C# Generating a random string of letters

    Hi, this is probably a stupid question, but I cant seem to find the answer. My problem is this: I want to make a program that generates a random string of letters when the user clicks a button (I'm going to use it as a sort of name generator). I was thinking of maby having a string variable, and then a loop that generates a random letter and adds it to the string, until the string is at the desired length. My main problem will probably be getting it to only generate letters of the alphabet. Anyone know how Alternatively, you can also use the GetChars() method provided by AsciiEncoding class in the System.Text. This method allows you to convert a byte array a Char array. http://msdn2.microsoft.com/en-us/library/system.text.as ...Show All

  • .NET Development AHHH serial port class

    OK, I have some basic code to send some commands and get some responses back from a serial device. One function calls SerialPort.Write(byte[], int, int), then I call SerialPort.ReadLine() after. This timeout on my serial port is 4 seconds. The data comes base in far less than a second. This process seems to work for about 7 send and receive calls and then starts timing out as if when I send commands after that, it doesn't get anything back, BUT it does. I know it keeps getting stuff back because if i close my app and run hyperterm when I connect to the serial port hyperterm flushes the input buffer and I get everything the .net 2.0 SerialPort class said wasn't there. can someone tell me what exactly I am doing wrong Does the serial ...Show All

  • Visual Studio 2008 (Pre-release) VS 2005 XAML IntelliSense - SOLVED!

    Hello, I have installed everything I can find on .Net 3 including the extensions. I am currently having issues with the XAML Intellisense not working. Not only will it not pick up my own project references eg xmlns:custom="clr-namespace:SDKSample;assembly=SDKSampleLibrary" <custom: does not work. But also when I try to tap into TextBox.Text for the <Binding> It does not recognise it. Have I missed something to install Thanks, Brett. Glad I found this posting - I've just had exactly the same thing happen. Yesterday Intellisense was fine in the XAML and today it just stopped working. I opened a new XAML project where Intellisense did work and just copied and pasted the ...Show All

  • Visual C++ LinkedList with node-objects

    Hi, i am currently working on creating a LinkedList, for that I using a predefined Node-class which offers a LinkedList Toolkit to manipulate the Linked List ( http://www.cs.colorado.edu/~main/chapter5/node1.h ). I develop a Squence-Class which should store a sequence of numbers in a LinkedList. My header file of sequence looks like this, respectively the methods and variables: [code] public: // TYPEDEFS and MEMBER CONSTANTS typedef double value_type; typedef std::size_t size_type; // CONSTRUCTORS and DESTRUCTOR sequence( ); sequence(const sequence& source); ~sequence( ); // MODIFICATION MEMBER FUNCTIONS void start( ); void advance( ); void insert(const value_type& entry); ...Show All

  • Smart Device Development HELP - Signature Capture - Windows Mobile 5.0 - CF 2.0

    Hi all - I am in desperate need of a Windows Mobile 5 example of signature capture. I have found some examples but all are in VS 2003 and the 1.0 CF. If anyone knows of an updated example for the new Windows Mobile 5 - VS 2005 - CF 2 it would save my day - week. Our needs are to capture a signature on a device - store it in sql anywhere on the device until it can be transfered to a server baised SQL database via doking or wifi. Thanks Jim AlexY wrote: If you're referring the MSDN article on the subject, then the sample should work fine on VS 2005. -Alex I did try the MSDN example. It upgraded fine is VS2005 - but it still refrenced the 1.0 versions of the framework dl ...Show All

  • SQL Server Inconsistent performance from queues

    Hi everyone! I have a very brief question... I have 10 queues in my database and each of them are sent equal number of messages... There are instances where they execute/activate the stored procedures very fast but there are times where they don't, does anyone have an idea why this happens Thank you very much for taking the time to read my post. :) What is inconsistent, the activation of the first proc for the queue, or the activation of subsequent procs for the queue. How many messages are being sent to the queues What do the procs do ...Show All

  • Visual C# Problem: The breakpoint will not currently be hit. No symbols have been loaded for this document

    Hi, I've run into a problem that seems to defy a solution. Bottom line: When I'm attempting to debug with VS 2005, I cannot set an effective breakpoint in one of the source files. The breakpoint is the hollowed-out reddish/yellow circle, and VS says that the breakpoint won't work because the symbols are not loaded. I've found several discussions in this forum about this type of problem, but there's no concensus that I could find on how to solve the problem. Some background might be in order. I have been developing a "data binder" for use in a forms UI application that has multiple threads. There are three projects/classes in the solution, one for a test mainline, using forms, one for a general-purpose "dump" routi ...Show All

  • Visual Studio Team System Unshelving question

    Hi, when I perform unshelving operation, items are not automatically added to the solution. Is that the way it is meant to be If yes, why this choise Thanks That's it, I didn't included project file, because of risks of conflicts. I'd expect unshelved files to be automatically added to my project, that's the intuitive way I was awaiting for. Thanks, your help really appreciated ...Show All

  • .NET Development How to execute a Transact-SQL statement against a SQL Server database?

    I want to execute sql statements in my application, other then INSERT or DELETE , statements that would return not only the number of rows affected but also a messages from server. For example I want to execute: " use MyDatabase go BACKUP DATABASE MyDatabase TO DISK = 'd:\backup\MyDatabaseData.bak' with FORMAT, password = 'MyDatabasePass', mediapassword ='MyDatabaseMediaPass' go " and I want to have result like on server: " Processed 4592 pages for database 'MyDatabase ', file 'MyDatabase _PRIM' on file 1. Processed 424 pages for database 'MyDatabase ', file 'MyDatabase _WDATA' on file 1. Processed 768 pages for database 'MyDatabase ', file 'MyDatabase _INDX' on file 1. Proce ...Show All

©2008 Software Development Network