Test1234525's Q&A profile
Visual Studio Express Editions date.parse
I have a string, called stringdate, like "07-01-2007" that means January, 7 2007. I need to convert it to a Date avoiding the confusion with July 1, 2007 I am using Date.Parse(stringdate,df) where I am defining Dim df As New System.Globalization.DateTimeFormatInfo df.DateSeparator = "-" However, how do I specify that the date format is "dd-MM-yyyy" Have you tried setting the shortdatepattern: df . ShortDatePattern = "dd-MM-yyyy" ...Show All
Visual Studio Express Editions Clng or + or? addition problems.
Hi, just came over a problem. I have 2 text boxes and want one of them to add the other text box. Penger.Tag = Penger.Tag + Skudd.Text That only resulted in adding the numbers at the end of the other numbers. So, im wondering is the right way to do it like this Penger.Tag = CLng(Skudd.Text) + CLng(Penger.Tag) Or is there a other way thats more safe Think if figured out a way to calculate it. Dim verdi1 As Double = Penger.Tag Dim verdi2 As Double = Skudd.Text Dim summ As Double = 0 summ = verdi1 + verdi2 But, for every calculation I want to have, I have to make new variables verdi1, verdi2, verdi3 or Like if I have another button with different text boxes and such, then I would have to call it a ll verdi3 and verdi4. ...Show All
SQL Server An attempt to attach an auto-named database for file C:\... failed
Hi, I recently installed VS Web Developer Express Ediition and SQL Server Express and I'm doing the How To tutorials and I can't finish the basic data access walkthrough: http://msdn2.microsoft.com/en-US/library/tw738475.aspx Because I get an error like this (link for complete error below): An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\test.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception ...Show All
SQL Server FTS. Can't Create FullText INDEX
I've got fresh Installed SQLExpress 2005 Adv. with a following: WinXP Pro, Developer PC, Admin/Full rights, Antivirus PC-Cilin was switched off for the installation. Enable User Instance - 0 (clear check box during installation) SQL Collation: Dictionary order case sensetive for1252 Char set SELECT @@language: us_english create fulltext catalog testAPFullTextcatalog , Sp_help_FullText_catalogs : 5 testAPFullTextcatalog C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\FTData\testAPFullTextcatalog 0 0 create unique index indexName_Comment on dbo.FullTextSearchTestTable(RecordID) sp_configure: allow updates 0 1 0 0 clr enabled 0 1 0 0 cross db ownership chaining 0 1 0 0 default language 0 9999 0 0 max text repl size (B) 0 2147483647 ...Show All
Visual Studio Team System unique field
My web application having program name as unique field. Same program name should not be used by multiple numbers. While doing load testing I will record with program name as Program1 and generated the web test. When I am calling this web test in my load test with 10 users all 10 users will try to create the program name as program 1. at this time validation message will come that program name entered is already exit in database. Pls choose another name. Like this unique scenarios how to test load testing Pls let me know how to perform load testing in this case. is it possible to create data driven test that every time when it is creating program it should take new name is it the right way what is the ...Show All
.NET Development ReflectionOnlyLoadFrom in another AppDomain
Is there a technique for loading an Assembly into a new AppDomain as a ReflectionOnlyLoadFrom I'm writing a utility to compare the types in assemblies. If the two nominated assemblies are in different paths but share the same identity information (i.e. Name, Version, Culture etc) I get an Exception on the second Assembly.ReflectionOnlyLoadFrom() call, stating an API Restriction on loading the same assembly identities from different paths (and fair enough!). This led me to investigate loading the second assembly into a new AppDomain, to avoid the API restriction. But, the new AppDomain only has the .Load() method, no LoadFrom() or ReflectionOnlyLoadFrom(). Is there a technique for this Cheers. Ed ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to render alpha blended textures on a Model?
I have a 3D model with a texture applied that contains alpha information to make parts of it transparent. How do I go about rendering the model with the transparency I've figured out how to render the entire model translucent but not how to make a specific material on the model translucent in accordance with the alpha values of the texture used by the specific material. Is there a way to do this It appears to be rendering alpha now somewhat although I'm getting really strange effects. For example, some of the other models behind the translucent one appear while others do not. Maybe there is something messed up with my depth buffer. Thanks for the help. :) ...Show All
Smart Device Development Auto bluetooth setup for Windows Mobile 5.0
Hi, I'm working on a Symbol MC70xx device with win mobile 5.0 and want to setup a bluetooth printer to com port 9 (COM9). The system uses BTExplorer for bluetooth setup. I can do it manualy and from inside my application send info to the printer. But I want setup the printer from a cold start by a setup application or something like this. I would be appreciated for any help. Thanks Hi Try this: http://www.codeplex.com/Wiki/View.aspx ProjectName=32feet Michael ...Show All
Visual C# How to load an xml file that is in same project?
Hey guys, I am new to winforms so please forgive me. I am trying to write to an xml file that I created. The file is in the same project (in the root level of the project, not hidden away in sub folders). However, it bombs out when it tries to find the xml file: Here's the error: {System.IO.FileNotFoundException: Could not find file 'S:\source\cs\sTopGun\CSharp\sBriefcase\BriefcaseSyncNotifier\bin\Debug\SyncSettings.xml Here's my code so far: DataSet xmlDataSet = new DataSet(); StreamReader myStreamReader = new StreamReader("SyncSettings.xml"); xmlDataSet.ReadXml(myStreamReader); myStreamReader.Close(); Thanks for the help!!! Hello and thanks for replying!! I ...Show All
Windows Forms The path is not of a legal form.
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. The path is not of a legal form. Hide at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.GetFullPathInternal(String path) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project project) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly() at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ...Show All
Visual Studio Team System Report with item description
I need a report which shows the scenario descriptions along with the other data. The description field turns out to not be "reportable" in the field definitions. How do I do this The work item descriptions are, as you have discovered, not reportable items. This is because they can be quite large. As the work item is edited it can become pages. Consider using the Title in your report instead and possibly having a "drill through" to the longer description. As an example of a report with the full work item linked see the "Bugs Found Without Corresponding Tests" report. The work item data can be accessed via: http://<Your Report Server>:8080/WorkItemTracking/Workitem.asp ...Show All
SQL Server Access to the remote server is denied because the current security context is not trusted.
Hello, In SQL 2005, from a stored procedure in a local database I am attempting to execute a remote stored procedure in another database on another server. I am getting the error referred to in the Subject when the local stored procedure tries to execute the remote stored procedure. A couple of comments: The remote database is set up as a linked server in the local database. As part of the linked server definition I selected the 'be made using this security context', and provided a local user name and password. The remote database is set to Trustworthy. I have tried every combination of WITH Execute As on the remote stored procedure but nothing works. I can query against the remote database successfully within Management ...Show All
Visual Basic Graph
Hello, How can I display a simple graph (like in Excel), with data coming from an unbound datasource Seppe001, According to your general question, actually there are so many examples on your demond. Sometimes the difference is just the way to show the graph. Here I found an article in code project titled A rating system to rate your online articles and display the ratings graphically. This article contains enough situation that I believe it can help you a lot :-) http://www.codeproject.com/aspnet/bren_kb100023.asp ...Show All
Windows Forms press keyboard "enter" key
after input values into textbox on my login screen, i want to have 2 options to proceed, 1. i want to be able to click on login button and proceed (this is easy). 2. i want to be able to press on the "enter" key on my keyboard to do the same thing, please help. thx moayad, just little more help plz. on line foreach (Ctr in this .Controls) { There is a compilation error as pasted below, plz help Error 1 Type and identifier are both required in a foreach statement C:\Documents and Settings\.....\My Documents\Visual Studio 2005\Projects\.....\login.cs 68 26 ....... ...Show All
Visual Studio Team System Can't profile web site running in IIS on WS2003
I'm having trouble profiling a ASP.NET 2.0 website running on a windows 2003 server. I've followed several tutorials on the net, but I can't make it work. Here's what I did: 1. vsperfclrenv /globaltraceon 2. reboot 3. step 1 again 4. instrumented and resigned my files 5. Started the trace using perfmon 6. Started IIS 7. Interacted with the website, and saw w3wp.exe being connected to the profiler 8. Stopped IIS 9. Stopped the profiler using vsperfcmd -SHUTDOWN 10. Ran vsperfreport profile.vsp /PACKSYMBOLS /SUMMARY:FUNCTION When I open the VSP in Visual Studio on the same computer, I get no names for the functions only hexadecimal codes like 0xa000036 I've tried running vsperfreport wi ...Show All
