rumblespaul's Q&A profile
Windows Forms Input from a Barcode Scanner
I have project that requires input from a barcode scanner. Getting the plain text version of the barcode into the field that has the focus is not a problem. However, I would like to call a routine once the field has been updated with the b ...Show All
SQL Server about error
My Reportingservice can be used no longer. when i open an existed project or new a project,Error is as follows:the application of This project's class(.rptproj) is not installed. How should i do Did you change your SQL or RS installation The error means the Visual Studio package for RS can no longer be found. ...Show All
Visual C# enums, ints and strings
Is there any way to convert an int value into a string representing an enum value enum ViewMode { View Mode0, ViewMode1, ViewMode2, ViewMode(n) }; int vm = 2; txtViewMode.Text = ... {turn vm into a string, "ViewMode2"} Can this be done Yes it can be done. But why use enums in your case Care to elaborate why you can't use a simple array of strings :) Anyway here's how to do it. Use the static m ...Show All
SQL Server Why use nested table?
Hi, all here, I have a question about nested table use. I dont quite clearly see through why the nested table is very much necessary I mean if we need information from both the current case table and nested table for mining models, we can just join both tables Thanks a lot in advance for any guidance and help. You can post this question on SQL Server Data Minig forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=81&Si ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unmanaged directX and .net windows form
I have written (with a pointer from you lot here - thanks) a visualisation program in unmanaged C++ DirectX. Everything works fine, however I need to be able to change and edit parameters of the model with the usual text input boxes and track bar, as well as haveing a menu with different options. I have written a little windows form program that does this but wihout the directx stuff. I would like to add my DirectX work into a window in the f ...Show All
Visual Studio Team System Show all files in a project which are out of date
Is there a way to show all the files that are not the latest version in a workspace i.e Out of Date Thanks Richard Entering the project didn't seem to work, but if I omit that I get what I was looking for, a list of out of date and missing files. Many thanks Richard. ...Show All
Windows Forms How do I print multiple lines using graphics.drawstring?
I tried g.drawstring("test1", ...) g.drawstring(controlchars.NewLine, ...) g.drawstring("test2", ...) it prints on the same line. How do change line Thanks and Regards! i have found that using "\n" in a string does cause a newline to be printed ...Show All
Visual Studio Team System Creation of Non-Source / Empty Projects
Our company has traditionally used Visual SourceSafe for both code projects and document management. I'm evaluating the possibility of migrating to TFS Source Control. I understand how to create a development / code project. However, I have been unsuccessful in creating a non-source project. Let me clarify by saying that I'm not talking about adding non-source files to a development project, I'm talking about an entire "project" and/o ...Show All
Visual C++ Why SetViewportOrg can not work for Memory DC?
The following is a simple code. The class CSrlBufBarView derived from CScrollView. If we delete the line dcMem.SetViewportOrg(ptImgPos + dcMem.GetViewportOrg()); - just don't call SetViewportOrg for Memory DC, it's OK. But when I call SetViewportOrg, painting is error. void CSrlBufBarView::OnPaint() { CPaintDC dc(this); OnPrepareDC(&dc); CDC *pDC = &dc; TRACE("viewport of dc is (%d, %d).\n", dc.GetViewportOrg().x, dc.Ge ...Show All
Visual C++ Support for dual core and dual CPU
When does Microsoft plan to add support for dual core and dual cpu when compiling C++ code I was asking the same question 8 years ao when I got my first dual CPU machine. Did not get any answer. Distributed compilation like Incredibuild would also be nice to have. Regards Lars Schouw Ted. wrote: ok this is killing me, take a look at the following file for another clue ...Show All
.NET Development Permissions required to Use System.Diagnostiscs namespace
Hi, In ASP.NET 1.1, we have developed a module which includes a call to GetProcessById() function of System.Diagnostics.Process. This works fine if the ASP.NET is running under System context or if the ASPNET user is an administrator. The problem is, in the user's machine, the user context under which the ASP.NET is going to run should not have adminstrative privileges. At that time, this shows an exception with the ...Show All
SQL Server SQL Server Express Security?
We are releasing an application built on SQL Server Express in the next few months. Our clients are mostly small companies with little technical knowledge, and they will be using our application on desktop computers where everyone likely logs in as the same user. As such, my thinking is that we setup SQL Server Express as in SQL Server Authentication mode. This way they could select an Administrator password upon first installa ...Show All
Visual C# How can I launch my another managed executable file ?
The sitaution is like this : I have a windows app. executable file say a.exe and I want to launch this a.exe from the Main() method of another console project. Help, please. //you can also start your executable as a process using System.Diagnostics; public void Main( string [] args ) { string Myexe = @"C:\\run.exe"; Process run = new Process(); run.StartInfo.FileName = (M ...Show All
Visual Studio Running Assembly-based tests with build server.
Sorry if this is a repeat - I couldn't find anything though. We have what I thought would be a pretty common scenario - we have a couple of projects containing our automated unit tests and we want to run these as part of the build. In normal unit testing behavior, we don't want to maintain any lists of the tests, we just want to say "run the tests in this assembly". On the desktop, that's very straight foward, we just throw out a ca ...Show All
Windows Forms ListView in dotnet: Getting currently displayed items at scrollbarposition
Hi, how can I get only the items that the user actually sees To be more exact: The items that are shown in the client area at the specific scrollbar position the user currently has set. Greetz, Sven. If you are using the ListView in details mode: Use the ListView.TopItem to get the first item currently visible in the list. Then call ListView.GetItemAt using x=1, y=ListView.ClientRectangle. ...Show All
