Y.S. Shim's Q&A profile
.NET Development How to reset user.config section collection back to app.config defaults
I have implemented a basic Add/Remove/Clear ConfigurationSection collection. I want to have an application config file that holds default configuration items that the user can modify and store. The user's change should appear in the user.config files as Adds and Removes relative to the app.config. This all works great. However, I want to provide an option for the user to reset their configuration back to the default contained in the app.config. (ie, I want to delete any add,remove, clears from the user.config.) However, I cannot figure out how to do this in the ConfigurationManager, ConfigurationElement APIs. I have tinkered with the Conf ...Show All
SQL Server sql mobile database connection on a desktop application
Hello, Was wondering if its possible with VS 2005 to create and populate a SQL Server Ce database on the desktop Reason why I'm asking is it takes a very long time (~40 minutes) to process xml and insert the values into the sdf database on the Pocket PC. I would assume it is much quicker to create the database and insert records on the desktop. Any suggestions would be appreciated. Thanks Hi to all in this forum. have been involved in this discussion for over 3 weeks now and here is the perspective from what I now understand. MS does NOT support direct management of Mobile SQL:data on the desktop EXCEPT for the foll ...Show All
Windows Forms Embedded user control in Internet Explorer - cannot connect JavaScript handler to an event of the control
Hello, I'm currently working on a windows forms user control embedded in a web page. The user control is implemented on .NET Framework 1.1 with Service Pack 1. The control performs a long operation in the background and at the end it needs to notify the host (the web page viewed in Internet Explorer) that the operation completed. I followed every single guideline discussed on Microsoft websites but I've been unable to connect the event handler (written in javascript and embedded in the web page) to the event. No matter what I do, there is no delegate attached to the event. I implemented my control in a similar manner to the one pre ...Show All
Smart Device Development Matching enumeration with reflection in Compact Framework
I am trying to match an enumeration defined inside a class that is instantiated as an object with an Activator in the Compact Framework. Code Snippet: public class MyClass { public enum EnumeratedType : short { // Requests RequestA = 0x01, RequestB = 0x02, // Responses ResponseA = 0x11, ResponseB = 0x12, }; } The object is instantiated thus: Type t = Type .GetType( "MyClass+EnumeratedType" ); object ob = Activator .CreateInstance( t ); If ob is then set to, say, 0x11 by another operation, I need to access the string of the enumerated name, but ...Show All
Smart Device Development Can't deploy project to emulator or device in Visual Studio 2005 Beta 2
When I build a C# project and try to deploy it to the emulator or device, a message box always pups up and says "No such interface supported" and the deployment fails. A error message in the output window shows: "Error: The operation could not be completed". Can someone help me to solve this problem Did you have a previous version of VS2005 installed on this same machine It sounds like there are conflicts between certains dlls. You may want to try to completly remove the betas of VS2005 using the tool from : http://go.microsoft.com/fwlink/ LinkId=47598 If the problem still happens, could ...Show All
Architecture Design pattern for interactive communications between users
We have a need for two users to communicate interactively over a VPN connection through a DMZ. We are considering a smart client (internet side) talking to a web server (in the DMZ) talking to a smart client (within our network). Wondered if anyone knew of a design pattern (or any other solution) to this problem. Well there's always peer to peer Instant messaging solutions (IM). you can enhance the security of such solutions using tools like the following http://www.ccl.co.uk/FaceTime.html Arnon ...Show All
Visual C++ Where do find MCSD info
Dears, i have been searching for MCSD tutorial or some documentation to prepare on VC++. Could anyone plz help me. Thanks in advance. Regards, SheerProgrammer. sheerprogrammer wrote: Dears, i have been searching for MCSD tutorial or some documentation to prepare on VC++. Could anyone plz help me. Thanks in advance. Regards, SheerProgrammer. See http://www.microsoft.com/learning/mcp/mcsd/requirementsdotnet.asp ...Show All
.NET Development Avoid Repetition of primary tables's record
hi all, can you tell me how to avoid repetition of main records when one main(Primary table) record have more than one child(secondry table) records. I am using DataList to show records. For example I want to show the following Tools & Equipment http://www.mobmasti.com MobMasti Mobile Portal Manufactures http://www.manu.com Manufacturer desc manufactur Rental Companies http://www.rentit.com Rent It rent it desc Buy & Sell http://www.mobmasti2.com MT desc Manufactures http://www.allofuse.com all stff desc Employment http://www.mobmasti. ...Show All
Windows Forms use a variable to cycle through textboxes
I have about 15 textboxes, all of which I want to save in a string array. Right now I just code: array[0] = txtbx1.text array[1] = txtbx2.text.... and so on. Is there a way that I can use a for loop and use x instead of 1 and 2. so it would look like this: For( x=0;x<=15;x++) { array[x]=txtbx + x.text; } instead of writing it 15 times Thanks. Use the Controls property of the form to get a collection of all controls on a form. The following code iterates through all the controls on a form. If the control is a textbox, it adds the text property of the control to the ar ...Show All
Game Technologies: DirectX, XNA, XACT, etc. problem loading .x file
Hi I wrote a code to load and display a .x file. The .x file i am using is provided with the SDK itself namely tiger.x. It is not loading the file. The same code is working fine on a different PC with a different version of Direct-X(older one). Is it a problem of Direct-X version as i have tried two three versions and each of them is giving me the same problem. I have checked everything from file path to the x file using the viewer. code snippet that is returning error bool dxManager::loadMesh(std::string filename) { HRESULT hr; LPD3DXBUFFER ppAdjacencyBuffer; LPD3DXBUFFER pD3DXMtr ...Show All
Visual C# Problem related to inheritance
Can u tell me as in c++ if we want to access member of base class privately then we write base class:private derived class But in c#.net how it will be implemented I didnt understand your question exactly. If you are asking about how to do private inheritance in C# then the answer is C# does NOT provide private inheritance. ...Show All
.NET Development What does MSI Stand for?
What does MSI Stand for And, similarly, is there a Microsoft glossary of terms anywhere that I could look up stuff like that in the future Thanks! Hi Grib, MSI = Microsoft Software Installer. Microsoft Glossary Information Center: http://www.microsoft.com/resources/glossary/default.mspx Hope this helps. Regards, Vikram NOTE: Mark the answer as reply if it helped. ...Show All
SQL Server Memory Error
After modifying a dimension, I got this message browsing my cube. Does anybody know what it means There is no error during the deployment .... ------------------------------------------------------------------------------------------------------------------------- The query could not be processed: o Memory error: While attempting to store a string, a string was found that was larger than the page size selected. The operation cannot be completed. ---------------------------------------------------------------------------------------------------- Regards Ayzan Try re- ...Show All
Windows Live Developer Forums Recommend a 500MB free file hosting
It is a huge 500MB of file storage and supports almost all file extensions, such as jpg, gif, mpg, avi, wmv, doc, pdf, mp3 etc. It is also easy to register. http://www.filelodge.com/refer.php referrer=boluo ...Show All
Visual C++ Is there any thing equivalent to NotOverridable in C++?
Hi guys, My problem is this. class Base { public: void OneFunction() { cout<<"Base"; } }; class Derived:public Base { public: //overriden, I don't want this to happen. void OneFunction() { cout<<"Base cl ...Show All
