Max Diamond's Q&A profile
Visual Studio Express Editions control flickering when resizing
Hi, I am developing a program which is a typical client application, which contains menu bar, tool bar, status bar, splitter container, listbox, buttons, panels etc. During the layout design, i have implemented docking or anchorring to all the controls. But how can i eliminate the flickering problem (especially to the bottons, listbox etc) when i resize the form I follow the suggestions from the web, and put some "setstyle" setting during loading the form, something like: SetStyle(ControlStyles.UserPaint,true); // set all painting to be user drawn SetStyle(ControlStyles.Opaque,true); // dont draw background if you dont need to. but VB doesn't have those settings. so it doesn't help, how can i solve that ...Show All
Visual Studio Team System Exam 70-300
Re: MSF 4.0 related exams 70-300 Was this post helpful Who determines if there should be a 70-300 exam for Large systems call it 70-300L and another for MSF Agile. Call it 70-300A. This seems to be a logical progression. Who determines if this could and should be done You can go to Pearson or Prometric and register. However, it seems that the free promotional codes have already been used, so you would have to pay the test fee. Clementino Mendonca - MSF Champion ...Show All
Visual C++ Need help converting strings
I'm using C++/CLI. Can anyone help me out with some code to convert the String "2006/07/13 12:00:00 PM" in to the String "20060713T1120000Z" To parse the input, I would read into regular expression pattern matching. Start here: http://msdn2.microsoft.com/en-us/library/ms298435.aspx The output is simply appending strings. Brian ...Show All
Windows Forms Customize Toolbar...
Hi all, On most windows applications, when you right-click on the top menu/toolbar, you will see a context menu that has the item labelled 'Customize...'. How can I add this to my Windows Forms application Thank you, Stephen. Thanks for the repy. Do you know if there are any standard dialogs for this in Windows (or even third party), or will I have to write my own Regards, Stephen. ...Show All
SQL Server exporting multiple rows
I'm trying to set up a row that has 5 rows below it and when you click on the + it'll expand to show the five lines. They're all set up to toggle based on the one row. It works online, but when I try to export it to anything, it only picks up the first detail row and leaves off the rest. I'm doing this for a bunch of reports, and they're all being emailed using subscriptions. I've moved the detail rows around but each time it's just the first detail row that is exported. Any ideas thx, M@ mattcushing@gmail.com(noSpam ) Hello, What formats are you trying to export to Toggleable visibility is only supported in a few rendering extensions (HTML, Winforms, and in some cases Excel). Wh ...Show All
Visual C++ bitblt Cpu issues
Hi, I am trying to implement a win32 screen capture application similar to VNC. Bitblt() function which i am using to capture the screen uses 100% cpu when the hardware acceleration is set to FULL. I tried Bitblt on HDC selected from CreateCompatibleBitmap & CreateDIBSection, but the results are same. Is there any way, that i can minimise the Cpu utilisation when hardware hardware accleration is set to FULL. Please help.. Thanks, --P V V R. Hi, Please find the below code part that does the Screen capture, for 8 bit mode. ..................................... . .. . .. . .. . .. // Set the uncompressed size of the dib DWORD dwDibSize = (DWORD) ...Show All
Visual C++ _WIN64 error "No Target Architecture"
Hi All, Using _WIN64 as compilation flag for my x64 bit application on Visual Studio 2005 beta 2 it gives me a fatal error saying.. D:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(324) : error C23 71: 'size_t' : redefinition; different basic types predefined C++ types (compiler internal)(19) : see declaration of 'size_ t' D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(79) : fatal error C1189: #error : "No Target Architecture" Upon further investigation found the following code line. ========================= #if defined (_WIN64) #if defined (_AMD64_) #define PROBE_ALIGNMENT( _s ) TYPE_ALIGNMENT( DWORD ) #elif define ...Show All
Visual Studio Source code re-ordering?
Hi, Does anyone know of a VS plugin (or standalone application for that matter) that will allow me to re-order source files Ideally (!) it would be nice to be able to analyze a given file, then reorder the source such that properties are listed first (order by access, then alphabetically), then methods (again, by access first then alphabetically) and so on (or by some other consistant approach) I think the editor itself does a great job of maintaing coding standards such as indentation etc, but being able to pretty up source files in this (or similar manner) with regards to program blocks would be really useful for those inherited messy sources (mine are all fine, honest!) Regards Hi Peter, ...Show All
.NET Development XMLDocument.Save() = 0 length files, half written files etc.
I'm having something most unusual happen with .NET 2.0 on a very few computers (like 2 or 3 out of thousands). We store our information in a custom config file, which we write out from an xml document. Well 99.9% of the time it works just fine to do XMLDocument.Save() and the file is writen correctly. But every once and a while on these specific machines, the file doesn't get saved correctly. Sometimes the file is completely blank (i.e. the file length = 0) and sometimes the file is half written and doesn't have any of the closing tags to complete the file. There are NO ERRORS or exceptions thrown when this happens, it just marily goes on it's way. It only throws errors when it tries to open the file again. The users all have perm ...Show All
Visual Studio Tools for Office cannot open c# default code page in VSTO environment
hello everyone, i encountered an issue when i tried to open the Excel Project in Visual Studio 2003. i could not open the default code page when i selected the Microsoft Office Project ->Visual C# project -> Excel Workbook. but found only the solution explorer on right hand corner of the IDE with no references made to Office 2003 assembly and Excel assembly.. anyone there to help me out Can't ask for anyone else here, but your question is not very clear ... so let me ask you one or two, so perhaps we can get you an answer: Are you unable to create a new Microsoft Office Excel Project What version of Office are you using on your development machine What version of the VSTO are you using Did you happen to ...Show All
Visual Studio Express Editions User Control does not respond to code in main form.
Using VB 2005 Express. I found a project that plots a graph in a user control. The user control has a picture box and a label. The code for this project shows the code that goes in the user control. I set up a user control in a new project and added the code. After some tweaking I got it to compile. I then went to form1, dropped the control in from the toolbox, and tried to setup some code to use the user control. Code looks like this: ------------------------------------------------------------------------------ Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim gs As New UserControl1 gs.Xscale_Max = 15 gs.Yscale_Max = 15 gs.Xscale_units = 1 g ...Show All
SQL Server RESTORE LOG with different recovery path
I'm trying to RESTORE LOG with a different recovery path. Is there a way to do this I'm getting the below error. I know I could RESTORE from the beginning, but need to RESTORE the log file to the same database schema but different database and server. What steps do I need to do This backup set cannot be applied because it is on a recovery path that is inconsistent with the database. The recovery path is the sequence of data and log backups that have brought the database to a particular recovery point. Find a compatible backup to restore, or restore the rest of the database to match a recovery point within this backup set, which will restore the database to a different point in time. For more information about recovery paths, see SQL Se ...Show All
.NET Development check user input data exist in database
hi, In a combobox ,i have list of dates for course training.If a user select a date ,it will get stored in sql database,but before storing i want to check whether tha date is exist in database.If exist then we instruct the user to select another date,if not then ok to insert.how can i validate this input Any code snippet or samples,blogs.please send me.I am using vs 2005 vb.net thanks Hi, Greetings! I cant find to make the statement EXISTS or Select Count(*) in my end, I'm sure I'm lost coz I'm a newbie, would you mind completing the code to make it work I'm using C#. Not sure where to insert those statements, please start from where it can work, Thanks a lot guys! Regards, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Orthographic Perspective/Drawing in 2D
This should be simple, but I'm having trouble getting it to work. I sort of understand matrices. I understand them enough to use projection matrices and I have before, but for some reason I'm unable to get the right orthographic projection. All I want is an orthographic projection matrix that uses the same coordinates as the viewport so that placing a point at (0,0,0) is the top left and (screenWidth, screenHeight, 0) is the bottom right. I've tried two different ones (both orthographic matrix creation methods), but neither yielded proper results. b.effect.View = Matrix.CreateLookAt( new Vector3(   ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct X10 and Vista - Compatibility
Simple question, will Direct X10 only be compatible with Vista Everything comes down to money, but people invest heaps of many into to MS and sure they give you good software, but then they only support it for about 3-4 years and make you pay heaps more money for another piece of software. ...Show All
