AmphireDude's Q&A profile
SQL Server GUID
Hello, I'm working on a smart client app that has an offline sql express store and needs to work with several types of central databases (support for multiple products - ms sql, DB2 etc) While trying to put together some offline functionality that needs the user to create records on the offline sql express data store, we've run into the need of being able to uniquely identify records so replicating the data in the offline store back into the primary database should not be a problem. The data created offline spans many tables and involves several tables with relation ships - FK etc...Clearly not a simple case of store and forward. ...Show All
.NET Development Customize XML Serialization
I need to write a class that writes properties of any other class into xml file but problem is that properties that are required to be written are determined at run time. for example public class User { private int age; public int Age {} Private String name; public String Name {} // Please assume that implemntation are there } Now, sometime Age is required only, sometime Name is required and sometime both (Properties that are required are inputed by user ). If i am using XmlSerializer object, it write all public Properties ( Tagged by XmlAttributes ). but i want to customize properties to be written. Please help me how to do that! Regards, ...Show All
.NET Development Is Malayalam not supported by CultureInfo class?
Change the system locale to Malayalam(India) System.Threading.Thread.CurrentThread.CurrentCulture.Name returns US-EN in .NET Framework 1.1.4322 Is this fixed in .NET 2.0 Is there any other forum to log defects in the framework I'm not an expert on locales, however, according to the CultureInfo MSDN documentation , it doesn't look like it is supported. You can submit suggestions or bugs on the .NET Framework Microsoft Connect . ...Show All
Visual Studio Help using the Visual Studio DIA SDK for debugging...
I’m trying to provide myself a call stack dump whenever my code causes an exception, and I want to use the DIA SDK rather than ImageHlp API. Ie I want to see the callstack when my program crashes, rather like the callstack is shown in VisualStudio, except I’m not using an out of process debugger – I want to do this in my own app. The DIA SDK provides some COM interfaces to support what I want to do, but unfortunately there is no documentation. All I know is that IDiaStackWalkerHelper and IDiaStackWalkFrame must be implemented by the client. As to exactly how, remains a mystery! And this is where you step in! Let m ...Show All
.NET Development Related to Mutex
Hi, What is a Mutex for Does it perform like a process The following MSDN documentation may be helpful. http://msdn2.microsoft.com/en-us/library/system.threading.mutex(VS.80).aspx Hope that helps, Stephen Fisher ...Show All
.NET Development Working with Web Services in Visual Studio 2005
H i all, I'm new to ASP.NET and web services. I'm able to create a web service successfully.And i tried to add it as a web referrence to another ASP.NET application.The Add Web Referrence dialog window displays my web service,but when i clicked the link to add it,i got this error: "Server cannot access application directory 'C:\WebSites\MyWebService\'. The directory does not exist or is not accessible because of security settings." If anyone knows how to solve this ,plz help. In the WebService you are trying to add to another project, g ...Show All
Windows Forms Losing reference to object on timer refresh after a long period
I have a particular form that is running a timer. On each set interval, it will get its underlying biz object to re-query the database so its DataSet of tables can be refreshed, and new results displayed in the DataGrid. private void timerRefresh_Tick(object sender, System.EventArgs e) { try { this.coordinator.LoadOverviewDataSet(); // reload dataset data from db. this.SetDataGridViews(); / ...Show All
Visual C# public variables problem
hi, i am usig this code to store a public variable to be used fro teh whole application with all its forms. using System; namespace Shefa { /// <summary> /// Summary description for public_class. /// </summary> public class public_class { public public_class() { // // TODO: Add constructor logic here // } private int active_person_id; private int staff_user_file; private string staff_user_id; private string staff_user_name; public int active_id_number { get { return active_person_id;} set {active_pe ...Show All
Visual C# Visual C# Look and Feel nice in XP, ordinary in 2000, why?
Hi, I downloaded and am running Visual C# Express on my Windows 2000 machine. At first, I was slightly taken aback by the clumsy, clunky look of some of the dialogs in the IDE itself. That is, some of the buttons were strangely large and the size of some dialogs just didn't come anywhere near the professional, smart look of say, Office 2000. For example the "Edit Rows and Columns..." dialog if you right-click on a TableLayout panel. I'm not being picky here, I'll send a screenshot when I get home - it looks quite unproportioned and particularly ugly ;-) I have 1152x864 resolution. I was guessing that it was something to do with the ...Show All
Smart Device Development Smartphone - submenus on left softkey
I'm creating an app for Smartphone 2003 and am having problems with the menus. I know that, "The Designed for Windows Mobile logo certification stipulates that the left softkey is always a common default action (not a pop-up menu)." However, I've seen plenty of Smartphone apps with submenus on both the left and right softkeys. I'm using Visual Studio 2005 Standard, and although I thought they had dropped this restriction (from some research I did a few months back), it looks like the left softkey still doesn't support submenus. How are people creating these fully-functioning menus when VS doesn't support it Sh ...Show All
Visual Basic How to hide/show a program on the right Tasks Bar
Hi all, I need to development an application that's after the installation stay on the right Tasks Bar like for example MSN or Windows Task. Are there someone who know's how can I do this Thanks, Vivian if you are using VS05 then there is a component called "notify Icon" which you can drag from the toolbox onto the main form of your application. ...Show All
Visual Basic VB2005 and webbrowser control
Hi, I am trying to use the webbrowser control as a list view for viewing files on the disque. My main purpose is to use build-in fonctionnalities like thumnails view withaout having to write code (reinvent the wheel). It works great but I don't know how to programatically control the way the browser display files. I mean, how to control the "view" property (list, details, thumnails, etc) of the web browser. I also would like to remove that menu pannel on the left. Can anyone help me Thanks, Patrick I think that the WebControls in Access and VB 2005 are not the same at all, because in my WebControl, the docum ...Show All
.NET Development update datetime problem even with parameters ...! please help!
I try to update or insert a record to a table with a dateTime type column DOB, my code is in below: DateTime dob = new DateTime(1980,11,21); string updateText ="UPDATE Patients SET FName =@FirstName , LName=@Surname , DOB=@DOB WHERE PatientID = " + lbID; this.UpdateComm.CommandText = updateText; this.UpdateComm.Parameters["@FirstName"].Value = fname; this.UpdateComm.Parameters["@Surname"].Value = lname; this.UpdateComm.Parameters["@DOB"].Value = do ...Show All
Visual Studio 2008 (Pre-release) Keeping BitmapImage from using too much memory
Scanned paper documents are usually stored as black and white (one bit pixel depth) TIFF images (TIFF Group IV 2D). TIFF is one of the native codecs supported by the WIC. The problem I'm having is a 50KB image uses 40MB of RAM when loaded in a BitmapImage for use as an Image source. So if the pages from a 12 page document are cached for quick page turning 500MB of RAM will be needed (not feasible). Typically a legal sized 300 DPI TIFF decompressed should use about 1.4 MB of memory ((8.5 x 300) x (14 x 300)) bits. I figure something should be able to be done to keep the BitmapImage at a lower pixel depth than 32bpp, thus reducing memory usage ...Show All
SQL Server Is only "shared memory" connection with "SQL Server Management Studio Express" supported?
I have installed MS SQL Sever Express with it there is a SQL Server Configuration Manager installed. In this configuration manager there it is possible to enable and disable protocols for SQLEXPRESS. The following protocols are supported (and each protocol can be enabled/disabled individually): Shared memory, Named Pipes, TCP/IP and VIA. In the "SQL Server Management Studio Express" I connect to the SQL server and this works fine when "shared memory" are enabled. But when I disable "shared memory" in the configuration manager I can not connect to the SQL server via "SQL Server Management Studio Expres ...Show All
