GTH's Q&A profile
Visual Basic How to Update message on SplashScreen
Hi, How can I update a label on a splash screen to show load progress. Tried it in the obvious manner but get thread errors, how do/can I communicate with the splash screen so I can inform the user of load progress for an application that may take sometime to load. Gave up, removed the splashscreen. Nothing is controllable on the splashscreen, how long it stays, update displays etc. Found that it stays on long after initialisation of application completed, just gets in the way, looks nice and professional...but. ...Show All
Visual Studio How to? : (ReportViewer + asp.net + .rdlc + print button)
I s there a way to add a Print button to the ReportViewer control in an .aspx page when using .rdlc file Would the Print button displayed and enabled if I use remote reports(.rdl) instead of local ones(.rdlc) Response is very much appreciated. Thanks, S Okay, so I can render the local report to EMF. Now, how do I send it directly to the printer without passing GO I want the report to render to EMF, without hitting the print dialog, and head directly to the default printer. The EMF works great as long as my printer is the Office Document Image Writer. I want the printer to be something like an HP printer. ...Show All
SQL Server Matrix - displaying subtotal formula
Firstly, we are still using SQL 2000 RS (unfortunately)! I need to implement a report that displays a balance for a base month and then displays a relative Credit/Debit for other months. I do not have control over the query/dataset that the report uses, so I need to implement the logic in the report. As an example, consider the following dataset (note this is a simplified version of what I'm trying to do, but if I can resolve this, then I should be on my was to a solution) DataSet Currency Ref Month Val GBP Tran1 Jan-06 2000 GBP Tran2 Jan-06 1000 GBP Tran3 Feb-06 2500 GBP Tran4 Mar-06 3000 GBP Tran5 Mar-06 700 USD Tran6 Jan-06 2500 USD Tran7 ...Show All
SQL Server Determine Processor Architecture for SQL Server 2005
I like the new features in SERVERPROPERTY but there's a huge, glaring oversight in my opinion: it doesn't return the processor architecture. I'm trying to write a detailed server info collection script and (1) use only TSQL, and (2) have it return the processor architecture. Here's what I have so far: SELECT SERVERPROPERTY('InstanceName') AS [InstanceName] , SERVERPROPERTY('ServerName') AS [ServerName] , @@VERSION AS Version , CASE WHEN CHARINDEX('Intel X86',@@VERSION)<>0 THEN '32-bit' WHEN CHARINDEX('Intel IA-64',@@VERSION)<>0 THEN '64-bit' -- WHEN CHARINDEX('x86-64',@@VERSION)<>0 THEN '64-bit' -- WHEN CHARINDEX('AMD64',@@VERSION)<>0 THEN '64-bit' -- WHEN CHARINDEX('WOW64',@@VERSION)<>0 THEN 'WOW64' ...Show All
Visual C++ Borland C++ V4 and Visual C++
I have been asked to upgrade an old system. The person in question has the files which were created in Borland C++ V4. However i do not have Borland C++, is there any version of Visual C++ that can read the files or will i need to source a copy of Borland C++ That makes sense. I did not realize that that is what you were asking but it seems to be a valid question. I don't know of a way for VC to read the Borland project files and I doubt that such a thing exists. If it does then the quickest way to find it is to search MSDN for Borland. You could search using the two words Borland and project. You are more likely to get help in a forum or newsgroup that does not specialize in VC as this one does. I ...Show All
.NET Development .NET 2.0 BinaryDeserialization for file serialized with TypesWhenNeeded flag in .NET 1.1
Hi All! I read many issues, but I did't find resolution for my problem. I think I am having real problem about serialization. I serialized data in the .NET 1.1 using BinaryFormatter like this FileStream fileStream = new FileStream(" C:\\Temp\\Color.2003 ", FileMode.CreateNew); BinaryFormatter binaryFormatter = new BinaryFormatter(); ColorClass colorClass = new ColorClass(); binaryFormatter.AssemblyFormat = FormatterAssemblyStyle.Simple; &nb ...Show All
Visual Studio Tools for Office Track a bookmark onscreen with a custom winforms control?
I'm using VSTO 2005 to create a Word 2003 customization that stores complex annotations against bookmarks that the user has placed throughout the document. The users have asked if I can float a graphic or control on the document next to their bookmarks, similar to the UI bubbles that appear in Word 2003 when you track changes (e.g., deleting with tracked changes removes the text and draws a pointer to a bubble on the right margin which reads: "deleted: <delete text>"). I've created many custom controls before, and I'm no stranger to ownerdraw and the graphics objects--I just don't know how or if I can float a user control on the Word document at run time. Even if I can, are there are enough events to be able to pin it to ...Show All
Visual Studio How much commitment will MS put into MSBuildTasks ?
I have found a community project named MSBuildTasks that seems to cover most of my requirements (I am still using NAnt at this point); the core set of MSBuild being vastly insufficient. See http://msbuildtasks.tigris.org/ My question is How much commitment will MS put into developing community build tasks NAnt has clearly some strong supporters; what is the status of MsBuildTasks Thanks in advance, Joannes http://www.peoplewords.com Joannes, What level of committment are you wondering about We very much want a vibrant community, and are active participants here in the forums answering questions. We also blog and have detailed documentation on MSBuild to enable people to build additional tasks such ...Show All
Visual Studio Team System Upgrade problem : "TFS sql server exists and their schema doesn't match..."
Hi upon trying to upgrade to RC I encountered a problem : "TFS sql server exists and their schema doesn't match the version expected by setup" how do I workaround it all the upgrade steps went fine until this one.... 10x, guy Thanks Allen, It worked. I have successfully installed VSTS RTM, but I am not sure how do I now add my existing projects I can create new projects just fine after uploading my customized process template. Please let me know. Thanks, ...Show All
Visual C# Is there an equivalent to web.config for C# executable?
I have been writing some web applications with C# and find the web.config file to be very useful for many reasons. I would like to know if there an equivalent to web.config for a C# executable. Thanks, Mike Ah, sorry, I tend to assume 2.0 these days. In 1.1, you have to right-click the Project in Solution Explorer, click "Add New Item" and choose "Application configuration file" from the Templates window. Leave the name as "App.config". This is just an XML file. You need to add a section called "appSettings", and then sub-items call "add" with attributes "key" and "value", like this: < xml version="1.0" encod ...Show All
SQL Server Tools Generate Electronic Data with the .mdf extension for SQL Server 2005 Express
Hi all, I have the raw data instored in the Laboratory Information Management (LIM) system. I need to generate the .mdf data from the raw data from the LIM system and can be used as the SQLDataSource in SQL Server 2005 Express. Can someone tell me what softeware programs/tools that are able to generate the .mdf data Thanks, Scott Chang an MDF is not something you generate. You create a database which consists of data files (.mdf). You then create tables in your data base and then import the data using SSIS, bulk insert, generating INSERT statements. The contents of the mdf is managed by the SQL Express service, imagine it like a Word file rather than a text file. The former you can't create whilst the latter you can. ...Show All
Visual Studio Duplicate items are not supported by the "Resources" parameter error when building project
Hello, While building our current project using Visual studio 2005 we stumbled on this error, === Error 16 The item "xxx" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter === we traced the issue down to resource file naming convention differences between Windows Vista and Windows XP ie, for a given form, if we include chinese traditional and chinese simplified resources, On Vista the resx files must be named with zh-HANS / zh-HANT , using zh-CHS/zh-CHT VS2005 will choke On XP the resx files must be named with zh-CHS/zh-CHT, using zh-HANS/zh-HANT VS2005 will choke This is really causing trouble, as we develop both in XP and ...Show All
SQL Server Tell Us Your Express Story and Win $100!
Want a chance to show off a cool way you’re using Visual Studio Express or SQL Server Express We’re looking for your stories! Tell us about something that makes your life easier or is just plain fun and if we like it enough to include in a feature article, we’ll give you a $100 gift certificate to Amazon.com! http://msdn.microsoft.com/vstudio/express/support/hero_promotion/default.aspx Andria1974, You say: No, you do not lose rights to your project at all. But if You read the terms and condtions is written: All stories and projects become the property of Microsoft and will not be acknowledged or returned . By submitting this project, you signify your acceptance of these official rules and agree to grant t ...Show All
Visual Basic Reusing Forms
Greetings I am converting a VB6 program containing multiple forms into a 2005.net VB program. In the old VB6 program I use a modal form and then I want to re-use the same form but but change some of the labels and make visible a control that was invisible the first time around. In the VB 6 version I was in, say, Form1 and executed the following code: Unload Form1 Form1.Show 1 This re-did the Load event and I used a counter to customize the form in its second life. Is there any way to do this simply in VS2005 VB Thanks again Dave. Your example worked beautifully for me. Now I've just got to clean up some of the rough edges. Wish I had asked a few days ago! ...Show All
Windows Forms Error Code: 0x80070643
I have tried to install Windows and Office updates utilizing the Automatic installation tool; but, the initialization takes place and none of the updates are intalled. I ran WinDoctor and I am told that I am missing file "ORUN32.exe" and it cannot access "learn32.dll" and "pctree32.dll". I have searched my computer and found the orun32 and pctree32 files but not the learn32 file. I don't know how it got deleted and not sure how to get it back in place to use the automatic update. What do I do to get my Automatic updates to run again Please help me! Thanks for the tip, the first solution did nothing for me as the service was all ready set to manual. But by adding the path key in the registry ...Show All
