Malmer's Q&A profile
Visual C# Creating an array of bitArray
Hi, I want to create an array of BitArray(i.e. BitArray[]) and with each BitArray having a size of n. Is it possible Thanks Currently I'm using this. BitArray[] a = new BitArray[numVar]; for (int i = 0; i < numVar; i++) { a[ i ] = new BitArray(numProc); } Would there be a better way what if numVar is >1000 I will have to iterate 1000 times to set the size of each BitArray. In this manner, my complexity will be ...Show All
Visual Basic How do you direct 'PrintPreviewDialog1' print output to 'PrintDialog1.ShowDialog'
My PrintPreviewDialog1 works fine, also my PrintDialog1 where I can specify the usual printer, copies etc. and work with the result to access eg. the Copies. However - the PrintPreviewDialog1 'Print' button simply prints one copy to the default printer ... how do I set this button to link to PrintDialog1 instead The usual If PrintPreviewDialog1.ShowDialog = (the items available) then ..... etc. doesn't intercept if the user has clicked the Print button, this action just fires-up the print routine direct. Any clues Nick B What you describe sounds like the mouse is captured by the "Print" button in the preview control. You can't get to that button to cancel the capture. A work-ar ...Show All
SQL Server SQL_2005_Express-"Help file not found" err...?
Hei everybody, Can someone explain why I get this err. msg. on SQL express The installation went OK, no err, but when I press "Help" in SQL I get this message! Thank you! Stefan SQL Express doesn't include the help files in order to reduce download size. If you install Books Online it should hook up to that automatically. You can download BOL from the Express download page at http://msdn.microsoft.com/vstudio/express/sql/download . Mike ...Show All
Visual Studio Express Editions How to add new Page
Hi all, please help me with add more 1 page on final of my report... i use, System.Drawing..... thanks! hi, by default there is no reporting tool for express edition, so i assume you wrote your own class , and no one can tell you how to do that without seeing your code hope this helps ...Show All
Visual Studio Team System CTP5: Cannot Complete Data or Schema Compare - Errors Out and Closes App!!
Hello! I'm afraid that everytime I run a data or schema compare it blows up and stops the application. Here is what I could copy from the error when doing a DATA compare: AppName: devenv.exe AppVer: 8.0.50727.42 AppStamp:4333e699 ModName: kernel32.dll ModVer: 5.1.2600.2945 ModStamp:44ab9a84 fDebug: 0 Offset: 00012a5b Here's what I could copy from the error when doing a SCHEMA compare: EventType : clr20r3 P1 : devenv.exe P2 : 8.0.50727.42 P3 : 4333e699 P4 : system.data P5 : 2.0.0.0 P6 : 4333aea2 P7 : 247d P8 : 1e P9 : system.invalidoperationexception Any help would be very much appreciated! ...Show All
SQL Server FULLTEXT query returning irrelevant results with the relavent ones
Hi, I have the following query running against a fulltext index: sqlComm.CommandText = "SELECT TOP 200 RANK, intID, chLink, chTitle, chDescription, chAuthor FROM FREETEXTTABLE( tblData, *, 'ISABOUT(" + searchstring + " WEIGHT(1.0))') a JOIN tblData b on a.[KEY] = b.intID ORDER BY RANK DESC;" ; Anywas there are certain results that are returned no matter what the query is, along with actual relevant results. One in particular is returned as the top results no matter what I type, even though it has none of the text that I am typing in any of its fulltext fields. Any ideas why this might be happening It looks like you are using freetexttable incorrectly. Freetext q ...Show All
Visual Studio Express Editions allow drag drop on a bmp on form
I set an image on the form (no picturebox or panel) and can draw on it with mouse. I wanted to be able to drag and drop an arrow onto the bmp also. The source is on the form and this seems to be ok. but setting the bmp as the drop target is escaping me. I cant seem to allow it to be a drop target. So am trying to create a target (uxtarget) and assig that to the bmp. this isnt working either. have tried multiple ways and cants eem get it to work. here is the portion ealing with target. Should I just instead use a panel or picturebox. I thought just using the form would be easier. Didnt realise the trouble assigning a bmp aws a drop target. Public Class Form1 Private WithEvents uxSource As ...Show All
SQL Server Averages in Matrix
I am new to Reporting Services on SQL Server 2005 and I need help. I have a report that I have create below using matrices. Qtr 1 1 2 3 4 5 6 7 8 9 10 11 12 13 Total 2004 80 60 70 95 70 85 60 90 110 55 90 90 50 1005 2005 5 5 10 20 5 5 5 5 5 10 75 The columns represent each week in a quarter and the row represents the year the week is in and the details is the number of new accounts created during that particular week of the year. I have couple of questions. How do I get and average for the number of account creat ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to load a WaveFront model?
Hi. Using DirectX, how can I load a WaveFront model Or I can work just with the X model (I don't think so..) Tks. Thanks man. Wotsit seems to be a very good site. But just one more question (for this moment :D): do you think that I should load another kind of model, instead of WaveFront I'm using this model because it seems to be very commom to developers. Is it true Tks ;) ...Show All
Visual Studio Express Editions Why have case sensitivity in a language?
I started learning VB 2005 at first but then decided that for what I wish to do, C# was a better fit. I'm new to programming and when I discocvered that C# is a case-sensitive language, I couldn't think of any reasons why this should be the case. Surely case-sensitivity raises the chances of subtle problems in code due to mis-spelled variables, function names etc So why not do away with case-sensitivity if this is all it brings Or is there some, as yet unexplained, reason for case-sensitivuty in a language that I haven't come across in my learning process yet - Seef Hi, What ahmedilyas is saying is spot on, but me being a beginner myself I thought I might be able to add a little bit more to th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is *ANYTHING* the same as the last Beta?!?!?!
WHAT THE *&#@$ is wrong with you! ! ! ! ! Sorry guys, this totally pisses me off here... I had a solid game engine going with the last beta and now NOTHING works. Sorry, you guys suck for this one... Don't give me the whole beta schpeel either, cuz you DON'T change that much between betas, you have that nailed-down beforehand... If the last one was called "Alpha" I wouldn't be complaining, but wow this blows and I don't know if I'm even going to PORT my game from You to YOU!!! Re-*&#@$-diculous! @Jim: Nobody is going to participate in betas if they KNOW it's not worth it. I'm not saying people should start making release-commercial-ready products with beta software (well they can but it's their ris ...Show All
.NET Development How .NET 2.0 Application talks to SQL Sever 2000 DB. and vice versa ??
Hi I want any valuable help from any one in the following issue :- I want to know simply How I can make my Windows Forms 2.0 application talks to SQL Server 2000 AND How SQL Server 2000 talks again to the same application I ask : What is required exactly what is the standard technique for doing this Think of that as the following example :- An instance 'A' of my application sends a value to a stored procedure within a SQL Server 2000 database , and then the procedure talks to another instance 'B' of my application and give it the sent value , and finally redo this trip again but from 'B' to 'A' with a new value I wish this explain my request !! , and sorry for any bad english Thanks Mohamed thanks more for your reply BUT what I ...Show All
Software Development for Windows Vista "Error binding to target method." in Activity.Clone ??
We have a workflow with a while loop which is failing in the attempt to clone the contained SequenceActivity. It appears to be failing to FixUp the references to CodeActivity event handlers and CodeCondition event handlers. I can also reproduce the failure by Activity.Save() to memory stream followed by Activity.Load(). The only difference I see between the development environment where it works, and the server where it fails, is that .NET 1.1 and .NET 1.1 Hotfix were never installed on the server. John West Starz/Encore Not using xoml.. I reduced it down to a few custom activities and it worked. I added a single Code activity and it failed. It seems to be having a problem fixing u ...Show All
Visual Studio Express Editions How do I run a script such as calling the ipconfig.exe and place the output in a text box in a application Gui form?
I was wondering how to run or call command line executables such ipconfig.exe and ping.exe and place them into a form. I want the output from the ipconfig.exe to redirect back into a textbox in my visual basic express edition application form. Thanks!!!! Hello Jay, if you are still in need of this code i think i have code that you can use. Email me @ aclayto1@cox.net The Face ...Show All
.NET Development xml error
I try to load a xml file. When i do i get the fowlling error below Data at the root level is invalid. Line 1, position 1. Cisco < hi > < Spary106914 > < apop > < ActionName > MoveUpRelative </ ActionName > < Parameter > Distance </ Parameter > < Value > 0 </ Value > < Unit > cm </ Unit > < Notes > Click to add notes </ Notes > </ apop > < apop > < ActionName > MoveUpRelative </ ActionName > < Parameter > velocity </ Parameter > < Value > 0 </ Value > < Unit > cm </ Unit > < Notes > Click to add notes </ Notes > ...Show All
