Deffiant's Q&A profile
Windows Forms Namespace Best Practices
Many code examples always import the following namespaces even though they don’t help with the coding: System, System.Windows.Forms, System.Drawing Is there logical reason to include them even if my code works without them Ive Modifed my project files to exclude all project wide imports and include Imports System at the top of each class and System.Windows.F ...Show All
Visual C# sql question
if i develop a c# with sql database app.. and i send to some one .. he instals the sql express.. and make create some new database.. but then he choose to backup up from a database i send him.. will something be changed like connection string or.. i mean can the database file be portable zapacila, If you send a backup file and the end-user restores that backup over the existing database then the entire existing database will be replaced with the entire database in the backup (including data). This can cause the database users to lose their premissions to that database (I'm not sure of the exact conditions that this happens with). ...Show All
.NET Development Dynamically creating result columns & data
I have created a database that has a JOBS table, each row of the table has corresponding records in a JOB_TASKS table. Each job may have a different number of records in the JOB_TASKS table. I am trying to create a query that returns a few fields of the JOBS table, then searches the JOBS_TASKS table for all related records and uses those records to create additional column names back in the query and fill in the data in the correct columns. So if the JOBS table fields & data look like this: JOB_ID, NAME, DATE 5000 Bob 2006-01-21 And the JOBS_TASKS table fields & data look like this: JOB_TASK_ID, JOB_ID, TYPE, COMPLETED ...Show All
.NET Development Differences in WSDL between web service versions.
I have 2 versions of a C# 1.1 web service that emit different WSDL, and I would like to know what I may have done to cause this change, and what effect it might have on my client apps. The original verison's WSDL contains sections for each web service function by name appended with HttpGetIn, HttpGetOut, HttpPostIn, and HttpPostOut. For example, for the web service function " Init ", I have corresponding " InitHttpGetIn ", " InitHttpGetOut ", " InitHttpPostIn " and " InitHttpPostOut " sections in the WSDL. The new version of the web service's WSDL is missing these sections, ...Show All
.NET Development monitor
Hi, I would like to write a little program which monitors a specified Service, and if it isn't running, starts it how is this possible please Thanks Hi You can use the ServiceController object to query the status of a service and start it if it is stopped. The following example checks the status of the Messenger service and if it is stopped will start it. This requires a reference be made to the System.ServiceProcess object: Dim controller As New ServiceController("Messenger") 'Determine the state of the "Messenger" service Select Case controller.Status Case ServiceContr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2d GUI questions
Hey all, Big post here, I'm in the process of creating a 2d gui in managed directx with c#, and I've run into some serious performance issues after a rather minimal interface with a few high res textures. Along the way I've wondered if I'm doing things right. I've also been really curious as to how a program like Picasa2 can do all of its rendering at lightning speeds, with pretty much zero load time no matter how big the images get, while it's gui remains totally responsive. Can someone give me a few best practices in the 2d rendering process using d3d, I'm having a very hard time finding some reference on the best way to do things...t ...Show All
Visual Studio Team System Why BugList and Mybugs have been removed form the report lists in Beta3 refersh
Hi there, I am wondering why did we remove 'BugList' and 'MyBugs' reports from Available reports in Process template. They were quite useful. If i try to use add by copying .Rdl file and adding that section in ReportsTesks.Xml, it does not work and Project cteation could not upload those reports. How can I add those reports Thanks, Anu I work with Anu and I think I can answer this question. We have removed all workitem types from our VSTS implementation except for the type "Bug". We were primarily using these reports to provide web read-only access to the bugs for people who did not install the VSTS client ...Show All
Visual Basic VB Exit by the X box
I have written a reasonably complex VB code that when exited by the upper right corner X box, leaves itself in memory. The exit box control I added exits fine. Each time a user exits via the X box an additional copy is left in memory (as viewed by the Task Manager). Am I doning something wrong that is causing this problem I didn't purposely create any threads. I'm not doing anything real fancy. Mostly, I am using a Microsoft Access database and a lot of textboxes and lists to input and display the database details. What I don't understand is why my exit box subroutine with a simple "END" causes a complete exit and th ...Show All
Visual Basic Add Item to ListBox from other form?
Please, help me on add item to listbox from other form... i' use two forms and i cant add item to listbox from my form1, listbox on form2 tnx! What are you doing to do this Making your listbox public is a bad idea. The ideal would be to define an event between the two forms so that one form can send a notification to the other to add an item. The other way is to expose a method to add items to the listbox, which form1 can call with the appropriate data. ...Show All
Visual Studio Express Editions sharepoint services
Can Visual C# Express Edition be used to build Web Parts for Sharepoint Services Hi, Read the following post as well: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=57708 ASP.NET 2.0 supports building webparts but these are not compatible with the existing SPS 2003. Regards, Vikram ...Show All
Visual Studio Team System error starting VS 2005 beta2
After installing VS 2005 beta2 I receive the next error when I try to start a new project (even when I start up VS and then close it without doing anything) The Microsoft.VisualStudio.QualityTools.TestCaseManagement.QualityToolsPackage, Microsoft.VisualStudio.QualityTools.TestCaseManagement, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ({A9405AE6-9AC6-4F0E-A03F-7AFE45F6FCB7}) did not load because of previous errors. For assistance, contact the package vendor. To attempt to load this package again, type 'devenv /resetskippkgs' at the command prompt. I removed every release of VS an SQL and inst ...Show All
Visual C# Encoding with C#.NET
Hi, I'm sending a string via POST method to a server. I'm using encoding of UTF-8 to send and get response. The problem is the server cannot read any special characters I sent. Special characters like +, &, and some others like UK Pound signs are not readable or cannot be read as what they are. How am I going to send those chars without typing in their equivalent URL encoding Anyone with good idea or suggestion pls. Regards. Hi! If I remember right some characters must be escaped, for example " " (space) will become "%20" (% and hex char value). Perhabs you need to ...Show All
Visual Studio 2008 (Pre-release) Host the DLinq Designer in your own app?
I am wondering if it is going to be possible to host the DLinq designer in an application much like the Windows Workflow Designer can be hosted in an app Hosting the DLinq designer outside of Visual Studio is not a supported scenario. Can you give us an example of why this would be important to you What kind of scenario are you thinking about ...Show All
Smart Device Development Printing reports in CF
Hello, does anybody know, if exists some library to manage printing reports in .NET CF Our .NET CF aplication is solution for dealers to sell products and they want to print invoices from their PDA. Exists some solution to get data from SQL CE database and print them according to our template Something like Crystal Reports or Report Builder for .NET framework. I've searched for something many hours but I didn't find anything. Maybe I entered to google wrong words =) Thank you for help. Radek PS: Sorry for my poor english. The words are right. There's no reporting libraries exist so ...Show All
Visual Studio Does VSS 2005 have Netsetup?
Does VSS 2005 have a netsetup or equivalent I much prefer that installation tool versus toting and inserting a CD at every client box. Mike No, it doesn't, but as Rothariger said, you can install it over the network. VSS2005 doesn't create by default a new database like VSS6 did when you installed from CD, so there is no need for a "netsetup" tool that will just copy and register the binaries. Alin ...Show All
