sampi's Q&A profile
Windows Forms Custom Control to act as container
Hello All, I've written a custom control which is basically a panel (with added features). I would like it to behave as a true panel - i.e. be able to contain other controls. Currently, any controls I place "in" the panel actually attach to my test form - they will not move with the custom panel. Is there a way of making a custom control behave as a "true" container Many thanks. Does your custom control derive from Panel If you derive from Panel, you should have all the functionality of a "true panel", be able to contain other controls, and do whatever else a panel can. ...Show All
Visual C# Tabcontrol - controls visibility
Has anyone ever seen this and/or have a work around The Parent form has a toolbar button that when clicked calls a method on the mdi form. The mdi form has a tab control, that has controls that need to become visible = true and visible = false depending on which tool bar button the user clicks. In my tests, this worked fine. However in the actual app, I cannot get it to work.. Here is the code that is not working; do you see a problem private void toolStripButton3_Click( object sender, EventArgs e) { // View Commission Schedule Button Click mdiform.ViewCommissionSchedule(); } // code from midform -> public void ViewCommissionSchedule() { // View Schedule - fired by parent form toolStripB ...Show All
Visual Studio Team System Application Diagram problem with WSE 3.0
I have a solution that contains an ASP.NET web service that uses WSE 3.0. It also uses a custom UsernameTokenManager. The application compiles and runs properly. However, when I attempt to open an Application Diagram, Visual Studio locks the diagram and displays the following error: Application definition MyWebService is locked because there is an error in C:\MySolution\MyWebService.web.config. WSE040: Type MyProject.MyUsernameTokenManager, MyProject could not be loaded. Please check the configuration file. The configuration file is correct, since the application works fine, and has worked fine for a long time. The web.config lines in question are: < microsoft.web.services3 > &l ...Show All
.NET Development Enterprise.Library help!
I've been having issues lately with Microsoft.com and it is the same issue as it is for this one. I've been getting a lot of "insert file name here" is not a valid Win32 application. The most recent one is with EnterpriseLibrary 2.0 (January 2006). I download and go to run the file and it comes back and says it isn't a valid Win32 application. I'm running 32 bit windows on a x86 so not sure what the deal is. Another file was some Hands On Labs. Pretty much anything in an EXE i'm having problems... is anyone else having these problems I've also cleared IE's cache so that I download fresh and it still happens.... this is getting very annoying! Sounds like you might have a virus of some ...Show All
Visual Studio Express Editions resources in visual c++ express ...
Hi, When I try to add a resource in the visual c++ express ... the resource part on the context menu is greyed out. For some reason it won't allow me to add a resource to my application. Is that a limitation with the express edition or is just my installation ... Thanks Please follow your post at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=668981&SiteID=1 and avoid duplicate posts. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio 2008 (Pre-release) Is there an equivalent of value in a WPF ComboBoxItem?
I hope I'm just missing something obvious here, but I cannot find what I need anywhere. What I want to do is manually populate a ComboBox with ComboBoxItems. On those ComboBoxItems, I want to set a string for display and an integer that is the key for use behind the scenes. I set the string to ComboBoxItem.Content, and it displays no problem. But where do I set the integer I have tried every field I can think of, and none of them work, when I pick something from the drop down and then check the values in the debugger, the SelectedValue on the ComboBox is always null. Every combo box I have ever used has supported this, and obviously, the WPF one does if it is databound with the SelectedValuePath property. But how can I get this to work wi ...Show All
SQL Server IDENTITY_INSERT, is it a good idea?
Hi, Today I discovered this command completely by accident and thought that ther are several places which we could use it in our apps. Talking with a colleague, he is not to sure as it new to him too. By using this to recover lost identity values, would this have any possible adverse effects on the table, indexes etc. I can see potential problems when constraints are set between tables/keys. Anyone with any experience using this good and bad would be useful to hear. Thanks Adam I have primarily used IDENTITY INSERT for DATA Import / Export jobs where i need to preserve the existing values of ID column and I do not want sql server to generate and I also want sql server to let me inser ...Show All
Visual Studio Document Activate Event, and TextSelection (ActiveDocument Text)
I am writing an addin for Javascript files - a dropdown similar to what you see when you open up a .cs file - with a list of all member variables and functions. I have a solution that works, but its got a couple hacks that I would like to know if there is a better way to solve: 1) To get the text of the currently active document, I do this: int currentLine = textSelection.CurrentLine; textSelection.SelectAll(); _Code = textSelection.Text; textSelection.GotoLine(currentLine, false ); while this works great, it causes the screen to flicker on the select all, and the scroll is lost when I go back to the line I was on . Is there a better way to get the text of the active document 2) Is there a way for me to know that ...Show All
.NET Development Scan entire hard drive?
Is there an easy way in .NET to scan through the contents of an entire hard drive The FileStream classes take paths or handles to files, but what I really want to do is just iterate over the content of a hard drive...including bits that are not part of files on the file system. Any ideas System.IO.DirectoryInfo.GetFiles() lets you enumerate the files on a volume. So does System.IO.Directory.GetFileSystemEntries(). The kicker is "bits that are not part of files on the file system". If that means "directory entries", no problem. If that means "file system structures like the MFT", problem. That takes low-level file system driver access in kernel mode. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to ensure that XNA succeeds
fostering the non-commercial game developer community is a great idea. however I think it would be more effective if you: 1) allow sharing of binary versions of the games. 2) provide a place on XBL where developers can publish their games (in binary and/or source form, possibly with gotdotnet-style source control). build a community around the games: high-scores, forums, multiplayer, etc... 3) prodive a cheaper 'read-only' membership to the XNA club so non-developers can enjoy these homebrew games. grouper wrote: > We definitely want to make all threee of those points happen great! here's another: 4) alow professional developers to expose XNA-hooks in their games (if they want) ...Show All
Visual C# Multi Interface inheritance
Lets say you have two interfaces: interface IA: IComparable { int A {get; set;} } interface IB: IComparable { int B {get; set;} } and a class which implements both IA and IB class C: IA, IB { } class C now has to implement CompareTo, but the problem is that CompareTo should do different things if being used to compare this object to another IA, IB or classC. How do you implement the CompareTo function For instance lets say there is code like this: C c1 = new C(); C c2 = new C(); IA ia = c2; int comp1 = c1.CompareTo(ia); int comp2 = c1.CompareTo(c1); In this case, comp1 should equal 0 if c1.A == c2.A, and comp2 should equal 0 if both c1.A and c1.B are equal to c2.A and c2.B. Since you can only have one CompareTo method on class C how do ...Show All
Visual Studio Problems loading August MSDN Library
During the install of the August MSDN Library, my syste blue screened and rebooted. After coming back up I've attempted to restart the install, repair and remove the library and I always get the same error message: The wizard was interrupted before MSDN Library for Visual Studio 2005 could be completely installed. Your cmputer has not been modified. To complete installation, run setup again. Click Finish to exit the wizard and run setup again. How do I get past this so that I can complete the install Karl This issue was resolved on Karl's machine. Since his machine got into locked state, we uninstalled all MSHelp-related applications (MSDN for VS 2005, Microsoft Document Explorer 2005, ...Show All
Smart Device Development How to sync/update local database with Database server database using c# Application
Hi I have a need to work on pocket pc application. Scenario: In general user will take database backup from database server to local system. User perform some changes to his local database based on his requirement. Again user connects to database server and click on update, local database should update to server database by informing each record status to the user. ex: record 1 updated / call closed do you want to update Here local database is going to be Pocket pc database and server database is on SQLDatabase. Can any one suggest best way to implement this feature in Windows Pocket pc, c#. I would appreciate your reply. Thanks, I have need to work in pocket pc application. Scenario: ...Show All
Windows Live Developer Forums Polygons
I have this great demographics layer in a GIS format that is separated into polygons. I would like to throw this layer onto VE and make each polygon highlight when hovered over. In addition, once I click on the polygon, it would either zoom into that area, or pop-up a window with more info, or do additional things...Has anyone done that already 1) Your going to need to convert that to a GeoRSS format, just look up "GeoRSS" on the forums and you'll find plenty of posts already referring to how to make one. 2) Upload your GeoRSS file using maps.live.com (go to collections tab --> open, then look for instructions on how to upload your file) 3) Reference your uploaded file (it will be assigned a u ...Show All
Visual Studio Express Editions how to use MessageBox in visual stdio c++ express 2005?
How to use MessaageBox in visual stdio c++ express 2005 Are all include and lib files in VC6 fold renewed in the "Platform SDK for Windows server 2003 R2" Yes, Visual C++ 2005 Express Edition has Unicode selected by default, and in the VS 2005 world, MessageBox is a macro that expands to either MessageBoxW or MessageBoxA depending on whether compilation is for Unicode or not. With regard to your first question, not all of the libraries available with Visual C++ 6.0 (and Visual Studio 6.0) are available with the express edition. There is no support for MFC (or ATL). - Dennis ...Show All
