Giber's Q&A profile
Windows Forms Creating Windows Form based on XSD
Is there any way or any tool out there that will generate windows form fields based on an xsd You probably meant XML. Check out this project . Also, .NET 3.0 supports WPF whose forms are designed with XAML. The tools (Cider) are still alpha quality. ...Show All
Windows Forms Adding an Executable to a Deployment Project
Hi, When I add a file to a project, a .exe in this case. If I would like to add a switch to the .exe, such as fileName.exe /Q. Is there a way to do this in the installer, maybe in the files properties Thanks for any help. Jeff I think maybe what you mean is that you want a shortcut to the exe to have that switch, and you do that in the Arguments value in the properties of the shortcut to the exe that you create in the setup project. ...Show All
Visual Basic how to run wav file in the resource of the program
hi I have added a wav file to the resources and i want to play it under button in vb 2005 how to play it with sound player thanks in advance. thanks for reply it didn't work for me and no exception occurs i write this code Dim theResource As System.IO.Stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(Application.ProductName & ".Menu.wav") Dim theSoundPlayer As New System.Media.SoundPlayer theSoundPlayer.Stream = theResource theSoundPlayer.Play() thanks in advance ...Show All
.NET Development Handling UniqueConstriant Exceptions at DataTable level?
The example below will cause a ConstarintException to occur. I would like to handle these exceptions at the Table level so that I can determine what constraint was violated on what column and provide a more helpful user friendly message to the end user by putting some text in the RowError and ColumnError fields... The problem is, I cannot use a try catch block because I will not be adding the new row programmatically. I will be using a DataGridView which handles the NewRow() and Rows.Add() process. When the error bubbles up to the DataGridView I can catch it in the DataGridView.DataError event. However this only works if an existing row is changed to hold values that violate the constraint. If a new row causes the violation, the ...Show All
SQL Server Performance issues in upgrading from SQL Server 2000 SP3(win 2000) to SS 2000 SP4(Win 2003)
Of late the Sql Server and Windows server is bouncing and we are trying to figure out the issues in the environment. Some of recent happening are – 3 weeks back we moved from WIN 2K to Win 2003 EE; and Sql Server 2000 SP3 to SQL Server 2000 SP4. It's a Datawarehouse which is used for generating many important reports. Problems we are seeing – reports are taking more time; sql server is getting self blocked and jobs are failing; SQL server is taking too much time to restart (8 hrs). Architecture: OS: Windows 2003 (64 bit) EE Database: SQL Server 2000 SP4 (32 bit) Datastage Version: 7.5 Hi, have you tried capture events with Profiler ! Any odd behaviour !!! have you applied patches ...Show All
Visual Basic How do I get my IP address into a string?
I'm not talking about local IP. I want it to be the same IP that I get by going to whatismyip.com. Also, what is that kind of IP address called Thanks Take a look at this article on Code Project on how to do it with WMI. ...Show All
Visual Studio Tools for Office Outlook
is it possible to load a complete folder structure in outlook under a new root folder other than the inbox Not knowing what you mean by "load a complete folder structure," the best I can do is tell you that, yes, you can add a new .pst file with the AddStore method and create folders in its Folders collection. ...Show All
Visual Studio HTML parser from Visual Studio 2005
Hi everyone out there! I'm writing a VSIP package using December SDK 4.0 CTP and I'd like to know if it is possible to access Visual Studio HTML parsing services (get the AST it obtains, get the compiler warning it generates, etc). TIA, Alan Maybe that could change in VS "Orcas" : http://msmvps.com/blogs/carlosq/archive/2007/01/28/new-web-form-designer-for-visual-studio-orcas.aspx ...Show All
Windows Live Developer Forums Robot Invaders Contest - Who did you vote for?
The robot invaders contest ( www.robotinvaders.com ) is closed for new entries, so all bots are in. A total of 51. With $40.000 in prizes, everybody of course wants to win. But which bot do you think will make a good chance The prizes: Grand prize (1): AlienwareR MJ-12 7550 Workstation First Prize (1): BoseR LifestyleR 48 DVD Home Entertainment System Second prize (5): AlienwareR Sentia M3200 System Third prize (10): GarminR nuvi 360 User's choice: 80 GB USB Portable Drive / DX1 Input System / LED Binary Watch The bot with the most votes on September 15th gets the user's choice award. It looks like that would be " samplebot@hotmail.com " with a total of 412855 votes! Amazing. Last time I talked to that bot though it could ...Show All
.NET Development King of Pain
Hi All, I need some help loading name value pairs from an xml file .. All the samples I have seen are from older versions of the .net framework and seem to have too much code .. I know there has to be an easier way in 2.0 This is my xml file .. < xml version="1.0" encoding="utf-8" > <config> <add key="5656" value="duck" /> </config> I need to send the key 5656 in and get back "duck" thanks allot... I have been struggling with this for the last few hours with no luck.. XmlDocument xDoc = new XmlDocument (); xDoc.Load( @"C:\Documents and Settings\paul\Desktop\sample.xml" ); XmlNodeList name = xDoc.GetElementsByTagName( &q ...Show All
SQL Server Convert Datetime field to display date
I have a field that I would like to only display the date as mm/dd/yyyy. Current field shows mm/dd/yyyy hh:mm:ss AM. Something like that: declare @date datetime set @date= CONVERT ( varchar ( 8 ), GETDATE (), 112 ) -- you may need refer to BOL to find proper format for convert function ...Show All
Windows Forms using for each
how do i use for each like that Array.ForEach( Me .ds.Tables( Me .tb1name).Rows(i).GetChildRows(relationname), _ ) now i want to compare fields amount in both tables.. there is relation, but one table contains the sum(amount) and one contains each record. . so i want to chek if all rows amount in grid1 is equal to their respective amount rows sum in grid1 .. Basically how do i iterate parent, children tables most efficiently the relationshion is straight forward like this. : i need to compare each row in table 1 on to all its child rows in table 2 ds.Relations.Add(relationname, _ dt1.Columns( Me .CostingDataSet1.Bill.multiplicityIDColumn.ColumnName), _ dt2.Columns( Me .CostingDataSet1.Bill.multiplicityIDCo ...Show All
Visual Studio 2008 (Pre-release) wsHttpBinding and default authentication
Hello. If I understand it correctly, when we use wsHttpBinding, ws-security is on. And it's using windows authentication. But how does it work I've been reading WS-Security specifications (on SOAP Message Security, Username/Password, X.509) but I can't quite understand the soap messages when I use the default wsHttpBinding. So if anyone can teach me what really is windows authentication in this case I would appreciate it. (For example, where are the certificates, or how are they authenticating ) I logged some activities, and just to perform one operation like Add numbers and get the results, there were 6 messages before the actual operation and there were two messages after the operations(No reliable messaging). I'm really struggl ...Show All
SQL Server Inserting existing Data from one Server to another Server FOR MS-SQL Server
hi guys! i have this task to do, well lets say i have a DB in a Server lets say Server1 and i want to copy or insert this data to the Server2. Is there any easy way to do this copying the Keys automaticly What is the best way to copy the data Thanks a lot. novelle hi there! i think u misunderstood the question. im working in ms-sql server and have a existing db in one of the server. i want to copy the database to another server also in ms-sql server that means all the tables, primary key etc... is there any way to do it best i mean if i copy the data in one of the table to the server2 does it able to give its foreignkey the way it was before need help dont know how to do this! tha ...Show All
Smart Device Development Establishing a connection to the internet.
Hello. I was wondering what is the best practice way of connecting to the internet via GPRS, etc. My application accesses .net web services. At the moment, I simply call a dummy web method. This in turn causes the device's modem to automatically dial in if not done so already. The web service call then continues ( I catch a web exception if the connection failed). However, this seems like a bit of a hack. The application seems to hang while it awaits the connection. Our users do not like it very much. What is the most common way you guys would create a connection I'd imagine there's probably a proprietory method in the device's API but I'd like the app to be as generic as possible. Thanks in advance Lee. ...Show All
