samardjiev's Q&A profile
.NET Development Erase From ArrayList
Hi There, I am trying to initialize an arraylist, The method I have came up with is for ( int i = 0; i < wordArray.Count; i++) { wordArray.Removeat ; } The problem is I get an error message saying Error 1 Only assignment, call, increment, decrement, and new object expressions can be used as a statement Any help appreciated, Chris looks like you are trying to clear the items in the array, not initializing the arraylist. why dont you just use the Clear() method to remove the items in the arraylist theArrayList.Clear(); the arraylist is initialized when you create an instance of it... ArrayList theArrayList = new ArrayList(); as well as this ...Show All
Visual Studio error in debug
In vb 2005 I got an error in debug. When I stopped debug I could no longer get to my form design. Then I ran debug again and it asked if I want to run the last good build and I say OK. and it ran great. But when ended debug, I still could not get to my form design. How do get back to the last good build. Do delete something in the debug folder What this means is that the bin\foo.exe that is sitting around from last time could still be run - it has not been overwritten by the compiler as yet. It's not a "backup" per-se. John ...Show All
SQL Server Run simultaneously msde 2000 instance and one of 2005 express, possible?
Hi, I got on my developer computer one instance of msde 2000. I want to test sql server express 2005, can I install it without "scrap" my other instance of 2000 Strange question maybee, but it's what I wanna do! Thanks all! ...Show All
Visual Studio Express Editions Button click event adding MessageBox record not found
I am trying to add some code to a button_click event that will bring up a record from an sql database and have a message box execute if no matching record is found. like "Record was not located" any help or ideas would be great. Thanks Frank104 Private Sub btnFind_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Click Cell_DataITableAdapter.FillBySiteCommenName( _ Cell_DataSQLDataSet.Cell_DataI, txtFind.Text) Me .txtFind.Clear() End Sub when filling the record into the dataset, after filling it check the tables/rows to see if there are any items in there and if not...no records. Example: if Cell_DataSQLDataSet.Tables ...Show All
Visual Studio Team System Microsoft.WebApplication.targets project wasn't installed out the box
I just had my first build finally running (hurray, hurray). But among the other reasons it failed because it couldn't find imported project. The error was: "The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets" was not found" I checked that folder and it has TeamBuild, ReportingServices and CodeAnalysis folders with relevant targets but no WebAplications folder and targets. What's the problem My build includes Web Application Projects (which was upgraded from Web Site). I know that Web Application project is rather recent patch for Visual Studio so I guess there might be pathces for the TFS Build as well... Am I r ...Show All
Visual Basic Dynamic drawings in VB.Net
Hi, Is there any VB.Net equivalent to the vbXorPen and vbNotXorPen options of the DrawMode property in VB6 These options were very usefull to create dynamic drawings. Thanks by advance, Pierre Hi Reed, There must be something I missunderstand. Trying your sample code in my application, I actually obtain an ellips that moves with the mouse pointer, but the initial drawings are all deleted as soon as the mouse pointer enters into the PictureBox. So the ellips moves on a white surface ... For information, my PictureBox contains axis and scales plus several curves ploted point by point. I have implemented a re-drawing of all these items in the form_paint event of the form that contains ...Show All
Visual Studio 2008 (Pre-release) Arrange content on non-visible tab
I am using the content on a non-visible TabItem as the brush on a Popup (like the preview thing in Vista). Something like this: ... VisualBrush brush = new VisualBrush ((previewTab.Content as Panel )); brush.Stretch = Stretch .Uniform; this .popupContent.Background = brush; brush.AlignmentY = AlignmentY .Top; this .popup.IsOpen = true ; ... It worked nicely with May CTP but on June CTP the content on the tab is not arrange until I actually activate the tab How do I force a repaint/arrange update content thingy I have tried UpdateLayout() and the various Invalidate* methods but with no luck. Best regards, Thomas Andersen ...Show All
SQL Server Saving Image to Db using ADO. Crystal v6 Problem
Hi folks, I am really hoping there is someone out there with the answer to my problems I need to save customer signatures to our SQL DB and then display them on a Crystal Report. The problem is that the client uses Crystal v6. I am saving the image to an Image field using an ADO rs on a VB6 application. It saves fine and will read back fine. Crystal however has a problem and throws an error "Not Supported".(Later versions of Crystal erad the images fine) Northwind Database has a Table 'Categories' which as images that crystal v6 is able to display. As of yet I have been unable to save images in this format. I have tried .bmp,.jpg ...... I have also tried appendChunk.. All the images on Northwind start with '0x151C2...' ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Effects Manager
In reading the documentation it seems that you cannot have a (working)camera without passing through an effects. Would it then be better to create an effects manager class to handle exposing an effect update method accepting a camera argument, or better to just load up an effects cache and have the camera class grab what it needs each time. The effects uses the WorldViewProjection matrix as you may have to implement a camera in your game project. using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Components; using Microsoft.Xna.Framework.Graphics; namespace XNACamera { public class ...Show All
SQL Server using sql server agent stored procedures to execute a package
hi everyone, awhile back someone (i think it was darren) submitted a post which had a code example of using sql server agent stored procedures to execute a package. i searched for the post, but i didn't find it. anyway, can someone please re-post that example or provide a similar one thanks. Duane Douglas wrote: michael, thanks, but actually i am seeking an example which creates a sql server agent job for a package using sql server agent stored procedures. no one has a code example of how to do this darren anyone ...Show All
.NET Development How can I create a packet using a Byte array??
please can anyone tell me how can I create a packet to insert it into a byte array using c# or any comments on how to create the structure to modify the values of the packet and convert it into a byte array THANKS ...Show All
Visual Basic Creating in VB.Net an application with a shortcut that includes input parameters
Hi everyone, I've been trying to find some information a code samples to develop an application that can read from a shortcut the specified parameters but no luck at all. For example, I want to have shortcut with a parameter for station number. When I click on it, the station number specified lets say 100.0 its used as an input parameter to do some validations with it. So in my code, I can process the station i.e. sub process(station) msgbox("The station is:" & station") end sub Thanks everyone for your help JP Hey everyone!! Well, finally I found a way of doing this. There are 2 options. The first one is to create a Console Application, and read the settings with Command. For example, supposing you ...Show All
Visual Studio Team System 28940 Error when Installing TFS
I get the following error when attempting to install TFS: Error 28940.TFServerStatusValidator: Calling the Team Foundation Server ServerStatus Web service failed with 503 HTTP ServiceUnavailable status. Verify that Internet Information Services, Windows SharePoint Services, and ASP.NET are configured correctly and that ASP. NET v2.0 Web Service Extensions are allowed . For more information on troubleshooting this error, see the Microsoft Help and Support Center. Any suggestions on how to troubleshoot this problem would be appreciated. This is an extract from the log where the error occurred: 05/05/06 13:08:25 DDSet_Status: Hiding command line parameters 05/05/06 13:08:25 DDSet_Status: Commandline: "C:\DOCUME~1\SQLSER~1\LO ...Show All
SQL Server How to set the default value for a datetime culomn?
I try to set a default value (getdate()) for a datetime culomn in sql mobile, but got error when i insert record: there was a syntax error in the date format. [expression = getdate()] may be I can only set a exict date Duh , He encapsulated it in an expression which started with a ( and so it ended with a ) It is correct. He did not just use the function getdate() as you indicated here. ...Show All
Visual Studio 2008 (Pre-release) Best Way To Animate Image Sequence
What is the best way to animate a sequence of PNGs so that it plays consistently smooth Currently I am preloading the images into a BitmapImage array during app startup and I am also both applying caching and setting scale quality to low: //inside a loop bitmap = new BitmapImage(); bitmap.BeginInit(); bitmap.UriSource = new Uri(@"pack://application:,,/Images/img" + i + ".png"); bitmap.CacheOption = BitmapCacheOption.OnLoad; bitmap.EndInit(); BitmapImageArray[ i ] = bitmap; RenderOptions.SetBitmapScalingMode(BitmapImageArray[ i ], BitmapScalingMode.LowQuality); I set the Source proprty of an Image object to the desired BitmapImage within a CompositionTarget.Rendering callback. On Vista RTM the animation doesn't ...Show All
