two_man_only's Q&A profile
SQL Server SMO Table Scripting
You can script the result of an Alter() call by using capture mode. See http://blogs.msdn.com/mwories/archive/2005/05/31/capture_mode.aspx for an example how to do this. ...Show All
Visual Basic Visual Basic Express SQL Server Connection.
Been trying for a while now. But I cant use server explorer to connect to my sql server (2000) But in Visual WebDeveloper you can connect directly up with a sql server. But in Visual basic express 2, when I try to add a data source, I have only 2 options: 1. Access Database File 2. Sql database file (mdf) and in webdeveloper i have many choices: 1. Access Databse File 2. ODBC Data Source 3. SQL SERVER 4. SQL SERVER database file 4. Oracle Databa ...Show All
Windows Forms how to add more panels in splitContainer
hi, in standart split container is 2 panels divided by splitter, i wnat to add moe panels and more spliters of course, maybe someone can offer something well actually i thougth to create a control like in reports with 3 panels 1 for header 1 for body and 1 for footer, mabe someboy have other ideas i still didn't find a good way to do that ...Show All
SQL Server Package "ShellPackage" failed for Copy Database
Hello, I'm trying to migrate a SQL 2000 database to SQL 2005. I'm using the Copy Database Wizard and can copy the database using the detach and attach method, but I would rather use the SQL Management Object method. I get the following error when trying to use this method: Package "ShellPackage" failed. This error occurs directly after the following step: Event Name: OnInformation Message: Transferring data to ...Show All
Microsoft ISV Community Center Forums Odd or even and converting Decimal to binary, octal, or hexadecimal and back.
how do I make an algorithm that asks the user to enter an integer number, then determine whether the number is odd or even. How would you write that in Visual Basic code Secondly I need to figure out how to convert a decimal number into binary, octal, or hexidecimal. It needs to ask the user to enter a decimal number and then ask if it needs to be converted to binary, octal, or hexidecimal. The Algorithm should ask until the o ...Show All
Visual Basic First Chance Exceptions
Having converted a VB.Net 2003 project to VB2005 as soon as the program is run in the debugger I get these two statements in the Imediate window A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll Can any one shed any light as to what the cause is I have a break point at the very first ex ...Show All
Software Development for Windows Vista question about load state workflow from xoml file?
Hi, I am using the following code to load a state machine workflow WorkflowInstance instance = _wfRuntime.CreateWorkflow(new XmlReader("WorkflowTest.xoml") WorkflowTest.xoml is like this <ns0:BaseWorkflow x:Class="Epic.Kiosk.Workflow.WorkflowTest" ...> ... The question I have is the code only works if I remove x:Class="WorkflowTest.WorkflowTest" from the xoml file, otherwise it will erro ...Show All
Visual Basic Apply Color to Inbox Messages using VB
Hi Does ne1 knows how to apply color to Outlook Inbox messages using VB Which is the property/method we can use to do the same Manually this can be done using the Organize option of the Tools menu. Plz reply ASAP. I'm trying the following code to select the flagged messages but get an error, that flagicon is not "restrictable". Any idea how to work around WITHOUT working through each inbox-mail one by one Jean-Nicolas Sub ...Show All
Windows Forms Open .exe from network
Hello, I have created a simple data entry application that I would like the users to open from the network. I have tested this on another machine besides mine and was able to get it to work fine. I'm just wondering if there is some&nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT Beta?
How does one get on the XACT beta program I went to https://connect.microsoft.com/availableprograms.aspx and it is not listed there. I signed up for the DX beta program, but it apparently does not let you access the XACT beta newsgroup, which is where I would like to ask questions. I also tried going to http://beta.microsoft.com/ and using the Guest ID: XACTBeta, but once I was logged i ...Show All
Visual Studio Tools for Office How can I insert and work with images?
I have a program running on a linux server that serves out barcodes for reports. I created a web service in c# that grabs the barcode graphic from the server and returns a base64-encoded string of the barcode image the server creates. I want to insert this graphic in the upper-right hand corner of the word document and I'm thinking the header is a good place for it, but I'd also like to consider positioning a floating image as well. I've bee ...Show All
Windows Forms publishversion vs productversion
I am not really sure about publishversion (in clickonce) and (application.)productversion. When do I use each one Should these be identical for application releases if I want to display version information under help | about, I think it would be preferable to use publishversion. Is this right How do I do this Am I supposed to manually set them to be the same Thanks Don't forget to add system.deplo ...Show All
.NET Development Type conversion error
I have multiple projects that depend on SSPI.h (taken from MSDN code samples). However, during the conversion to the .NET 2.0 Framework, this file is generating a type conversion error and I am not sure how to fix it. This is the error where _ _const_Char_ptr is typedefined as System::Char* error C2440: '=' : cannot convert from '__const_Char_ptr' to 'wchar_t __pin *' This is the code snippit: &nbs ...Show All
Visual C++ HELP: error C2664 in atlcom.h coming back
Moving from vs2003 to vs2005, I have the following compilation error: atlcom.h (5005) : errror C2664: 'ATL::_CopyInterface<T>::copy' : cannot convert parameter 2 from 'IMyObject * const *' to 'IMyObject **' with [ T = IMyObject ] Conversion loses qualifiers atlcom.h (4992) : while compiling class templates member function 'HRESULT ATL::IEnumOnSTLImpl<Base, piid, T, Copy, CollType>::Next(ULONG, T *, ...Show All
Windows Forms Cascaded PropertyChangedEvents crashes with DataGridView
Bug or not we wanted to show different properties of objects of a BindingList in a DataGridView. Some of the properties had to change their values depending on the values of other properties. Therefore we introduced a new BindingList with an event handler 'ChildObjectChanged', that is raised when one of the items in this BindingList changes. Also we wanted to change other values, not included in the BindingList, depending on changes in this D ...Show All
