Ashok Baria's Q&A profile
Visual C# General Questions ADO ole...
Hello and thanks for taken the time to read this, Having a few problems with my code since there is so much of it I can not paste it here so just wanted to cover some thery on working with databases hense (.mdb) and let me know where im going wrong. Steps 1/ using System.Data.OleDb; using System.Data; using System.Data.Odbc; using System.Globalization; 2/ Create dataAdaptor & Connection then Dataset. 3/ Alow data to be read or not but ...Show All
Windows Forms !!!URGENT!!! Accessing the Application Manifest and Deployment Manifest at runtime
Basically, I want to be able to load both at the startup of my ClickOnce app to 1. Get the Publisher and Product info from the Deployment manifest 2. Iterate through the Application manifest for optional download groups to provide a background process to pre-fetch these groups. I've scoured the API trying to find out how to get access to the current manifest in a programmatic way.... Thanks, Jim ...Show All
Visual Studio Properties on Relationship
I would like to add custom properties to a relationship that an end user of the domain model designer can configure using the properties explorer window. Is there anyway that I can do this Yes, see http://forums.microsoft.com/msdn/ShowPost.aspx PostID=17201 ...Show All
Visual C++ How to compile without .net?
Hi everyone. My problem is that if I write an application, it doesn't run on other computers. I've already read other threads about this problem, and there were solutions too: install redistributable packages and/or the .NET framework on the other computer. But I don't want to. I just want to run my program on any computer without installing anything. Like in the old times. Thank you for your support. Attila I ...Show All
Visual C# Can we access an assembly of .NET 2.0 from an assembly of .NET 1.0 ?
Hi, Can we access an assembly of .NET 2.0 from an assembly of .NET 1.0 Cheers. But still, definitely Microsoft would have gone ahead with .NET 2.0 keeping in mind the ppl r working on .NET 1.0. Eventually programmers will be coupling stuff with .NET 2.0 rather than migrating everything to .NET 2.0 !!! ...Show All
Visual Studio 2008 (Pre-release) WPF/XAML for WinXP
Hi, everyone! Question about WPF, but not about Vista. Whether any release of WPF/XAML for WinXP is planned With best regards, Dmitry Yes, the last post with URL is the wanted answer. Thanks a lot for all! ...Show All
Software Development for Windows Vista Internet Explorer 7 Phishing heuristics
Hi, Not sure if this is the right spot to discuss this, but I couldn't find anywhere else. As a developer, we are currently having a few issues with IE 7 classing our sites as Suspicious websites, and the idea of this popping up when our clients visit our site is not something that we wish to happen. I've had a breif look at the phising information, but can't find any indepth information about the heuristics of it. Currently the only sites that ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Stretch texture
Based on the following code that uses a Sprite and Texture to draw a textured square... _sprite.Begin( D3D.SpriteFlags.AlphaBlend ); _sprite.Draw( _texture, new Rectangle( 0, 0, (int)_width, (int)_height ), new Vector3( 0.0f, 0.0f, 0.0f ), new Vector3( (int)_left, (int)_top, 0.0f ), Color.FromArgb( 255, 255, 255, 255 ) ); _sprite.End(); ...I am confused as to what part of ...Show All
.NET Development How to pass objects across applications
I am having one windows application which calls an asp.net webpage. i want to return a file stream object form asp.net page & want to access that filestream object in windows application. can any body tell me how to do that. i am calling the webpage like this. Dim url as string url = "Http:\\localhost\Sample\WebForm1.aspx" Dim WebRequest As HttpWebRequest = HttpWebRequest.Create(url) when i try to get response ...Show All
.NET Development Performance test - Web Services vs. .NET Remoting
Against any sources I have found so far the Web Services with XML and SOAP seems to be a little faster than .NET Remoting with TcpChannel. Here is what I got: Iterations WS TcpRemoting 100 00:09:21.6504501 00:10:47.2276639 1000 &nb ...Show All
SQL Server DTS - Trapping SQL errors
I am panning to write a DTS package whcih alter the table and output any error messages if the alter statement fails. I have created Execute SQL Task in which I have wrote the following command. Alter table Employee ADD EmpStatus char(4) DEFAULT A not null; I have created a work flow to write the error message to a text file. But I am having trouble to trap the error message prduced by the Alter statement (like "column names in ...Show All
Visual C# How do I return a value...
Hello, I'm very new to ASP.NET, C# and OO programming in general. I would appreciate any help in what I'm sure is a simple issue. I'm trying to return a value from a method but am having trouble doing so. Here is what I have so far: private int chkRequired(Control Page) { int cnt = 0; foreach (Control ctrl in Page.Controls) { if (ctrl is DropDownList) { if (((DropDownList)(ctrl)).SelectedValue=="0") { ...Show All
Windows Forms Control deleted while trying to clear property value
Hi All, I found this forum is very helpful. Benjamin Wulfe just helped me solve my big problem. I'm posting another one. In my form designer project, I use IMenuCommandService.GlobalInvoke(StandardCommands.Delete) to delete selected controls in design time. However, the problem is that when I select the value in the property grid, and try to clear the property value using the delete key, this not only deletes the proper ...Show All
Visual Basic system.InvalidOperationException
Visual Studio 2005 Professional Edition: My app runs fine on my development computer, but, bombs out on the 3 other computers that I installed it on. It installs OK, but, upon execution, it immediately aborts with a System.InvalidOperationException. And these all have version 2.0 of the .NET Framework installed on them ...Show All
Visual C# FTP
Hi there, how can I use C# to transfer files using FTP I found a nice class on the net (h ttp://www.csharphelp.com/archives/archive9.html ), but how do I use it I compiled it successfully. The exaple-code, at the bottom of the script simply has a "using-statement". I tried the same, but without success. The lib can't be found. Where do I have to copy the compiled class Do I have to register it somewhere Thank you, Finch. ...Show All
