Algorith's Q&A profile
Windows Forms How to filter properties in PropertyGrid?
I need simple control designer in runtime. I want set only several properties for several controls. For example Text for Label control and Size form my UserControl. I plan use PropertyGrid for this purpose. But it displays all browsable properties for every control. I need to set list of properties which have to be displayed in PropertyGrid. I try to create class MyPropertyGrid derived from PropertyGrid and class MyPropertiesTab derived from Pro ...Show All
SQL Server Running SQL Server Enterprise 2005 on MS Virtual Server
I keep wondering if this is safe. I am getting errors here and there along with the inability to connect to my database via connection string in ASP.NET no matter if the user has complete permissions or not amongst other difficulties and I wonder if this is causing a lot of the problems. WE are running SQL Server Enterprise 2005 on Microsoft Virtual Server. Is this approved Running SQL Server in a virtual machine sh ...Show All
Visual Studio Express Editions Visual C++ 2005 Express Edition trouble
I had the beta version and uninstalled it as directed on the site, seemingly without problems. I then installed the C++ Express Edition, again without problems. Though when I load it I get the error: Package Load Failure Package 'Visual Studio Explorers and Designers Package' has failed to load properly ( GUID = {8D8529D3-625D-4496-8354-3DAD630ECC1B} ). Please contact packe vendor for assistance. Applicaiton restart is recommended, due to poss ...Show All
Visual C++ Unicode characters in console-application.
I'm writing a program that prints the date in different languages, but it dosn't work with languages that uses the Unicode Character Set. Here's the source-code: #include <iostream> #include <locale> #include <time.h> using namespace std; int wmain(void) { wchar_t date[81]; time_t currentTime; struct tm tmTime; time(¤tTime); gmtime_s(&tmTime, ¤tTime); _wasctime_s(date, 80, &tmTime); loc ...Show All
Software Development for Windows Vista "Sound like you are locking for DirectShow"
I am a beginner of DirectX development. Could you tell me how can I use DirectX to manage my video equipment-Usb Video capture or camera Please give me an VB program example. Sound like you are locking for DirectShow: http://msdn.microsoft.com/library/en-us/directshow/htm/directshow.asp frame=true Some information’s about how to use DirectShow with VisualBasic can be find there: http://m ...Show All
Software Development for Windows Vista Rehosting Designer and name change through properties grid
I have rehosted the designer and attached a property grid to it. I use the Name of the root activity as the name of the assembly when I compile. However, when changing the name of the root activity through the properties grid, the Metadata value for Name does not get updated. So when I compile, it compiles under the old name. The workflow does however get serialized with the correct name Is there something I missing with this or is this just a ...Show All
SQL Server Can't uninstall or reinstall nonfunctioning sql server
In previous post in the Getting Started section, I discussed problems trying to run queries on multiple databases: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=299240#299240&SiteID=1 Nobody could help with the problem. I eventually got a query to run after several attempts at deleting and recreating databases. Then, I was hit with the following error message: Class does not support aggregation (or class object is remote) (E ...Show All
Visual C# Matrix to Vector3
Does anyone know how to get the vector (x, y, z) data from a matrix (And also how to get the pitch/yaw/roll from it if someone knows that) Found the X Y Z thing.. still looking for a way to get the pitch / yaw / roll from a matrix :) public virtual Vector3 _GetVector3(Matrix _Matrix) { return _GetVecto ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Distortion w/ Device.Present to another control & w/ SwapChains
I am having trouble using one device to render to multiple Controls. I have tried two methods, one using the Device.Present overrides to redirect output to a second control, the other is to use SwapChains with their device set to that second control. While both methods work in a way they produce the same baaaaaaaaad result: massive distortion of the result. What seems to happen is that when the second target is drawn the source rect ...Show All
Windows Forms Saving Files command
I'm having trouble trying to figure this one out. My Code is as follows: Private Sub btnWrite_Click(ByVal sender as System.Object, ByVal e as System.EventArgs) Handles btnWrite.Click Dim pswritCurrent as System.IO.StreamWriter &n ...Show All
Visual Basic Subscript out of range
This routine was copied from another one which works. However when this code is executed I get "9 Subscript out of range" error right after "charge = charge + m_FBI(intSubscript)" and "charge = charge + m_FBI(intSubscript)". When added it also causes my other routines to get the same error. Private m_FBI() As Currency Private Sub chkFBI_Click() On Error GoTo What_error MsgBox "START" intSubscript = selectCustomer.ListI ...Show All
SQL Server SQL Server CTP won't install as Express is there, but Bld Uninstall Wiz won't remove it...
What to do After 2 days trying (with only increasing frustration) to get SQL Server working on Net Server 2003 SP1, I'll try it on my dev box: XP Pro SP2. I've installed Visual Studio June CTP on my dev box, so guess that SQL Express is on it. Express Manager isn't installed apparently, so I can't just use that. So now when I try to install SQL 2005 CTP, it displays a dialog that old bits need to be uninstalled first. Add-Rem ...Show All
Windows Forms Tab Control Style?
Ive been trying to find out if the Tab Control in Whidbey supports any new styles - ideally we would like to use it, but would like the Visual Studio style tab (or anything other than standard), with the ability to place a close butto ...Show All
Game Technologies: DirectX, XNA, XACT, etc. beach bar (sims type game)
Hi all, For a university project I've decided to design a beach bar game that has a isometric sims type feel to it. Below is a list of ideas/proposals I've managed to come up with. If anyone has any ideas on how to improve or elaborate on any of the point listed, please drop a message, all feedback is appreciate, thanks! BEACH BAR GAME: Theme Set in tropical paradise beach resort, user competes with computer (or another networked pc) to see ...Show All
SQL Server How can I get primary key col and other two cols in the same table become one to one relationship.
For ex. Table Match_List ( MatchID, UserID_A, UserID_B) constraints like MatchID primary key UserID_A <> UserID_B unqiue index (UserID_A,UserID_B) but I wish to exclude duplicated rows like 1,1,2 & 2,2,1, cause UserA to UserB, and UserB to UserA are the same thing. How can I get this You can create a view based on table Match_list Create view Match_complet as sel ...Show All
