Michal Laskowski's Q&A profile
Visual C# how do u check if an entered time or date is valid
How do I do these pls 1- to check if a user enters the correct time for ex: 10:15 PM 2- if a user enters for example 3:5 i want to reformat that and display 03:05 instead 3- to check if a user enters a date correctly: 2007-12-26 Hi, you can use the DateTime.TryParse http://msdn2.microsoft.com/en-us/library/9h21f14e.aspx you can pass a string to this method as well as a formatting string to tell the method how it should interpret the data. If the string value is in the correct format then it will return a valid DateTime object in the out parameter. Mark. ...Show All
Visual Studio Team System TF31002: Unable to connect to this Team Foundation Server
We are getting the following error when trying to connect to TFS from a developer machine: TF31002: Unable to connect to this Team Foundation Server: tfsserver. Team Foundation Server Url: http://tfsserver:8080 . Possible reasons for failure include: - The Team Foundation Server name, port number or protocol is incorrect. - The Team Foundation Server is offline. - Password is expired or incorrect. For further information, contact the Team Foundation Server administrator. It works fine when connecting from the server. Jason Adam, 1. There were no errors logged in the Event Log of the client and the server. 2. Yes, I am logging onto the client wi ...Show All
Visual Studio MSBuild beginner questions
I used MSBuild 2 years ago whilst I was at Microsoft - but its been a while remembering this and how to use it and so on. So kind of going back to the basics.... where and how do we obtain MS Build how does it work how do we configure/set it up any links to documentation etc... Much appreciated for your responses :-) Where and how do we obtain MS Build - MsBuild ships with the .net 2.0 clr How Does it Work , How do we set it up Documentation -A good place to get the rest of the questions answered would be the MSDN pages for msbuild - Also the MSBuild Wikki is a good place for information ...Show All
Visual Studio Express Editions Visual Basic windows forms
Hey, I've only started using Visual Basic tonight, and I've never touched any previous form of VB and/or Visual Studio. So this is probably the newbie-ist question you've seen for a few years if not ever. Anyway, I've got a task set out whereby I must create a testing program as such, with multiple choices. I've created a form for every question, along with a welcome form and a grade form. My question is simply, how do you link the forms, so that a user can click the button labelled "Continue1" and it opens up form2, within the same space and so on and so forth. Any help would be more than gratefully received. Thanks! well to do this, firstly on each form set the Startup Position of ...Show All
Windows Forms Retrieving the combobox.SelectedValue
I am having a problem with combobox databinding to a dataset. I do all the necessary things you have to go through to bind the data and that all seems to work well. ex: cboEmployees.DataSource = dsEmployees.Employees cboEmployees.DisplayMember = "EmployeeName" cboEmployees.ValueMember = "EmployeeID" cboEmployee.DataBinding.Add("SelectedValue", dsEmployees.Employee, "EmployeeID") The problem&nb ...Show All
Visual Studio 2008 (Pre-release) Example of GridViewItemContainerStyleKey usage?
I'd like all of my ContentPresenters within my GridView to have HorizontalAlignment=Stretch, but this does not seem to be the default behavior. It looks as if I can use GridView. GridViewItemContainerStyleKey to define the style of the cells in my view. Does anyone have any sample code to demonstrate how this works Try - gv.SetValue(ContentPresenter.HorizontalAlignmentProperty, HorizontalAlignment.Stretch); gv.SetValue(ContentPresenter.VerticalAlignmentProperty, VerticalAlignment.Stretch); ...Show All
Visual Studio Team System Datagrid row style
Hi, I am using datagrid within windows form. I have applied column styles to each columns. Now I want to change the row style dynamically with certain criteria. I can't find any classes within grid. Any Idea how to change the row style for particular single row dynamically like row backcolor, font color etc. Thank You Mohan This is the wrong forum, try this Windows Forms forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=7&SiteID=1 ...Show All
Visual Basic search with at least 2 criteria
I'm starting with Visual Basic 2005 express edition and i've got difficulty with searching the database with at least 2 criteria. I'm learning basing on Northwind database and all works perfect so far there is only 1 criterium. Below is my code for the search button: Private Sub btnFind_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Click Dim filteredView As Data.DataView = New Data.DataView(NORTHWNDDataSet.Customers) filteredView.RowFilter = "CompanyName Like '%" + TextBox1.Text + "%'" And "City Like '%" + TextBox2.Text + "%'" Dim rowsFound As Int32 = filteredView.Count Select Case rowsFound Case ...Show All
Visual Studio CRITICAL ERROR INSTALLING SP1 (released) FOR VISUAL STUDIO 2005
Hi All, I have tried to install released version of SP1 for VS2005 Team System for Software Developer since last night with no success at all. This is the most troublesome for Service Pack, I have ever experienced so far. Now, some of my applications can't be used any more, e.g. VS2005, Windows Live Messenger, VSS, Paint.NET. Can someone from Microsoft or whoever help me Currently I am developing application and is near the target date. As I see in MSDN that SP1 has been released, I believe that released version from Microsoft will be easy to install and since this is SERVICE PACK, not new product. First time I encounter problem due to lack of space. I am quite surprised Service Pack need more than 2GB to install. So I have clea ...Show All
Visual C# How to deploy
I have one big DLL called HISGUI.dll built using C# 2005 I also have HISSystems.exe and HISReports.exe applications built using C# 2005 Both HISSsyetms.exe as well as HISReports.exe makes use of HISGUI.dll. Because HISGUI.dll is used by more than one application; I thought it would be good idea to place HISGUI.dll in GAC. I made merge module setup project HISGUImergeMdouleSetup.msm where in GAL contains HISGUI.dll and its dependencies. Then I made setup project for HISReports.exe which contains just exe file and HISGUImergeMdouleSetup.msm. I did the same for HISSystems. Both were then deployed in a test machine. They work ok But then I made some changes in HISGUI.dll project and rebuilt the HISGUImergeMdouleSetup.msm ...Show All
Windows Forms TreeView or ListView
I want to create a control like the one on the image: http://img115.imageshack.us/img115/2469/treelisthj7.png But I don't know how to start, how do i merge the functionality of a treeview with the functionality of a listview to achieve the effect on the image The application is in C# and should compile under .Net 1.1 Can you give me any clues Sorry, my mistake! Please check if the following article/sample may help: http://www.codeproject.com/cs/miscctrl/GroupListView.asp (I did not downloaded it actually, myself) ...Show All
Visual C++ DELAYLOAD in C++/CLI
I have C++/CLI library which is linked to unmanaged library FGCamera.lib. I want to use FGCamera.lib as delay-loaded Dll. In the Linker Properties, Input, I have FGCamera.lib in the Additional Dependencies. Now I add FGCamera.dll to Delay Loaded Dlls. Result of linking: LINK : warning LNK4199: /DELAYLOAD:FGCamera.dll ignored; no imports found from FGCamera.dll C++/CLI Dll is called from C# exe client. Delay loading is not working. How can I fix this I made the same test with unmanaged MFC project linked to this library, and got this message: LINK : fatal error LNK1194: cannot delay-load 'FGCamera.dll' due to import of data symbol '__imp__FGResolutionStr'; link without /DELAYLOAD:FGCamera.dll Cannot und ...Show All
Visual C# Lauch IExplorer
How would i lauch IE in a button click event....would i need to add any special reference to any libraries, Or would i just use the System.Diagnositc and start a Process and pass it the exe of IExplorer Any one have any links on this or know how to get this accoplished Tryin2Bgood wrote: How would i lauch IE in a button click event....would i need to add any special reference to any libraries, Or would i just use the System.Diagnositc and start a Process and pass it the exe of IExplorer Any one have any links on this or know how to get this accoplished on your button click event: System.Diagnostics.Process.Start(" http://www.yoururl.com" ); or: System.Diagnostics.ProcessStartInfo the ...Show All
Visual Studio Customizable Colors and Fonts
Hi. Im working on a languageservice, and I have added some custom colors. The colors are working just fine in the editor, but I recently got a request that people want to be able to customize these colors. Naive as i am, I assumed that the colors would automagically apear in the [Tools->Options->Fonts and Colors] dialog under "show settings for: text-editor", which they didn't. The strange thing though, they do apear under "show settings for: printer". Changing these settings seems to work as intended (colors doesn't change in the editor, but they do change on paper if you print the sourcecode.) I've been searching thorugh my code and registry for settings, but I haven't found any connections between my languageservice/package ...Show All
.NET Development using xslt to create excel file - having problem conditional bolding text in cell
With the following xslt, I need to bold the first two lines of text in a cell, with the third line not bolded. I have not been able to find the right combination of code to make it work. Any suggestions <xsl:for-each select="Event"> <Row ss:AutoFitHeight="1"> <Cell ss:StyleID="s29"> <xsl:choose> <xsl:when test="@EventID=9997"> <Data ss:Type="String"> <xsl:value-of select="@EventValue"/> </Data> </xsl:when> <xsl:when test="@EventID=35"> <Data ss:Type="String"> <xsl:attribute name="font-weight">bold</xsl:attribute> ...Show All
