Answer Questions
Chumplybum How to give application path in XML?
Hi, i have problem in XML validation. I am referring to a customised Schema(.xsd) file in my xml using "nonameSpaceSchemaLocation= C:\XML_Project\myschema.xsd" i am using visual basic application for parsing the xml againest this schema, and check if there is any error. now the problem is that i do not want to hardcode the path of the XSD file in the xml file. the xsd file shall reside at the application path of VB. How do write this in XML file Ganesh_MSDN, The following code use the XmlReaderSettings.Schemas property validates using an XML Schema stored in the XmlSchemaSet object and hope that can help you: Imports System Imports System.Xml Imports ...Show All
JCJCJC Problem with Checkin Comment Policy
We have a created a project. And given one person Project Admin rights and another Project Contributor rights. The Project Admin, then added the 'Changeset comment Policy' to the Check-In policies under Source Control properties for the Project. Everything works fine for him. However when the Developer tries to checkin code, he is always prompted by the Policy Override box. This occurs whether he adds comments or doesn't add comments. Has anyone else seen this behavior What does the Developer need to do in order for his comments to be recognized by the policy and not prompt him with the override dialog Thanks, The developer is not seeing an error, just the Policy override box. I've checked the server and I am not ...Show All
ReneeC Converting "String" to "Double".
Hi, Can someone tell me how do i convert a "String" variable to a "Double" variable Thanks! Try using the double.parse() method. string d = "1234.5" ; double m = double .Parse(d); in addition, in .NET 2.0 there is a TryParse method. This allows you to check whether or not the string supplied is a double "compatible" type, in other words, checks to see if the value given can be converted to double. This is the preferred approach since doing a direct Parse can cause an exception if the string is not in the required format. If you know it is definately a double value from a string then yes use Parse. ...Show All
BDev13 File button open dialog file from Menustrip
Hi im really new in Visual so...i need some help I want to open a dialog box when the file button from the menustrip its clicked,its for a browser yeap the same from the bonus when you get the Visual,the book its really perfect but i want a browser more you know... The help have a lot of code for but due to my novice level first i cant find the good one and second even if a have it i do not know what it was and why. Can some one help me a little. Thanks HELLO Thanks im gona try this one you give me son as possible me and my class give to you some how kind response for the early code. By the here in Europe its really late 1700 uk time. See ya Your best for this latitude regards. My pets sen ...Show All
abhas TableLayoutPanel Flicker
I am using a Tablelayoutpanel, that contains around 200 lables. That are feed with data every 3 seconds. When this is done the tablelayoutpanel flickers. How can I stop this Hi, I'm just wondering... in this case, wouldn't it be better to use the DataGridView (or similar control), bound to the data source and just keep updating the data source What kind of data are you displaying Andrej Try the following on your form... TheForm.DoubleBuffered = True It wouldn't surise me that you get flicker with this number of controls. either: 1. Reduce the number of controls (200 is a lot), this is more than likely not an option... 2. perform your own 'drawing' onto the form (or usercont ...Show All
exal Saving attachments
To save an attachment you have to open it and then save it from within the application that has opened the attachment. In my experiences, IExplorer is always opening the attachments and sometimes failes to do so. For example: opening xml files for which the specified schema can not be found. Also for other file types like .jpg I rather want to save the files than open them in IE. I tried to change the file type associations as explained in http://support.microsoft.com/kb/905703/en-us , but no luck. (What's more, for file types for which I changed the default open-application, the Advanced button is missing in the 'Details for .. extension' dialog. Only after pressing the 'Restore' button I can select 'Advanced' and then check/uncheck 'Conf ...Show All
John Padilla I want my SC Data Back
Hi, We moved our TFS from one machine, to another machine. We backed all our databases up and restored them on the new Server according to the procedure explained on MSDN. Anyway, I saw all my portal documents and Work Items but when it somes to the files stored in Source Control part, I get TF30059:Web Service Initialization Error and nothing shows up. Is there any missing configuration or restore procedure I have made When that error occurs, there should be a corresponding entry in the event log on the application tier. It may also be useful to look at the information from application tier tracing to see what's going on. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=745652&SiteID=1 for how to turn on applicati ...Show All
Matthew Lebo28574 TFS Trial CALs
How many users can access the TFS using the TFS trial version If I understand you correctly, I think this will help clear up the issue: I do not believe the Trial edition comes with any CALs. Note that you don't need a CAL for the service account or report account. At the same time, there is no [license] limit on the number of users who do have valid CALs who can access the Trial edition of the server, though normal scaling limits apply (i.e. we officially support only 2,000 or so users in TFS, though this is a limit we would like to increase for a future version). For more information, please see the Licensing White Paper . Cheers, Adam LouS, I've have the same problem. We want to ...Show All
Ultimate The name 'txtPlayerMove' does not exist in the current context
Hi, I'm very new to C# and I'm trying to insert a text string into a text box that sits on a form in the same project. The class that is trying to send the string to the text box is in a different file than the form code. I get this error: "The name 'txtPlayerMove' does not exist in the current context" from this code: public bool throwSnow(int range) { //calculates likeliness of a hit at a given range //returns true if snowball hit bool hit = false; int myRoll; Random roller = new Random(); if (snowballs <= 0) { txtPlayerMove.Text = Convert.ToString(name + " is out of snowballs!"); } ... (i didn't include the rest of the code) I'm ...Show All
Todd at HCA Users / Logins (CTP7)
I'm experiencing some issues regarding users and logins in the CTP7 version. The story: At first, there's no database or login available in the SQL2005 instance When I create a user named testuser in the Schema View , it is nicely added to the users folder as testuser.user.sql . Since it is created without login , I change the piece of the script to for login [testuser] In the Pre-Deployment folder I change the Logins.sql script to create a login if it does not already exist. Why is the testuser sometimes included correctly sometimes included with without login (although the script says for login [testuser] ) sometimes excluded when building the database project Also, I'm not able to just create a login with password=N'wachtwoord' ...Show All
nabeelfarid FontStyle
Here is what I am using Dim font_style As FontStyle = FontStyle.Regular and here is the errorr that I am getting Font 'Monotype Corsiva' does not support style 'Regular'. My question is how do I tell the program to load the font in it's default style Here is what I'm using at the moment. ' Make the new font. If family_name = ("Monotype Corsiva") Then font_style = FontStyle.Italic End If Dim new_font As New Font(family_name, font_size, font_style) ' Show the Changed font. rtbtext.Font = new_font Label1.Text = cboFonts.SelectedItem IsStyleAvailable does not work with the code that I'm using. I think I will have to try what Nobugz has suggested catch the error then change t ...Show All
RobZeilinga tfpt query
I'm trying to query the TF server to get all my Bug work items. I've created a query in my project under WorkItems/Team Queries. I called it Bugs and this is my command line tfpt query "BugsTeamProject\public\Bugs Work Items" where BugsTeamProject is my project name but it keeps saying the stored query "Bugs Work Items" could not be found in the scope public for the project BugsTeamProject and I've tried it also with private but it gives the same message the stored query "Bugs Work Items" could not be found in the scope private for the project BugsTeamProject could you help me to solve this problem Thank you I tried what you suggested me but still I get the sa ...Show All
Pascal Frey Multithreading and and "encroachments"
Hi, I'm developing on a new vb.net-application with the Visual Basic Express Edition . Now I have to use a backgroundworker for a longer process. But I'd like to keep the user up-to-date, what the application is currently doing. So the Backgroundworker has to change some labels in the main Form. Now the Question is: How to get the backgroundworker changing the label in another thread I know, that I have to use invoke and delegate , but I don't know, how. Can someone explain this to me Thanks, Greetings from Germany and Regards, Fabian A delegate can point to a function as well as a subroutine. If you e.g. want to point to a function, which receives an integer and returns a string, you may define the delegate as: Public ...Show All
spelger vs2005 breaks when handling an exception in a test
I don't know why but when i catch an exception for the dll i am testing VS breaks. It tells me: "There is no source code available for the current location test". And later it stucts with very ugly message errors, you know with HResults and so on. Any idea Thanks in advance. Hello, I assume, you are doing a unit testing. can you post the code for which class its giving that error and also can you provide the complete error message with "HResults". Did the test ever worked before when you were not handling the exception If you can provide some more information, it will help in resolving the issue. Thanks, Anjana [MSFT] Microsoft Developer Support This posting is provided "AS IS" ...Show All
Balbiesas Connecting to a SQL Server database using VB 2k5 Express
I'm new to VB 2005 Express and I'm trying to figure out how to connect to a SQL Server database , not a database file . Every tutorial I read talks about Server Explorer (which I don't have). In my Choose Datasource dialogue box I have two choices for datasources, Microsoft Access Database File and Microsoft SQL Server Database File . I don't want to access a file . I want to access a database on a remote Microsoft SQL Server on my network. I do not have access to the database file on there. What do I have to do to add a datasource that will allow me to connect the way I want Hi, This post may be of help: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1164976&SiteID=1 ron ...Show All
