mabxsi's Q&A profile
.NET Development SerialPort WinIOError
Hello, We're using the SerialPort class for RS232 communication. Sometimes, but not always, our application aborts with the following stack trace: --------------------------------------------------------------------------------- 2006-08-25 13:54:25,067 [2980] ERROR DemoComm.Utility.Logger [] - The I/O operation has been aborted because of either a thread exit or an application request. 2006-08-25 13:54:25,067 [2980] ERROR DemoComm.Utility.Logger [] - at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str) at System.IO.Ports.SerialStream.set_BreakState(Boolean value) at System.IO.Ports.SerialPort.set_BreakState(Boolean value) at DemoComm.PDO.Port.PinChanged(Object sender, SerialPinC ...Show All
SQL Server Is using a named instance better over using a default instance??
If you were asked to install SQL 2005 on a machine, would u install a default instance or a named one And why would u choose one over the other Also, r there any issues with using a default instance Thank you for all your help. Named instances allow for somewhat better server management -the names could reflect the SQL version. In an enviroment with lots of servers, various migration projects in play, and future upgrades, a simple way to know about the server is quite valuable. For example: Instance Name: LON_ACCT_Std05 Instance Name: NYC_HR_Ent05 Instance Name: DEN_INV_Exp05 Instance Name: LAX_ORD_Dev00 ...Show All
Visual Studio Passing Parameters to Crystal Reports 10 using Visual Studio 2005
I have been looking all over the place and I am looking for a way to generate a stand alone Crystal Report using a parameter passed from a form in Visual Studio 2005. I don't want the report to be attached to a reportviewer, I just want the report to be opened with the parameters being passed to it. How would I do such a thing I have been looking for the answer and I cannot find it. What is SetReportLogin I'm having the same issue, and do indeed agree it's a bug, but your "fix" doesn't exactly explain anything. Mindy Jeanne ...Show All
Visual Studio Express Editions how to calcuate log
Hi Guys, I am tryinig to figure how to calculate the standard deviation of a data set. For any of you who trade stocks I want to create a function that calculates bollinger bands. Any pointers of samples Calculating standard deviation ..... Thats the 2nd request in as many days on the forums. Is this a homework assignment ...Show All
Visual Basic Running EXE without Framework
So i made a program for this website. But i don't want the users to have to go threw the hassle of having to download .NET Framework just to run it. (Some use this program on Work Computers where they have restrictions on what can be installed) I am using Visual Basic 2005 Express and would like to know how to build to program to include all files needed to run so the other DO NOT have to install .NET Framework. If you wish to run a VB.NET or a C# application it is dependent upon the .NET framework being installed on the machine. There is absolutely no way around this, it has to be there. If you want to create code that is not dependent upon the framework you may want to look at a language like C++. That said, you can create a C ...Show All
Windows Forms C# Combobox ValueMember problem
Hi all, I'm pretty new to the world of C# and .Net and enjoying it so far. I'm having trouble setting the index value in a combobox. I'm using MySQL connector/Net and because it doesn't provide certain tools/extensions to work with Visual Studio I have to do certain things manually (which isn't problem because it helps me understand C# and .Net better). :^) My original intention was to take names and ids from a table and use the id as the index in the combobox list and the names as display. I get a full list of the names no problems. But the index is always the same, integers incremented with each item. As you can see I've tried creating a table myself and it still doesn't work. You will get a better idea of what I'm try ...Show All
Windows Forms dependecies not updated on target computer changing version
Hi all, I have a problem with my set up project (created with visual studio "set up project" template). I can summarize my scenario in this way: the main project is a windows application using several other libraries, each contained in another project of the same solution. When I have created the setup project, the dependecies to library projects are correctly resolved and the result msi can be used in the target machine for installation. The problem is when I make some change to the libraries. When I finish with changes I increment library version and rebuild the setup project. Now, the setup project correctly refresh the version of the dependencies. The problem is with reinstalling the application to the target mach ...Show All
Visual Studio 2008 (Pre-release) Insert image with dlinq
I want to do the following var qry = from c in db.Customer select c; foreach ( var cust in qry) { cust.Photo = pictureBox1.Image;// won't compile why }; isn't this the way it should work cust.Photo.PropertyType = System.Byte[] cust.ServerType = image the compilation error is : Error 1 Cannot implicitly convert type 'System.Drawing.Image' to 'byte[]' the type of picturebox1.image is not definied yet, it will be loaded at runtime, will be a bmp ...Show All
Visual C# Changing "run on failed build" setting
Hi there, After reinstalling visual studio when i ran my project it popped up a message box "there were errors do you want to continue to run with the last successful build " I accidentally clicked yes and I have looked everywhere for a checkbox or something to turn this off. Please any know how to do this Tools\Options -> Projects and Solutions -> Build and Run -> On Run, when build or deployment errors occur: Do Not Launch. Michael Taylor - 2/8/07 http://p3net.mvps.org ...Show All
Smart Device Development only get files with the correct extension
Hi! I want to get all the files in a folder that has an extension matching one of the extensions in a string array. How do I do this Thanks, Martin Hi, Try this: String[] files = System.IO.Directory.GetFiles("C:\\", "*.txt"); -- SvenC ...Show All
Visual Studio Building error: Type or namespace name 'Reporting' does not exist in the namespace 'Microsoft'
Hi! I get the following error when trying to build my project: " Error 2: The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) " I use VS 2005 Pro and I have installed (and re-installed) the ReportViewer package found in "Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer". I have checked that the web.config file contains the http-handler: <httpHandlers> <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=XXXXXXXX" validate="true" /> & ...Show All
Visual Studio Express Editions Mysql On Webhost
Hello to all on this lovely cold day Ive got a webhost that supports many mysql database's so I've got a few questions to ask if someone has got the time please. If I create a database application in vb.net, and imported the fields through phpmyadmin on my webhost, Can I access the database from my webhost by just changing the connection string and would multiple users be able to access the database this way aswell What are the speed concerns involved using this method aswell Thanks guys, shades ...Show All
Visual Studio Express Editions Reading Lines in a Text File
Hi I currently have a text file (textfile1) which contains 40 lines. Each of these lines contain data stored in the following way: nameofthis = value nameofthis2 = value nameofthis3 = value What I would like to accomplish, is to read these values, with a variable assigned to each "nameofthis" variable. I thereby mean that the program should read each line, check what the name before the "=" is, and then check if the variable for this value exists. If it does, it should read the value after the "=", to the specified variable. For instance: TEXTFILE CONTENTS (textfile1): name = Johannes surname = MySurname email = me@myself.com PROGRAM: ' Variables Dim name as String Dim email as String ' Read the ...Show All
Smart Device Development How to zoom pictures on WM2003 and WM5.0
Dear Sir, I would like to develop an application on windows mobile 2003 and 5.0 of the following features: 1, The camera shot a picture and display it on the mobile device’s screen. 2, Since the resolution of the device’s screen is usually much poorer than the picture, users would like to zoom it. The scenario could be designed as following: there are a small circle on the snapshot of the picture. Users are capable of moving it via keys. When selected, the screen display the zoomed portion of the picture. I am a beginner of windows mobile developer, I am not acquaintance with the resources of windows mobile sdk and .net compact frame work. I could you tell me how to realize the above effect as well as t ...Show All
Visual Studio Team System Error 28002 installing Quiescence tool (919156)
I'm trying to install the tool mentioned in http://support.microsoft.com/kb/919156 as a prerequisite for installing service pack 1 for TFS. I'm getting an error message when it tries to install: Error 28002.Error Unknown Any ideas -dave You should delete more than one user. At least thats what i had a lot of problems with. I deleted 1 user for the 919156 fix, but this update inserts a service account to the licenced users. So when you try to update to SP1 the licenced users list again is full. So save yourself a lot of trouble and delete a couple of users just to make sure you can execute both updates after each other. ...Show All
