SLang's Q&A profile
Windows Forms Locking a form from being re-sized
I have a winform with its "Locked" property set to true in its property page. But oddly enough, when I run the application, I am still able to grow or shrink the form. What am I doing wrong is there any other property that needs to be set The Locked property is to lock the controls on the form at design time. This helps you prevent yourself from moving controls when you have them set up just like you want them. To prevent resizing the form, use the FormBorderStyle. ...Show All
SQL Server Can MSDE 2000 upgrade to SQL Server 2005 Standard Edition directly?
According to this http://msdn2.microsoft.com/en-us/library/ms143393(d=robot).aspx , it seems that it cannot. But is this a complete chart Thanks for any help, Peter Hi Glenn, I have just tried it and it is blocked by upgrade rules. I'm speculating that the sql server 2005 in sbs is not really standard edition but workgroup edition. Peter ...Show All
Visual Studio Team System TFSWarehouse not updating
Hi! I have serious problems with my TFS Server and the TFSWarehouse database. I can't get it to update, no matter what I try there is no response when I am in the warehousecontroller.asmx and selects Run. The status shows ProcessingOLAP for a second, but then back to idle. No errors is reported at all in the Eventlog either. Here is my story: This weekend I moved my TFS from one server to a another (Both environment is Single Server Deployment). And everything worked as expected, I runned a warehouseupdate manually during this upgrade, and everything seemed to work. When I came to work today I checked some reports only to find out that the last update of the warehouse was on saturday (the day I did the move). When I saw this I ...Show All
Visual Studio Tools for Office CustomUI / Ribbon Schema
Where can I get a copy of the ribbon schema http://schemas.microsoft.com/office/2006/01/customui , I cannot seem to find it anywhere. Thanks. There are two places you should keep handy for Office 2007 schemas: http://openxmldeveloper.org/default.aspx and http://msdn.microsoft.com/office/tool/ribbon/default.aspx It is helpful to remember that this forum is mainly for issues that directly pertain to the Visual Studio Tools for Office tools per se. So you will be best served by posing this question to a forum or newsgroup wholly dedicated to application-specific issues such as yours. John. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Do most SDKs do grapics, such as 3D?
As far as Managed Direct X, and Visual C# Studio Express,with XNA, do those have a way of creating the actual graphical interface for the game, such as 2D or 3D, or do I need Adobe Photoshop, or Maya, or some other program I currently havn't been able to download them because I am temporarily on dial-up internet, which also makes me not want to do too much looking aroudn, due to long loading times. Thanks for any help you can give me. XNA Game Studio Express will not come with any 3D DCC tools in the box but we are working with the industry on getting good tools out there that support the XNA Framework and particularly the XNA Content Pipeline. Once the content pipeline is in people's hands I suspect we'll see better support fo ...Show All
Visual C# How does one EXIT a foreach loop
If I am looping through a collection and find what I am looking for, how do I exit this loop Hi.. try { if (flgstop == false ) { //strfindpath = txtSearchFilesorFolders.Text; foreach ( string d in Directory.GetDirectories(sDir)) { foreach ( string f in Directory.GetFiles(d, strfindpath)) // txtSearchFilesorFolders.Text )) // + "*.xml")) // Condition to search file in only XML File { Listbox1.Items.Add(f) } DirSearchFile(d); Application.DoEvents(); if (flgstop == true ) { lblMessage.Text = "Stop Searching.."; break ; } } ...Show All
SQL Server How do I get bold and normal formatted text in a single field?
In SSRS I am trying to get a textbox value to hold text with a mixture of formatting, along the lines of "name (country)" where the "name" part is bold and the "(country)" is normally formated. Can anyone help Thanks in advance. kenny125 wrote: Is it possible for you to just use 2 cells I don't think so. I'm trying to reproduce an existing report and the formatting is exactly as in my first post. Basically I have a table and the first column is a concatenation of the Organisation Name and their Country with the Organisation in bold and the Country normal. I've tried having two additional columns, one with the Organisation Name (in bold) and the other with the Country (not ...Show All
SQL Server Using Stored Procedures to build the Report Model
Hi, I plan to use my stored procedures to build the ad-hoc reporting model Can someone please tell me where to use the OPENROWSET hack mentioned in this post (below) to create a datasource view for building the Report Model. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=345209&SiteID=1 Appreciate your help Thanks. ...Show All
Smart Device Development How to enumerate the front-camera through DierctShow under WM5.0??
I have a Xda Exec device, which has a back-camera (beside battery) and a front-camera (beside LCD screen). I can enumerate the back-camera (CAM1) using the FindFirstDevice() API. I assume the front-camera (CAM2 ) can be enumerated by FindNextDevice(). However, it is strange that FindNextDevice() return FALSE when I try to use it to enumerate the front-camera. So, does anyone know: 1. Is the LegacyName of front-camera "CAM2" 2. How to enumerate the front-camera Thanks Hi I think we can do that by some other means.....becoz i am getting this sort of problem in "Toshiba-DT1" model. Might be there must be some way where we can achieve this. One ...Show All
Windows Forms What would cause a program to try to reinstall itself when someone tries to run it?
I created a setup project for my application (written in VB.NET 2005) and produced a setup and MSI package. The IT Administrator used the MSI package to install my application on Windows Terminal Servers. When he installed my application, he correctly went into install mode by typing "change user/install" from the command prompt and "change user /execute" after the install was done. However, when some users try to run my program they see a dialog box indicating it is trying to install my application. This is then followed by the error message: " Only administrators have permission to add, remove, or configure server software during a terminal services remote session. If you want to install ...Show All
.NET Development Site License protection schemes, defeating Reflector?
I am invovled in the development of a programmer tool written in asp.net 2.0. My company is interested in securing this tool via an encrypted license file. However, we realize that anyone using Reflector could easily crack our protection. One way around this would be to make extensive use of web services, but this is not an acceptable solution for us. Would using unmanaged code to perform some core functionality solve this problem The unmanaged could could check the encrypted license file and when decompiled, it would not be as insecure as decompiled managed code. Has anyone done this Is the theory sound How about obfuscation http://blogs.msdn.com/clrsecurity/archive/2005/05/26/422440.aspx ...Show All
Windows Forms SplitContainer Panel MinSize Defect?
I have a vertical split SplitContainer inside the top panel of a horizontal split SplitContainer and am trying to set the panel2 min size for it. I'm getting the following designer error: SplitterDistance must be between Panel1MinSize and Width - Panel2MinSize. This is somewhat confusing first of all, since the change was made in the designer. In the first instance therefore, I'm assuming this is a bug in the designer. The logic of the error message is that SplitterDistance should be between 0 and 560 minus 243 i.e. 317 which at 311 it is. Has anyone else come across this or have a workaround // // splitContainer2 // this .splitContainer2.Dock = System.Windows.Forms. DockStyle .Fill; this .splitC ...Show All
Visual C++ Problems just adding a message to WndProc in a Win 32 API code.
Hi to all, I have add the WM_XBUTTONDOWN message in my WndProc() in this way: switch (message) { case:WM_XBUTTONDOWN: WPARAM wParam; LPARAM lParam; break; ... } but it gives these errors in the same line: (line 151) error C2065: 'WM_XBUTTONDOWN' : undeclared identifier (line 151) error C2051: 'case expression not constant ' I have added "Windows.h" and the folder where it is. Whats the problem Ben Anderson MSFT wrote: Did you add that define before any includes Yes Ben Anderson MSFT wrote: Make sure you're not setting it to a different value anywhere else in your code. If ...Show All
Visual C# Wierd error : Attempted to read or write protected memory. This is often an indication that other memory is corrupt
Ok I have a project that runs fine from the IDE, the problem is if I install the app or run it from the bin\release folder then I get this error on one of my method calls. I have tried this on a test machine and on my development machine and the results are the same. I have spent hours trying to figure this one out....... The crazy thing is, the method shows up in the stack trace but there is not code at all executed in that method. You should set you Debugger in VS2005: Tools->Options Debugging->General uncheck option "Suppress JIT optimization on module load" ...Show All
Visual Studio 2008 (Pre-release) Terminal Server and WPF
Hi together, many customers are using Terminal Servers for our application. So my question is, is it possible to use WPF applications via Terminal Servers Are there any restrictions Cheers, Franz My onsite workspace and the WPF dev box are not in the same building. I have been using Terminal services have not seen any issues in this setting. This is on different subnets but on the same local area network. Coming in from the internet (several hops) there are some small pixelation issues randomly from time to time, but I am not sure if these are server related or client (desktop) related. In another setting I have NOT seen these issues where the server and desktop were on the same Broadband (Comcast) ...Show All
