Mats Johansson's Q&A profile
Visual C# MS ReportViewer 2.0 Control Print Bug/Issue
The first attempt to print a report by clicking the print button on the MS report viewer icon does not print. Subsequent clicks will print the report! This is happening on all computers the application is deployed to. I look at the print queue and I see that the job is spooled and I also get the taskbar notification. I have tested numerous other applications and all print on first attempt. Is this a known problem or is there a workaround Thanks in advance, Ashkan Hi! Can you reproduce this bug I mean create simple small project and test that it print. If it fails to print - you may to report this to Co ...Show All
Visual Studio Express Editions datagrid view using loaded dataset
I have the following situation: I have a dataset which a load once in my application (via xml). This dataset contains various tables, e.g. a table with customers and a table with sales. A customer is identified by a unique customer_id (primary key in the customer table). In the sales table I refer to the customer via the unique customer number (foreign key). All well, according to the books. Now I want to show the sales records in a datagridview including the customer name (and not just it's number). In the table adaptor I can create nice queries with join's etc, but then to my (limited) understanding it will load the data from the ext ...Show All
Visual C++ VC++ 6.0 Platform SDK download
Dear All Do any one know how to get the Platform SDK for VC++6.0 I found the least one that not support VC++ 6.0 Please Help Regards KS Look at your old MSDN CD's From the SDK download page you can read: The last SDK that will work with VC 6.0 is the February 2003 Edition, you can order a CD on the fulfillment site. http://www.microsoft.com/downloads/details.aspx FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en#requirements ...Show All
Visual Studio Can't use MSDN outside or inside VS2005(by press F1)
Dear All, I recently installed VS2005 with Document Explorer and MSDN. But when I start MSDN out of VS2005, I got error message like "Can't open Document Explorer, path ms-help://MS.MSDNQTR.v80.chs is invalid." If I press F1 in VS2005, the help updating dialog appears and after a few minutes there will be an error message from Windows XP indicate that the Document Explorer has error occured and will be closed. But the updating window will still be there, I had to open the task manager and termilate the VS2005(not the document explorer, if I do this, it will open again automaticly) to close it. The same as if I op ...Show All
Windows Forms Controls Gone!!
I have no idea what just happened. I was adding items to my menu through the designer, I then got a message that said something about the Items in the collection..blah blah...with an OK button. I clicked the button and then to much my dismay, all of the menus I created are gone as well as the statusbar at the bottom my window. All if the controls are in the designer.vb file and I have tried rebuilding, closing everything, opening, deleteing the bin and obj files and rebuilding again but they don't come back. I tried deleting them out of the designer file so that I could add them back manually but it tells me that the contro ...Show All
Visual Basic Popping sounds using Windows Media Player to play mp3 files
When using Windows Media Player (winmm.dll) to play mp3 files, I sometimes notice 'popping' sounds whereas I have not noticed this in quality applications such as Winamp. Can anyone please shed any light on this phenomenum Are you using winmm.dll to play files via visual basic code If not, then your question is off topic on these forums. ...Show All
Visual Studio Team System Can we set-up a web test for a secure, https, site?
Can we set-up a web test for a secure, https, site Can anybody tell me how to or any pointers would be useful. Thanks, ram For most cases there is nothing different for recording and running against a https site or a http site. Please try to record and playback to see if you are able to run without doing anything different. If your site requires client side certificates, then you will need to generate a coded test. The WebTestRequest class has a ClientCertificate collection that you can add client certs too. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cloth simulation through physics
Hi, Are there any SDKs that enables animation of cloth like dresses, skirts, hair etc Or any samples on how to implement it (I know it's not an easy task). Thanks! You can find an example of using the GPU for cloth simulation at humus.ca. ATI also has a cloth sample in the latest SDK (March). NVIDIA has something on their site, too. I'd suggest you google "cloth simulation site:ati.com" and such to find out more. (You can use MSN Search, too :) ...Show All
Windows Forms How can I programmatically autosize columns in Datagrid?
I am using VS2003. In a datagrid, when I display a dataset, it comes with few columns. When I double-clicking section separator (= autosize column) it automatically extends the column to show max width of the column. How can I programmatically double-click autosize event so that all columns are displayed autosized level.C#, C++ or VB examples or link or examples are appreciated. Thanks in advance, You can do this by using the DataGridTableStyle. First instantiate a new datagrid table style. set the mapping name add this style to the data grid assign the width for columns DataGridTableStyle dgts = ne ...Show All
Software Development for Windows Vista Visual Studio 6.0 SP5 setup on Vista Beta 2 (5384)?
Does anyone know how to get around the MDAC check in the Service Pack 5 setup of Visual Studio 6.0 For some reason it doesn't detect MDAC 2.5 or higher which it requires (even though Vista obviously has a later version - 6.0) and the setup will not continue from that point. I've tried every registry key I could think of to trick it into thinking MDAC is installed. Thanks Ted. Totally untrue - the support on Vista has been committed to by Microsoft until March of 2008 http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx I know for a fact that it runs perfectly on Vista as I have run i ...Show All
.NET Development (RSACryptoServiceProvider) X509Certificate2.PrivateKey
Hello! I'm trying to use a GDBurti (SafeSign) smartcard with .NET, but I got a problem. The following code line is throwing an CryptographicException: RSACryptoServiceProvider signAlg = ( RSACryptoServiceProvider )cert.PrivateKey; "cert" is a X509Certificate2 object, that is associated with a private key of a GDBurti smartcard. The complete stack is: The specified cryptographic service provider (CSP) does not support this key algorithm. at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeP ...Show All
.NET Development Receiving outside events (Messages)
I'm trying to write a Babylon-type program (the dictionary) where on a certain combination of events (such as right-clicking the mouse and holding down Ctrl) a little window pops-up with info according to the text clicked on. However, I can't seem to find a way to receive the right-click event anywhere in windows, and can only receive it in my forms. So... I need help on how to do it. Also an example would be much appreciated, I write in C#. p.s. I also need help about the text portion of the program, that is - getting the text clicked on, wherever it is clicked. Thanks. Found out how to handle these ev ...Show All
Visual Studio Express Editions Problems accessing certain help topics.
Hi All :) I'm trying to access 'Network Programming' under '.NET Framework SDK > Quick Technology Finder' from within the C# Help Documentation. It keeps saying the content isnt available, and that I need to check my settings to ensure it loads online help where required. I've done this (Internet works just fine under IE) and am dumbfounded as to why this wont work... Any ideas This is actually a limitation of the Help system, one which we unfortunately couldn't fix. Links to topics that aren't part of the MSDN Library for Visual Basic Express Editions (a subset of the full MSDN Library) will ...Show All
Windows Forms How to draw a control on form designer with variable size
Hi Guys, I am trying to draw a control picked from the toolbox on to the designer surface by means of defining the first top-left and dragging the mouse cursor to the right-bottom corner point. I do not know how to do this, the drag/drop from the toolbox works fine. Is there some kind of settings i have to define first Thanks Michael It does not work. It draws a rubberband rectangle, the thin one. What i have got to have is the thick one. Thanks anyway for yhour response Michael ...Show All
Windows Forms How can I format a richTextBox?
Hello, Can you please tell me how can I format a richTextBox using bbcode! How can I search in the whole richTextBox content and put every occurance of text between [ b ] & [ /b ] in bold. Bla Bla Bla Bla Bla Bla [ b ]IN BOLD1[ /b ] Bla Bla Bla Bla Bla Bla [ b ]IN BOLD2[ /b ] Bla [ i ]ITALIC[ /i ] Your help would be greatly appreciated. use RichTextBox.Find (String, Int32, Int32, RichTextBoxFinds) to find any occurences in text find method selects found text and after this you could execute richTextBox1.SelectionFont.Bold = true ; hop ...Show All
