MaxL's Q&A profile
Visual C# Setting Paper Type (eg: Glossy) when printing
Hi, I have used, after useful suggestions from this forum, a very helpful piece of code (from the code project) that allows me to dynamically set printer settings individually for a print job and not change the users/global settings for that printer. However as usual I am looking for a little bit extra. Does anyone know whether the Paper Type available for a printer can also be set Most printers allows settings such as Glossy, Heavy Glossy etc...This is useful depending on what is being printed etc. For example a photo may need to be printed on Glossy rather than plain paper. This may require the user ensuring the correct paper is loaded at print time (that is acceptable) but it would be helpful to set this value and not al ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# and Dx9 trouble.
Hi, I'm not sure if this belongs in here, because I don't know wether my problem is a C# or a Dx9 issue, but ill take my shot. I made a C# Project using VS2005 Proffessional, which includes a Picturebox, in which I render my 3D stuff using DX9c. The app also has some non DX9 standard tools, like Buttons, Textfields, etc... . The second i start rendering with the Directx device, all non DX9 stuff stops being redrawn. The Buttons still work but theres no animation, no update, the Framerate stops being updated, nothing works which includes graphical altering except the DX9 stuff rendered within the Picturebox. I tried to Refresh the Form, but nothing helps, I'd appreciate all comments, thnx. Greetings Alexander You h ...Show All
Windows Forms Windows Forms Team Needs Your Feedback!
If you have ever come face to face with the Design-Time Error List ("One or more errors encountered while loading the designer..."), the experience has probably given you an opinion or two on how it could better help you debug your app. Now is your chance to share that opinion. Brad Abrams has posted a preview of improvements to the Design-Time Error List (a.k.a. White Screen of Darn) over on his blog: http://blogs.msdn.com/brada/archive/2007/01/16/what-is-next-for-winforms-wsod-in-orcas.aspx Head over, watch the video, and let us know what you think! Scott Morrison Program Manager .NET Client Its not frequently that I encounter design time errors. And for the occasions on which I have had, the information provid ...Show All
Smart Device Development CeFindFirstFile using VB6
Ok, my first Smart Device project and I've come to a bit of a standstill, trying to find out what files are on the device. Tried the CeFindAllFiles, but from what I have read I don't think it will function in VB6. So, on to CeFindFirstFile and and CeFindNextFile. It all looks so easy. I'm confused as to how you set up the returning information. I keep seeing references to 'CE_FIND_DATA', but what is that all about If anyone has an example or ideas it would be appreciated. Bert Ok, I have managed to get it to compile correctly, and it does return something, although the cFilename value is just a load of garbage, so I have a bit work to do here to make some sense of it. Going back to my original problem, I d ...Show All
Microsoft ISV Community Center Forums Size Form to fit user resolution
I have several multi-user Access applications. After much time-consuming research I have not been able to find anything that works on this question: How can I get my forms to automatically fit the USER'S screen with their set resolution with the OnLoad event of a form I have already tried me.height, me.width with no success. Anyone have any other suggestions Any help would be greatly appreciated. Thanks! This is a VBA forum, right Every time I enter this forum I am clicking on "Visual Basic Language"! If I'm in the wrong place - don't think I am though - how bout giving me a link to the RIGHT place, huh, huh, huh Anyway, thanks alot for your help. What I am seeking, howev ...Show All
Visual C# cs 5001 No Main method suitable for entry point
I keep getting the following from code generated by VS2005: Documents\Visual Studio 2005\Projects\BegCSharpDb\Chapter2_Examples\Chapter2_Examples\obj\Debug\Chapter2_Examples.exe' does not contain a static 'Main' method suitable for an entry point Chapter2_Examples Please see the code below: using System; using System.Collections.Generic; using System.Windows.Forms; namespace Employees { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [ STAThread ] static void Main() { Application .EnableVisualStyles(); Application .SetCompatibleTextRenderingDefault( false ); Application .Run( new Form1 ()); ...Show All
.NET Development Editing and Deleting nodes in VB
Howdy, I'm working with a program using an XML file, and I'm trying to delete and edit nodes and attributes (well, delete nodes and edit attributes). I've looked around a fair bit, including through these forums, and simply can't find any good easy-to-use tutorial or documentation on this sort of thing. Does anyone know how I can edit or delete nodes using VB.NET, or any tutorials Any languages is pretty much fine (I can sort of try to translate it, but I would really prefer something about VB.net, if anyone has something of the sort). I've looked all over, and can't really find anything that I'm looking for. Thanks so much! Anything really is greatly appreciated. Thanks again! -Robert I googled XmlDataDocument on MSDN and got thes ...Show All
SQL Server MSDE 2000 Replication to SQL Server 2000
i went through the documentation but i was not clear on following, here is the scenario :- a Central server is having SQL Server 2000 3 Remote Locations :- Each having 4-5 no of computers, connected on a Lan, and on one of the machines MSDE 2000 will be running. My Questions are :- 1. Can remote locations, update data locally and send changes (say in every one hour) to central server. If yes, then how 2. Same way they can receive updates from Central Server on whatever was updated on Centra Server or on the 3 remote locations. If yes, then How any help will be highly appreciable. #2 is not supported, this is documented in Books Online. #3 is supported, but you'll get better performance ...Show All
Visual Studio Team System conditionally running a testcase
I have a testcase which needs to run only if another testcase (in a different testcase class) passes. How do I do this In Visual Studio, every testcase is independent. We don't support that scenario. What you can do, is place tests in different test lists, and then create a batch file that runs specific tests (using mstest, for example) depending on things such as environment variables. Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
Windows Forms Disable CheckedListBox Items
i'm using vs 2003 and vb.net to development a window application. i have a checkboxlist that contains few items. i need to disable some of the items, meaning the checked could not be modified after being saved into the database. the purpose of doing this because i want to show user the item they redeemed. please tell me how to do that. thanks for any help. For those who use VB.NET, I translate my sample above to VB.NET for you: Public Class CheckListBoxTest ...Show All
SQL Server T-SQL Reporting
is there anyway to run complex reports using T-SQL including variables and cursors and such good points. well, the information being reported is the amount of time users are on the system, and work they've done on the system. the person pulling the reports is one of our executives. he pulls these reports about 2 or 3 times a month (on demand per client request). he is pretty good with the technical side of computing, and i could easily create a login for him that was pretty locked down. it just doesn't seem like there are any reporting features built in that will run the query i'm trying to run. ...Show All
Visual Studio Team System Error unistalling CTP 5
"Setup is unable to determine a valid ordering for the installation. See the error log for further details." To give more details I first need to know which error log. Brumlemann Solution Architect If the CTP5 setup generated the error I would have expected the failure UI page to have a link to the log file. Did it have that or was it just an error dialog Do you have CTP5 and the CTP5 performance update installed Presuming you have both, the uninstallation needs to be done in the following order: 1. Uninstall CTP5 Performance Refresh In order to uninstall the patch use the command file that is registered in the Visual Studio program folder (see Start | Programs | Microsoft Vis ...Show All
SQL Server Report Model missing some fields
I hope someone can clarify what I observe below. When I add a certain Table into my report model, one of the fields is not automatically converted into an attribute, but I'm not sure what the exact pattern is. This table has 3 fields as its key, two of them get included and one does not. The one that does not, is also added as a Role as it is used in a relationship within the DSV (Data Source View). Does anyone know what rules BIS (Business Intelligence Studio) uses in deciding which fields to automatically convert using the wizard and which to skip Perhaps I'm doing something wrong, or there is a workaround If anyone can shed any light in the issue, I'd greatly appreciate their comment. Thanks in advance and kindest rega ...Show All
Visual Basic Excel Autofilter selection criteria referencing the content of a cell on another worksheet
I need to have the autofilter in Excel reference the content of a cell on a different worksheet (but in same workbook) and use that content as the filtering criteria for the column being filtered. Example: Column 1 in the Table worksheet contains the word "Nelson" Instead of just filtering the word "Nelson" as per normal, I need the code to direct the filter to go to the worksheet "Setup", locate the field B6, then use the entry in the cell as the filter criteria for column 1 back on the Table worksheet. This will then allow me to change the entry in the cell on the Setup worksheet at any time yet still have the code do it's stuff. I know the follwing code doesn't work but it is jus ...Show All
Game Technologies: DirectX, XNA, XACT, etc. xbox 360 shader support
Any one know what the maximum version of shaders the xbox 360 supports. XBox 360 will support Shader Model 2.0 and the specific 3.0 model (XVS 3.0/XPS 3.0) ...Show All
