Thorri's Q&A profile
Visual Basic System Colors for Windows XP and the SetSysColors API
I am currently developing a .NET 2.0 application for a barge company. This is a Windows application that will run on thier tow boats. The application is based on an older application done in VB 6.0. One of the features they have is to switch to a night mode, where all the system colors are changed to enable the screen to appear mostly black with green font. This works well with the older versions of Windows or Windows XP with the theme set to Classic Windows. My question is there a way to achieve the same look using the Windows XP theme I've run through all the system color values 0 thru 30 (25 ommitted) and I still don't get the same effect. The main problem is the forms main title bar. It remains blue. I've searched high and low ...Show All
SQL Server Copy Database Wizard Timeout Error
Hi, I am copying a database from one server to the other. Both have SQL 2005. When using the CDW, I get the following error after 10 minutes: Event Name: OnError Message: An exception occurred while executing a Transact-SQL statement or batch. StackTrace: at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(String sqlCommand) at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(StringCollection sqlCommands) at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSMOTransfer() InnerException-->Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. CREATE DATABASE fa ...Show All
Office Live Development Sharepoint login through URL
I am trying to load sharepoint in an iframe, and I need to login from Drupal (PHP CMS) I got the <iframe src="https://username:password@share.mycompany.com> but this just brings up the password prompt and if I click Cancel it logs me in. How can I login to Sharepoint by passing the username/password arguement through the URL This forum is to support development on the Microsoft Office Live application platform. It is not for support of any of the Office 2003 or 2007 client applications such as Excel, Word or Outlook, unless your question is related to how the client apps interact with Office Live. Please refer to the list of newsgroups and forums for Microsoft Office if you need help with an ...Show All
SQL Server Some 'best practice' on how to implement SSIS
Hi, We are planning for a DW solution based upon SQL Server 2005 EE. We will use a 64 bit machine for the Database engine and Analysis Services. Should we have seperate server for SSIS or should we use the same 64 bit box If we go for a sepaerate server for SSIS should we use 32 bit or 64 bit The primary datasources will be a new developed .NET application and a financial system based upon SQL Server 2000. Every good advice/experiance is greatly appriciated! Larra Larra wrote: Hi, We are planning for a DW solution based upon SQL Server 2005 EE. We will use a 64 bit machine for the Database engine and Analysis Services. Should we have seperate server for SSIS or should we use the ...Show All
Visual Studio Express Editions firs attempt to load a database
I dl the example database adventurWoks_date.mdf then new project -data mn - dd nw data souce - database then chosse your data conection (data source = microsoft sql server database en i browse to the unpacked database then test connection gives the following result: an error has occured while establishing a connection to the sql server when connecting to sql server 2005, thi failure could be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQLNetwork interfaces,error: 26 - error locating server/instance specified)....... hmmm for a newbie...this is too much.... what is wrong anyone ideas or help thx foxster100 lets give this a try: have you downlo ...Show All
SQL Server error assigning connection mgr to datareader source component
Synopsis: Attempting to create a data flow task to copy data from AS/400 (DB2) to SQL2005, using an existing System DSN ODBC connection defined on the SQL2005 host. Problem: When adding the DataReader Source component to the package, I cannot assign the Connection Manager. Designer issues the error message: "The runtime connection manager with the ID "" cannot be found. Verify that the connection manager collection has a connection manager with that ID." Editing the DataReaderSrc component shows only one row under the Connection Managers tab: Name=IDbConnection Connection Manager=blank Description=Managed connection manager The datareadersrc component editor displays the warning message: "Not all connection manage ...Show All
Windows Forms Form Security
Whats the best way so I can make privilages/form to user in my application meaning: disable buttons for specific users, hide menu Items, disabling context menus Whts the best way to do this I want to be far a way from if conditions, so if I can set privalages from one place any Ideas Thank you well you would need if conditions otherwise there wouldnt be a way of doing so. I guess you check the login type of user, if they are of a certain group/member/user then disable the items you want, else, enable them all. That's all you need really just a single if statement perhaps, to check the type of user and if they are not of the user you are wanting to give full permissions, then disa ...Show All
Windows Forms Print Preview problem(Bug)
Hey, I have this code in the PrintDocument control under the PrintPage event: private void printDocument_PrintPage( object sender, PrintPageEventArgs e) { RtextboxUC thisrichtextbox = GetCurrentTextBox(); //Start printing text and store last letter... checkPrint = thisrichtextbox.Print(checkPrint, thisrichtextbox.TextBox.TextLength, e); //Check if there should be more pages if (checkPrint < thisrichtextbox.TextBox.TextLength) { e.HasMorePages = true ; } else { e.HasMorePages = false ; } } There are no errors, but when I test it on my program and click print preview...when it opens the PrintPreview dialog It shows the dialog that is telling you how many pages it is det ...Show All
Visual C++ Problems in debugging
I encountered the error message below: First-chance exception at 0x7c812a5b in mda2.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f764.. Unhandled exception at 0x7c812a5b in mda2.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f764.. Any possible answers Am I out of memory It occurred at this line m1pos [ i ] = new int [m1[0]+1]; //allocate new array where m1pos is an array of pointers. When my input file is small, there is no error. When my input file is large, I will have this error. I am using the term bounds checking in a general manner. It is the type of stuff that makes sense; the type of stuff that programmers should do but we often a ...Show All
Software Development for Windows Vista TMM issue ( about IViewHelper interface )
Hello, eveyone I read the white paper about TMM in Vista and I have one problem. Now what I want to do is enable LCD only video mode in any mode (LCD+CRT, CRT only ,etc) I want to know that does IViewHelper::SetActiveTopology can make this work And now I even can not initialize the IViewHelper interface. How should I do Do I have another method to make LCD only enabled I will very appreciate for your answer.Thanks. Ender ...Show All
Visual C# Excel versions
Hi, I am writing my application that using the Excel 2000 COM file. Can somebody tell me if it will be run on computer with Excel XP/2003 Thank's Alexei In general yes. COM interfaces are backwards compatible by virtue of not being replaced. Thus right now you are coding against (guessing here) Microsoft.Office.Excel.7.1 but XP/2003 ship with this version plus the newer Microsoft.Office.Excel.8 and Microsoft.Office.Excel.8.1 COM objects. They might or might not be implemented by the same class. Here is how the interfaces are probably laid out. interface Excel71 : IDispatch { ... } interface Excel8 : Excel71 { ... } interface Excel81 : Excel8 { ... } Not guaranteed to be but in most cases this is the way it is. Therefore t ...Show All
Visual Basic How to save data from a form to a xml file?
i'm trying to find a way to store data entered in a form into a xml file i have found some codes~ it worked~ but when i want to store another set of data~ it replaces the one i enter before~ it's like it's creating a new xml file each time i store data in the xml file the code i used is this Dim xmlTW As New XmlTextWriter("..\CYFmembers.xml", Nothing) With xmlTW .Formatting = Formatting.Indented .Indentation = 2 .WriteStartDocument() .WriteStartElement("CYFMembers") .WriteStartElement("Members") .WriteElementString("FirstName", txt_fname.Text) .WriteElementString("LastName", txt_lname.Text) .WriteElementString("D.O.B", txt_dob.Text) .Wr ...Show All
Windows Forms How can datagridview chanage transparence?
a datagridview in my form,and a image was set backgroundimage in this form. so i want to see image under datagridview. thank for your help. ...Show All
.NET Development We're not supposed to use List<T> ? ( List )
I installed FxCop and had it analyze my application. In several spots, it says: "Do not expose List<T> in object models. Use Collection<T>, ReadOnlyCollection<T> or KeyedCollection<K,V> instead. List<T> is meant to be used from implementation, not in object model API. List<T> is optimized for performance at the cost of long term versioning. For example, if you return List<T> to the client code, you will not ever be able to receive notifications when client code modifies the collection." I'm a bit weak in my OO.. so I'm not sure what "expose" really means in this context. Is this saying to not use List<T> ...Show All
Windows Forms making a form unmovable
I have a main form with a panel, where I put another forms inside, the problem is that the user can move the form inside the panel. How can I make the form unmovable Thanks in advance. By far the easiest way is to set FormBorderStyle to "None". It you want to keep the caption bar, you'll have to trap the WM_WINDOWPOSCHANGING message with WndProc(). That's pretty ugly, let us know if you want to go that way... ...Show All
