Jd_Stoops's Q&A profile
Smart Device Development Help! about the Menu!
I noticed that in vs2005(smartphone 2003 SE app), MenuItem can only be added into right softkey popup-menu. But I want to get a popup-menu when I press the left softkey, how I can do Thank you T.T Sriram Krishnan MSFT wrote: That would be a violation of the logo guidelines. Dont do it! That is a lie. http://download.microsoft.com/download/5/6/8/568a922b-b62c-46d3-a745-0172c2638686/sp_handbook_may2004_final.pdf "Required: Menu on Right Soft Key If the application uses a menu, the menu must be located on the right soft key. The left soft key must be for quick (common) actions, such as ...Show All
.NET Development Regex question
Hello, I am new to c# and i am having some problems with regex. Every time i try to "scape" . or ^ or +, etc i keep geting this error: Error 1 Unrecognized escape sequence . I have search the net among other things on how to scape those character and they say i need to use \. or \^ ,but that doesn't help. This is the regex i am using: if(!File.Exists(Regex.Replace(textBox2.Text,"\\.+\.html","").ToString()+"\\pic.gif")) { ....... } This isn't the only regex that i get the error, it is in all regex i try :/ i am geting very disperated with this problem. I am using .net version 2.0 (Moderator: T ...Show All
Visual Studio Using NAnt RC4 to build .Net 1.1 Code
Hi I am in a conversion project of Code from .Net 1.1 -->.Net 2.0 . 1. I am going to build all my projects with NAnt RC4 version and also with VS2005 to check the affected Areas. 2. I have both the Versions of my code in my machine, 1.1 and 2.0. 3. My requirement is to use NAnt RC4 version for building both my 1.1 and 2.0 code ad RC4 supports both. 4. I am able to Build both the 1.1 and 2.0 code with NAnt RC4. Here is my problem and Question: 1. when i build my 2.0 code with RC4 its perfect. 2. When i build my 1.1 code with RC4 i get messages like ..'Method is deprecated..and so ' these messages are obtained for my .Net Framew ...Show All
SQL Server Partition Scheme
Hello everybody, how can I verify a partition scheme in SQL Server 2005 (June edition) SELECT p .* FROM sys.partitions p , sys.objects o WHERE o . name = 'mytable' AND o . object_id = p . object_id GO this always returns only one partition thank you Eckard BTW, there is some confusion about terminology. A partition != a partition scheme. The query above looks at a table's partitions. It does not "verify a partition scheme." Every table has at least 1 partition that ultimately refernces a filegroup. A partitioned table has >=1 partition that ...Show All
Smart Device Development sqlcedatareader - how to detect a zero hit?
Hi! I am querying a sql ce server database on a pocket pc receiving results as a SqlCeDataReader. How can I detect whether my query returned any rows at all withouth moving the pointer (Read()) and without having to execute a second count(*) query. Any clues kolya Actually SqlCeResultSet class has a "HasRows" property in NETCF v2. So you can just use that if you are currently using v2. I just tried it out and it seems to work fine. ...Show All
Visual Studio 2008 (Pre-release) Loading Page into TabItem
If I have a System.URI that points to some XAML in another assembly, how can I load that into the Content property of a TabItem I know this is easy in a Frame but I don't need navigation functionality. Thanks Michael The solution I've used for this situation was to create a User Control for the page. Then I add the clr-namespace to the .xaml file and do the following to add the User Control to the tab item content. <TabItem.Content> <MyUIModule:Page1 /> </TabItem.Content> ...Show All
Visual C# sorry for this dumm question (noob)
I dont know what is SDK Sorry i think i the dummest question but i really dont know Thanks hi, sdk = Software developer's kit http://www.answers.com/SDK i'm beginner and i don't know what does it mean exactly but when i visited C++ forum i found them use it alot , when i read about C# i found they talk about 2 types of coding managed and unmanaged , i know this sdk is full of the source code of all the framework if you want to add your own classes or develop your own classes there it will be considered as unmanaged code(not regular code) for frameworks run time you provide your own ways in controlling things out of ...Show All
Windows Search Technologies WDS and ASP.NET -- success
I finally got WDS working via an ASP.NET front end. Here's how I did it: - web page front end has form to collect search terms - it posts the terms back to itself, and which time the ASP.NET page creates a XML file in a predetermined folder on the server. - meantime, I wrote and started a service that runs as a local user and watches that folder for new XML files. When it finds one, it calls an executable. That executable fetches the search term from the XML file, calls the WDSQUERY.DLL, then drop the results into a new XML results file in the predetermined folder. The WDS recordset object has a save as XML method. - the ASP.NET ...Show All
Software Development for Windows Vista WorkflowRuntime.CreateWorkflow overloads
I have not been able to find any information about two CreateWorkflow overloads in the WorkflowRuntime class: CreateWorkflow(XmlReader workflowDefinitionReader, XmlReader rulesReader, Dictionary<string, object> namedArgumentValues) and CreateWorkflow(XmlReader workflowDefinitionReader, XmlReader rulesReader, Dictionary<string, object> namedArgumentValues, System.Guid instanceId) I have two questions: 1. Given that there are issues with argument passing and Xaml-only (or "no code") defintions, do these methods have any purpose 2. If yes, can you provide some information about the "rulesReader" ar ...Show All
Windows Forms SQL money data type problem
I am developing a Windows.net/C# app with SQL Server 2000 as the backend. I am storing lots of US currency fields in many different tables and am using the SQL money data type for these. The application should never display more than two decimal places for currency. The app fills ADO.net DataTables using CRUD (stored procedures). DataTable columns ...Show All
Visual Studio 2 Patterns for single Crystal Report (rpt) file
Hi everybody, Is it possible to display two different pattern of reports and must be on separate pages First Page displays a summary, second page displays details and other info. Having problem doing this placing except for company details on page header and the rest on the Details part of the report. Pattern: First Page: Company Logo Company Name Company Address Statement of Account Statement Date: (system date) Period Covered: (date from filter page) Control Number (data from db1) Company: (company name from db2) Address: (address from db2) Total Balance ( ...Show All
Visual Studio 2008 (Pre-release) Version property of DataContract attribute !!!
Hi, i am not able to see Version priperty on DataContract attribute. Any one has any idea about this This property is no longetr supported or am I missimng some thing I am using the WINFX Feb CTP. Thanks, \Venkat Hi, Order is also not avilable. I am getting compilation error: System.Runtime.Serialization.DataContractAttribute' does not contain a definition for 'Order' Basically, i am looking into some techniques for versionaning data contracts. Previously I have seen VersionAdded property on DataContract attribute, but now it is no there. Thanks, Venkat ...Show All
Visual C# Asynchronous Socket shutdown question?
Hey I have a Socket that I use to accept connections. This is cool, everything works except when I go to shut it down. Then I get error's. The code I use to shut it down is as follows: // Function to stop the server public static void Stop ( ) { // Set online to false online = false ; // Disconnect all our players DisconnectAllPlayers ( ); // Shutdown the socket listener.Shutdown ( SocketShutdown.Both ); // Close our listener listener.Close ( ); } // End function to stop the server According to the MSDN I should call shutdown before I call close, however the code breaks on the Shutdown f ...Show All
SQL Server Moving a SQL2K publisher to a SQL 2005 instance.
Hi, I have to move a SQL2K instance (publisher) to a SQL 2005 instance and i prefer not to re-snapshot all the databases being replicated due to the large size of the databases. As i understand all i need to do is 1. Ensure all published databases are in readonly mode. 2. Stop the replication (by either dropping subscriptions, publication or stopping replication agents). 3. Move the databases to the SQL 2005 instance. 4. Configure a SQL 2005 instance for the distributor (for a SQL 2005 publisher, the distribution database must be a SQL 2005 instance). 5. Setup replication to the SQL2K  ...Show All
SQL Server DATEDIFF question
Uses: SQL Server 2000 Personal Edition with SP3, Windows XP Pro; Hi, Is there any possible way that I can differentiate 2 different dates and get in a format inclusive of hh, mm, ss part altogether, rather than only getting one part Like this: if StartDateTime = 10:15:01 AM and LastDateTime = 11:20:01 AM then the difference of LastDateTime and StartDateTime will be = 1hour and 05 Minutes and 00 seconds (I need like this). So using DATEDIFF function I will be only getting one part either hour, Minute and Second. I would like to know is there anyway either by using DATEDIFF function or other to get in the format inclusive ...Show All
