Farhan H Soomro's Q&A profile
.NET Development Parsing Email String into MailMessage
Hello I am writting an email client for sending (SMTP) and receiving(Pop3) emails for a a bit of fun, I have connected to the server listed emails, and want to read them into my program. I see there is a MailMessage class shipped with the .net Framework, and if its alreaedy there why recreate it The string i get from my Mail server when receiving emails looks as is below. Now does anybody know of a good fast way to Parse this string into a Microsoft.MailMessage ovject so i can store them in my application Or will i have to write my own code for parsing Thansk Lee +OK lee.witherington is welcome here retr 1 +OK 2623 octets Return-Path: < MyEmail@NTLWorld.com > Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35 ...Show All
Smart Device Development How to increase thread priority of the service application in windows mobile 5.0
How can I increase the thread priority of the service application in windows mobile 5.0 to highest possible allowed range. by either calling CeSetThreadPriority (if you are running privileged) - or SetThreadPriority API. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. PIX
any way to use PIX with XNA... I like those Acronyms PIX should not care that this it is watching an XNA program. It intercepts the underlying native DirectX calls. If you can't get it to work then it could well be a PIX bug. However you will have to understand the native DirectX calls and how XNA uses them. e.g. PIX does not know about SpriteBatch - you will see lots of dynamic vertex buffers being drawn in PIX. ...Show All
SQL Server Nonemptycrossjoin alternative
Hi, Trying to filter out measure group rows for various conditions of different dimensions to do a sum of a measure This is to be used in a cube calculation (mdx expression), not a mdx select statement. The conditions for the date dimension is <>certain date and <=certain date, and hence the filter returns all member except the matching ones, which is a large set. sum( nonemptycrossjoin( (filter(descendants([Purchase Date].[Fiscal Hierarchy].Members, , leaves), ([Purchase Date].[Fiscal Hierarchy].CurrentMember.Name <> "yyyy-dd-dd" and [Purchase Date].[Fiscal Hierarchy].CurrentMember.Name <= "yyyy-dd-dd"))) , (filter(descendants([Ship Date].[Fiscal Hierarchy].Members, , leaves), ...Show All
.NET Development Gettting Object values from ArrayList
I have an object, and a arraylist...I bind the arraylist[0] to my comboBox ((Tracking.BusinessObjects.StopOrderLegDetail) this ._Order.Legs[0]).StopID = ( int ) this .cboStartingPoint.SelectedValue; then i bind my arraylist to another one in a differenct class like this.Order.Legs = obj.Arraylist; obj.ArrayList = this.Order.Legs Now from another class i want to the the stop ID out of the Arraylist which i want it to return the value...how do i do such a thing do i need to do it like so...and if so how do i know its going to the the [0] element and not keep repeating the loop. for(int x = 0; x < ArrayList.Count; x++) if(ArrayList[x].ToString() == "myobjectType") { ((myobjectTyoe)ArrayList[x]).StopID ...Show All
Visual Studio Team System Build Automation against Branches
Hello, We are trying to figure out the best way to manage our builds and our branches. We make shrink wrap software and are ready to branch off our current release in TFS. We used to use VSS and Visual Build and branched our visual build scripts along with our source code. Here is how we are planning on structuring our SC (not commited to this) $CCS Root Source Binaries Releases 5.0_GA Source Binaries 5.1_GA Source Binaries TeamBuildTypes CI_App1 CI_App2 CI_App3 CI_App4 CI_App5 CI_App6 Nightly Now we have about 25 of these CI builds with lots of custom tasks. We do auto localications, custom manifest modifications, binary updates etc, and drop the files to the drop zone for that particular build. My question is w ...Show All
Visual Studio Team System Team Suite and Visual Source Safe
Hi, I have Visual Studio 2005 Team Suite and I want to use it with Visual Source Safe 2005 but it seems that VSS won't integrate int VSTS source control menu like it does on the progessional version of VS2005. Why Vlad It is possible to integrate VSS for source control by selecting it in Team Suite - Tools - Options - Source Control - Current Source Control Plugin. When you do so, you will be missing out on many features like integration of source control with other TFS services of Workitem Tracking, Reports etc. To use these it is necessary to use Team Foundation Version Control (TFVC). You can migrate your source control from VSS to TFVC using a utility provided with TFS. ...Show All
Visual Studio 2008 (Pre-release) SDK Sample Halos 3D ListView Questions
Hi all, I got the SDK sample of Halos 3D ListView. It is a good sample of WPF. But the codes quite new to me. Could anyone tell me how can we actually add/remove picture from the list How can I actually add / remove rows of pictures in the 3D list view Could anyone tell me how to make the picture brought out (upon clicked) to be larger size than the default sample size So, my conclusion is that the picture holder also can display video I supposed in WPF Can be activated for playing video upon clicked and stop when it is brought back to the rows of pictures Thanks in advance! fibonacci1123 wrote: Where can I find the Halos 3D Lis ...Show All
SQL Server Excel 2007 (beta 2) connect problem
Has anyone seen this - I've been testing Excel 2007 pivot tables and charts on small AS databases (< 10M). I try connecting to a larger AS database (22M) and I get a popup window saying: Data could not be retrieved from the database. Check the database server or contact your database administrator. Make sure the external database is available, and then try the operation again. The database is available and running. When I run through the Data Connection Wizard in the Data tab, the wizard can see the database and cubes I'm trying to connect to, so they are available. It's just on the pivot table/chart creation it won't connect. It responds back real quick, like it's not attempting to even do anything. Anyone ...Show All
Visual C# Getting started with Business objects
Hi guys, i m trying to get started with Business Objects, but i m a little bit lost here.. hope you guys can help me out. So far all the tutorials i read on the internet just show you how to make an "employee" or a "product" class, coding that is very simple, and i don’t have any problems using them and even binding them to Windows Forms using BindingLins<T>, etc... i ve been testing it out and it works fine. But right now i m trying to make something that have some relations, and i cant figure out how i am supposed to do it, what i m trying to do is a simple "Order" class that is related with a customer and some products... something like: Order Customer Products So, could you guys help me out with this ...Show All
Windows Forms Parent form control access
I'm doing some testing with inherited forms. I made a base form containing a toolbar with some basic buttons (add, edit, delete, refresh) Now when i inherit the form i added some properties to hide or show each of these buttons. What i'm trying to do now it accessing the toolbar from the parent form so i can add some custom buttons to it. Lets say i have a from that inherits the base form so that has the toolbar on it and i want to add a extra button to the toolbar (lets say print) I cannot access the toolbar so this is what i have tryd: on my base form i made a property public ToolStripItemCollection ToolbarButtons { get { return this .flatToolstrip.Items; } } When i go to the property window to access t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Collision Detection With Bezier Curves
Hi, I'm currently making a small 2D game in XNA Game Studio Express. It involves a player moving around a terrain and being able to collide with it. Nearly all the graphics and settings in my game are user generated so this allows for everything to be quite customisable. For collision detection the user specifies paths made of Bezier curves which are stored in a file. The game reads this file and stores a number of points on the curves in an array. The player is also made of Bezier curves that are converted into points: This shows how I want collision detection to happen; if any of the lines that make up the player intersect with any of the lines that make up the terrain, then a collision has occurred. Once a collision has occurred two t ...Show All
SQL Server Setting width of parameter text box?
Is there a way to set the width of the parameter text boxes in the Report Server UI As luck would have it, I need it to be just a few characters wider. Thank you, Dick Campbell We have a misunderstanding here. I am talking about the text box for parameter entry in the Reports Server UI (I think that it's called the Report Viewer in most posts on this forum). Dick Campbell ...Show All
SQL Server Attribute Hierachies
Hi there. I have a problem that I have been struggling to understand. Here is the situation. I will use a time dimension just as an example. If I build a time dimension containing 2 Years of dates from 2005 to 2006 with 3 attributes: Year, Month, Date and set my attribute relationships as Date ->Month and Month -> Year. In management studio I can drag over Month and then Year (in that particular order ) and it will give me the correct results. For example if I expand the Month of January 2006 the year column will show 2006. Now If I filter the year column for the year of 2006, you would expect that the month column would only contain the months of 2006, but it doesn't. It still has months for 2005. Now if I rebuild that dimensi ...Show All
Visual Basic Using Settings Context Class
Hello, Maybe someone can help me out here. I have create a user setting of type HashTable, I update this setting from code and save, however when the application restarts the hashtable hasn't been saved. I've looked in the user.config file for the application and there is xml placeholder but none of the values added have been saved. The hashtable has been marked serialisable and as I've tried everything to get it working. How do you use a hashtable in user settings I searched the Internet and could find no solution to your question. (Many explained why it does not work.) The poor man's workaround is to store the hashtable pairs in a System.Collections.Specialized.StringCollection. (Assuming keys and values ar ...Show All
