Balavenkatesh's Q&A profile
.NET Development FtpWebrequest
Hi! I'm using VisualBasic.net . I have a problem with my FTP-connection. I want to update my old VS2003-Project with including the .net-Framework 2.0 . Now I want to connect to an FTP-Server an downloading Files, retrieving File-Lists etc. <-- All by using FtpWebRequest. U can help me I'm searching for a good tutorial. Greetz reg3x ;) Hi, There are a number of pieces of sample code in the V2.0 MSDN documentation for FTPWebRequest. You will want to look at the following: ** To locate each in the help docs just search for the full text. (ie: how to: download files with ftp) Technology Samples: - FTP Explorer Technology Sample - FTP Client Technology Sample How tos: - How to: Download Files with FTP - How to: Upload Fi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .X -> ModelMesh - textures?
I imported a few .X models in my XNA project to figure out the basics of the ModelMesh. Applying custom effects and so on works already, BUT if a mesh has multiple parts and each has a different material, I cannot figure out where in the Model or ModelMesh is that information (I cannot guess the material and do not want to hardcode it or the name of the textures). Can anybody tell me where to get that information from when I load a model via the ContentManager Not really sure myself as I haven't looked into these pieces yet ... but check out this post by Shawn Hargreaves. It explains the makeup of the various classes involved in drawing a model: http://blogs.msdn.com/shawnhar/archive/2006/11/20/models-mes ...Show All
Visual Studio Tools for Office VSTO & Outlook custom regions
Hi, Is there any support for Outlook Custom Regions in VSTO 2005 SE I mean sample FormRegionStartup class like with Ribbon.... (and perhaps without needing to modify registry manually) I have tried to follow a couple of walkthroughs (both MSDN and from Outlook blogs) but I have a little successs. System.ArgumentException: The value entered for the DesignMode property is not valid. Enter a proper value. at Microsoft.Vbe.Interop.Forms._UserForm.get_Controls()} Message: "The value entered for the DesignMode property is not valid. Enter a proper value." ParamName: null is thrown when I try to access Controls collection in BeforeFormRegionShow(Outlook.FormRegion FormRegion) Wel ...Show All
.NET Development Failing to Catch Exception
Hi folks, I have a WinForm app, written in MS Video Studio .NET C++ 2003, that examines folders in the systems main drive (ie. C:\). Whenever it comes across the "System Volume Information" file, access is denied and the program presents a dialog window indicating the following: "An unhandled exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll. Additional information: Access to the path "c:\System Volume Information\" is denied." I've tried catching this exception, but can't seem to do it. So far I've tried: catch (IOException* e) { } catch (System::UnauthorizedAccessException* e) { } But neither seems to handle the exception. What exception should I be tryin ...Show All
SQL Server SQLCE - Getting started Questions....
I am trying to soak in all this information regarding SQLCE and was hoping someone could set me off in the right direction. Scenario: I have an Windows Mobile 5.0 data collection application that I need to sync with a desktop database. I will need the ability to sync 1 or more Pocket PC's with a desktop database. Questions: 1.) Assuming I need to sync the data, is using a SQLCE database on the device AND the desktop a viable solution 2.) If not, would my only other option be to use SQL Server Express (SQL Server is not an option, $$$) 3.) Keeping simplicity in mind, what would be my best choice of syncing technology RDA Merge Replication Microsoft Synchronization Services for ADO.NET Generally speaking, I want to know if YOU were sta ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Flash Movie in fullscreen Direct3D game
n VS2005, i need to embed a SWF flash movie in a fullscreen Direct3D 9.0 based game. I have successfully added my swf(which was painful) and played the movie without problem. But, when I tried to switch the display from SWF flash move to Direct3D device. It failed! The followings illustrate the general flow of my problem: 1. load and display the SWF 2. user press space to start game (SWF get focused and read space bar), set SWF invisible by AxShockWaveFlash1.visible = false 3. start game, render Direct3D 4. game ended, stop rendering Direct3D 5. show the SWF movie again, set SWF visible by AxShockWaveFlash1.visible = true, focus SWF Problem raised from Step 4 to Step 5. This problem do not exist when I am not using the ful ...Show All
.NET Development GMT-8 to GMT+0 (UK) with consideration for british summer time?
I'm using a server where it's time is GMT-8. Im using DateTime so how do i convert it to GMT+0 taking into consideration British summer time as im based inthe UK. Thanks for your time. Paul. Anthony Moore and Kathy Kam have been publicly pontificating the evolution of DateTime as it applies to conversion between locales (see Designing "Time Zone Conversions" ). But Dan Rogers has a good article Coding Best Practices Using DateTime in the .NET Framework . It was written before .NET 2.0 came out. .NET 2.0 doesn't have anything "inherent" to deal with timezone conversions. The best advice is to only use UTC in your implementation and "convert" to a local time (includ ...Show All
.NET Development XslCompiledTransform + XmlDataDocument + empty DataSet
Hi, I'm trying to create an XmlDataDocument from a given DataSet (which I get as a return type of some function) and apply the Transform() method of the XslCompiledTransform class to it, However - I seem to have a problem with the xml of the XmlDataDocument in case the DataSet is empty , it seems like no xml is written or it's written incorrectly, and so the Transform method doesn't work properly. Here is the code: public static void Transform(DataSet ds, XmlWriter writer) { XmlDataDocument xmlDoc = new XmlDataDocument(ds); XslCompiledTransform transform = ...Show All
SharePoint Products and Technologies How to install additional CA site?
Hi, there. I 'm playing with Best Practice Analyzer recently releaseed. When I run it on my farm, following advice was there. Is it really possible to install additional CA sites other than that created on farm creation If yes, great! then how to do it (I think technet should mention that if that is one of best practices...) Thanks in advance/ ---- Title: Highly Available Central Administration Capability Severity: 3 Description: Only one instance of the SharePoint 3.0 Central Administration Web site exists in your installation. To make sure that you can administer the farm in the case of a failure of a server hosting SharePoint 3.0 Central Administration, you should ...Show All
Visual Studio Express Editions [2005] NotifyIcon's BalloonToolTip
Hi, I'm using NotifyIcon in my application. It displays a balloon tooltip containing quote of the day according the current date at determined frequencies (i.e. every five minutes). I wanted to be able to display this ballontooltip when user moves the mouse cursor over the NotifyIcon on the tray. Therefore I’ve used the NotifyIcon1_MouseMove event and it works. But the balloontooltip needs user activity in order to disappear either by clicking on it or other mouse move/keyboard input. So here is my question: How can I force the BalloonTooltip disappear when user moves the cursor away from the NotifyIcon I thought the possibility to use a Timer in order to make it disappear but I have no idea on hiding BalloonTooltip manually: there is ...Show All
SQL Server ForEach Trapping an Error and Continuing
I have a ForEach loop that processes a list of databases. Inside the loop I many steps, one of which is a sequence that contains two steps. Either of these steps may fail (they are attempting to start mirroring and could fail for any number of reasons). I would like to trap this error and ignore it so the For loop will continue, but still fail if other steps than this one fail. The only thing I've been able to do so far is to tell the whole loop to continue through some insane number of errors. Is there a way to identify or actually ignore the error In the sequence I have have on completion and from the sequence to the next step (which checks if mirroring actually started) is running on completion. Thanks. For selectively ign ...Show All
Windows Forms Control for docked "flyout" (unpinned) panels?
I'd like to include a pinned/unpinned navigation window in my C# Winforms app that works like the docked windows in the VS05 IDE that are docked on the side with an icon and legend. In the unpinned mode it should open smoothly when you hover over the icon. I'd like to display a treeview in the panel and have the pin/unpin toggle icon as in the IDE. Is there a control that can reproduce this behavior in a Winforms app Edit: I found this: http://xceed.com/Docking_WinForms_Intro.html. I was hoping to find a free version. Thank you very much, Gavin. That sounds perfect. I don't know why that didn't turn up on my first search at Sourceforge. I will give this a try. ...Show All
.NET Development How to uplaod CSV file in sql server using C# ?
Hello, I have browse button to select .csv file and have to upload that files in the database and have to store each values in database. Only .csv file. file checking is completed, but the .csv data insertion in database is remain.. using c# i have to do this..in .NET 1.1 Can any one help me... Since you mentioned "upload" I will assume that you are working with an ASP.NET application: http://aspnet.4guysfromrolla.com/articles/120606-1.aspx ...Show All
Visual Basic How do I write a program for checking pi?
Hello. I'm one of those crazy people who tries to memorize pi, and my friends are really tired of me asking them to quiz me, while I recite hundreds of digits. So, I'm writing a program in Visual Basic to help me do this, and I was wondering, how would I go about doing this Thanks. I know it's kind of vague, but any help would be appreciated. Heres a solution that Does it for you, (you'll have to seperate it from the Remoting stuff) http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnhcvs03/html/vs03d1.asp Excerp: " application called Digits of Pi, which calculates p to a ludicrously high precision" ...Show All
Visual Studio VB Crystal Report app using multiple databases
Hi, I'm trying to integrate an existing Crystal Report with a VB 2005 front-end. The report is currently set-up to link to a specific server (which won't change) and then a database (which I do need to change at run time). At it stands, the Crystal Report defaults to the database it is set to and even though I have entered code (below) to use different databases, it still uses the one set-up in the report. If I try and take the database details out of the report, it errors and asks for a login with the database grayed out. The idea is that once this is working through the code I can have a drop down list to choose the database they would like to report off of when it loads. Any help would be appreciated & thanks in advance. Tim Th ...Show All
