Syed Mahmood Ali's Q&A profile
Visual Studio 2008 (Pre-release) FlowDocument and web links
Hello, may be you can help me with this problem. I'm trying to put a link to a web page in a FlowDocument (windows app) and open that page in the user default browser or ie. I've try this: <Hyperlink Foreground="#FFACA899" NavigateUri=" http://www.goo gle.com" TextDecorations="Underline"><Span xml:lang="es-es" FontWeight="Bold" Foreground="#FF808000" TextDecorations="Underline"><Run>Google</Run> </Span></Hyperlink> But it's not working it appear the hand cursor over the link but when I press the left button the hyperlink doesn't open the web browser. Thanks a lot. Lauren, thanks a lot ...Show All
Visual C# Accessing Class Properties within the Class - use private or public properties.
Hi all, If I have a class that declares private variables which are then accessed via their relating public properties, which ones (public or private) do I use when using them within the Class in which they are created. For example... public class SiteMember : Person { private string ID; // Constructor(s) public SiteMember(string id) { m_ID = id; /* I have use the Public access here, but should I use the private */ } // Public property public string m_ID { get { return ID; } set { ID = value; } } } I just need clarify on whats the best practice really. Thanks. Tryst You have it slightly wrong. The private one should be named m_ID, as that's an internal membe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using XNA Game Studio Express to develop solitaire game
I am an experienced developer but a newcomer when it comes to developing games. I recently downloaded XNA Game Studio Express and have been studying the space war game. I am developing a solitaire-type card game where the player can drag and drop cards from one pile to another. I have much of the domain logic written, and now I am tackling the user interface. Most of the XNA tutorials I have seen use arcade-type games for their examples, and I have not seen any that use a solitaire-type card game. This brings up several questions: 1) Is the XNA framework suitable for developing a solitaire-type card game 2) Does any know of any XNA tutorials that use a solitaire-type card game (preferably with draggin ...Show All
.NET Development String into Type
Is there any way to convert back string into Type I was looking in many places, but nowhere was that what I'm looking for Well... I have a simple database in text file (something like .csv) and for each Column I want to save Type of data, which can be stored in. So I use Type type = typeof(int); type.ToString(); - and now in database it's figure as System.Int32. Unfrtunately I can't read it (I don't know how, because there is no conversion like Type type = (Type)column_type :/ ) I hope that this helps to understand what I'm talking about :D ...Show All
SQL Server Switching Excel Worksheets Based On Date
Hello, I need to pull data from an Excel Workbook (DTS Excel Source) where the data is stored in worksheets that are each named one of the twelve months of the year. The package is fired by a job that runs once a month. Currently, I have to go into the select statement of the Excel source before the process runs and change the name of the Worksheet that the data is pulled from. How can I set up the sql statement for the Excel source so that I can pull from the Worksheet that contains the name of the current month Thank you for your help! CSDunn Use a dynamic properties task to change the filename of the connection object. http://www.databasejournal.com/features/mssql/article.php/3116201 ...Show All
Visual Studio Team System Missing merge options on first merge
Getting some strange behaviour from merge/resolve here... 1 main dev track $/XXXTestA/Dev 1 branch created from a subset of Dev $/XXXTestA/5.30.xx Check out 1 file on Dev, make a change, check out same file on branch, make a change in the same area. Open up a VS2005 command prompt and run the following command: (In a workspace where both Dev and 5.30.xx is mapped) tf merge /noprompt /recursive /version:C412~C412 $/xxxtesta/dev $/xxxtesta/5.30.xx Where 412 is the changeset created by the checkin on Dev This gives me a merge conflict (as expected). Now I do tf resolve to fix the conflict, but when the resolve window comes up, the "merge changes in merge tool" option is disabled, why The only available o ...Show All
SQL Server Another - Cannot connect to Database Issue.
I've read several issues and resolutions related to my problem, but none of the resolutions have worked. I have Visual Studio 2005 installed on my local machine. My SQL Server 2005 is on a Member Server. On a fresh Web application, I have no problem accessing the ASP.NET Configuration File to set up Users and Roles. The reason is obvious, the data is in SQLExpress and Local. You can see the database ASPNETDB.MDF residing under the App_Data Folder of the project. How do I get this in the SQL Server 2005 System on the Member server Whenever I do the Copy Web Site procedure to post my application to the Web Server, I get an error stating that SQLExpress is not installed on the target server. That's corre ...Show All
Windows Forms My issues with ClickOnce
Hi All, I'm having the following issues when creating a ClickOnce install. Is this something very common Can someone please let me know if these are known issues Once you publish your application using ClickOnce , it seems that there isn’t any way of updating the configuration settings (e.g. URL to the web service). These are the setttings in file: applicationName.exe.config.deploy Once you publish your application to a particular server, it seems that there isn’t any way of updating the server name on which the application is published. So, if from VS2005 I publish it to ServerOne but in the QA dept, they would like the application to be published on ServerTwo . So that when the client machines want to install my appli ...Show All
.NET Development PROBLEM WITH SPECIAL CHARACTERS
question...i have a string value in a textbox inputted by the user that contains ' character... and i think that's the reason why i am receiving an error...my procedure is like this "INSERT INTO TABLE(REMARKS) VALUES(' " & TEXTBOX1.TEXT & " ')" please tell me what to do so that my sql statement would accept strings with special characters like the word ADD'L Dim theSQLCommand as new SqlCommand("INSERT INTO [TableName] (FieldName) VALUES(@param1)", new SqlConnection("connectionString")) Dim theParam as new SqlParameter("@param1", Me.TextBox1.Text) theSQLCommand.Parameters.Add(theParam) theSQLCommand.Connection.Open() theSQLCommand.ExecuteNonQuery() theSQLCo ...Show All
Visual Studio Express Editions how to calcuate log
Hi Guys, I am tryinig to figure how to calculate the standard deviation of a data set. For any of you who trade stocks I want to create a function that calculates bollinger bands. Any pointers of samples There are two general ways to calcuate the standard deviation and interestingly you see both portrayed here. The only thing I would suggest with Renee's version is divide by sts.N - 1 so as to produce an unbiased estimator for the standard deviation, and you would also match Excel's stdev function (using Excel to validate statistical programs is a nice thing to do). Extra info: in Renee's version we subtract the mean from each data point (and square it), but in doing so we lose a degree of freedom since the mean already contai ...Show All
Windows Search Technologies Windows Vista Search Compared to Windows Desktop Search
Currntly we are testing Windows Desktop Search by configuring it with Group Policy and the Notes addon. Is the Vista search going to support the Notes Ifilter and other filters Is it going to support control from Group Policy like the windows desktop search does Thanks Paul thanks for the reply. I think that is a good idea that it is moving to service based and ability to use one index will be very nice as well. I look forward to seeing the group policy support. Unless it is manageable I don’t think you can realistically use this beyond the local workstation in a business environment on 100+ PCs. If anything I would like to see additional functionality like the ability to create a master index from a se ...Show All
SQL Server Installing the AdventureWorks Database
I've downloaded and installed the Adventure works database I follow the instructions give here http://msdn2.microsoft.com/en-us/library/ms310325.aspx but this command here: exec sp_attach_db @dbname=N'AdventureWorks', @filename1=N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf', @filename2=N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_log.ldf' results in this error: "unable to open physical file,................................................. the system can't find the specified file." AdventureWorks_log.ldf + AdventureWorks_Data.mdf ...................don't exist at this location: c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Smooth Sprite Animation (was Smooth Movement)
I want to revive some of the discussions originally started on this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=691811&SiteID=1 I too have implemented a simple ball bouncing around the screen. This ball movement was jerky with the default settings (IsFixedStep = true). Changing SynchonizeWithVerticalRetrace and IsFullScreen had no affect. I found that setting IsFixedStep = false makes the animation smooth (~350fps). Setting IsFixedStep = true and changing the refresh rate of my monitor to 60hz makes the animation smooth. Setting IsFixedStep = false, TargetElapsedTime to 72fps and changing the refresh rate of my monitor to 72hz (the max, it's an old monitor) makes the animation smooth. This leads m ...Show All
Smart Device Development ActiveSync 4.0 No DMA Option
Just can't seem to get this to work. Have VS2005 RTM installed and trying to connect the PPC2003 SE emulator to activesync 4.0 so I can do some debugging of the device. Trouble is ActiveSync 4.0 doesn't give me the DMA option in the connections menu, only Com1 etc and USB. Anyone know what I'm doing wrong Thanks Hi, This usually happens if the ActiveSync plugin is not registered properly. You can try one of the following and see whether it fixes the problem. 1. Restart AS or machine - to restart AS kill wcescomm.exe (If the above didn't fix the problem try the following) 2. Uninstall AS and reinstall it again (If problem still not solved try this) 3. Manually reg ...Show All
Visual Basic handling events of objects stored in array
Hi, I have an array of objects. These objects have events that needed to be handled in the Form class. But, I am facing difficulty in declaring WithEvents for these objects, as these are not at the class level. Eg: I need to do something like I declare array of that class at class level When the button is pressed, then instantiate the objects in the array "WithEvents". I need to handle events in the form raised by each object within the array How to achieve this. Please explain. Thanks in advance. Regards, Noorul i would handle this situation like this: handle each event that i need to implement. Public Sub Test() Dim forms(5) As Object 'Add object and so on... For ...Show All
