Simple Samples's Q&A profile
Visual C# Using xlTable Fromat in DDE client
I have a third party DDE Server and I am using .NET C# NDde writen by " Brian Gideon " from " GotDotNet " to connect to this server. My problem is that I do not know how to get the Format the DDE Server use for advise using C# // Advise Loop client.StartAdvise("myitem", format , true, 60000); because each time i restart the server it will use differnet format The Microsoft Excel was able to connect to the DDE Server with out puting the format into the cell just provide the SeriveName, Topic, and Item and Excel will automatically discover the format and use it for Advise Loop just like this =ServiceName|Topic!Item So for me to know the correct format I have to use DDE Monitor to monitor the co ...Show All
Windows Forms Minimize up the chain to the Parent Form
Question I have windows application in which the user has the ability to edit data in a modal dialog(1). During that time other modal dialogs (2) may spring up for the first modal window (1). The behavior I see is that if the any of the child modal windows (2 | 3) are minimized, that there direct parents (1 | 2) are not minimized as well. How can one move the minimize message up the chain of command WHY There are circumstances where the minimize of the modal child is needed and the user wants to view the parent, but there are also other times when all items need minimizing. Platform .Net 2 C# The first modal dialog (2) has its owner property set the the main form. advTHANKSance Hi Hans, I think you see the dilemma faced. If t ...Show All
Visual Basic How can I capture mouse gestures?
I have a 'widgets' program that just sits in the system tray until the user presses Ctrl+F8 or clicks on the icon. What would be completely awesome is if the user could activate the program by doing some kind of mouse gesture (moving it in a spiral, or somthing like that). Would it be possible to implement this in VB.Net or should I not even bother trying hehe thats pretty cool. I would already find issues with this, what happens if the user did the sequence you were after but did not intend to launch your application back up What happens if they did it accidently or playing a game or something Would be bad therefore its better doing it via the keyboard shortcut instead. I think you would have to have some mouse hook or something. ...Show All
Visual C# Versatility/Practicality of C#?
Hey all, new to posting but ive been reading here for a few weeks. Anyway, on with my question (which probably has been asked in some way already)- How versatile is VC# compared to VC++ All I generally see are simple (*duck/cover* ) desktop applications. I've read that its possible to do game dev (including DX and OpenGL), but I have yet to find any engines done in C#. I have just looked at API's/engines/SDK's for games, but I have not gotten actually into manipulating/programming in them yet. I've done some basic reading on C# and I sort of want to get into it, but I plan on in a few years down the line working for Lockheed (or a defense contractor of some sort) or EA-Tiburon. I've been programming since I was probably around 10, ...Show All
Windows Live Developer Forums Any way I can show Elevation Data on VE?
Hi Everyone, I was wondering if there was any way I could overlay elevation data on to the map Either by using contour lines or by doing some kind of shading to show gradients thanks SoS Well, yes, sort of. If you check out the interactive SDK, and do the Add a tile layer part, you'll see that I'm overlaying elevation data in the form of LIDAR images. If you combine it with the aerial map style and 50% or so shading, you actually get a really cool effect. Of course, you could create tile layers from Topo maps. If I were a clever photoshopper, I would strip a topo map of everything but the topo lines and then overlay those with transparency... ...Show All
SQL Server Package scheduling and error trace-
I am scheduling the package to run on the nightly basis everyday using windows scheduled task. How do i check whether the package ran successfully or it has given any error. Can anyone please suggest me if I can log the error in some table of SQL server. PLease suggest the steps. When building a package in BIDS, have a look at the logging options. See the SSIS menu item, Logging. You can log to several locations including a table. I would expect DTEXEC to send the appropriate return code when it failed, so the scheduled job should fail. Unfortunately the windows scheduler is not very advanced, so you cannot capture output or configure the return code. The lack of output and monitoring mean ...Show All
Windows Forms Showing an animated waiting dialogue while invoking a remote method
Hi, I’ve developed a smart application that uses .Net Remoting. When calling a remote method, the system hangs up till the method returns. It will be nice if I can find a way to provide the user with an animated dialog telling him that there is information being requested from the server. Any help IF you are using 2.0 .net, try exploring backgroundworker class... You can spin of the remoting call in the backgroundworker and show a progressbar (or whatever) till the Completed event is captured.... Hope this helps ...Show All
Visual Studio Express Editions Visual Express, Beta 2, Properties panel is empty working with code, only I can acces in design mode
I installed the beta 2 version and I find the properties panel is empty when I am working in the doce of the web pages. But it works well when I am in design mode. Previous the beta 2 I could work in the properties panel in code mode. Now I have to change to design mode in order to use the properties panel How can use the properties model in code mode Thank you very much Why are you using the Beta version This version is unsupported and you can download the released versions of Visual Studio Express on the Express website ( http://msdn.microsoft.com/vstudio/express ). ...Show All
Visual Studio Team System TF31002 unable to connect on 2 different client machines
We are just starting to roll TFS out at our shop. However, we are experiencing the TF31002 error on 2 seperate client boxes. I have already tried the following with now success. Any suggestions I have seen problems similiar to this. This type of connectivity to the Team Foundation Server problem is usually resolved by clearing the client side Team Foundation Server cache. To clear the cache perform the following: 1. Close Visual Studio. 2. Delete the contents of the folder: %USERPROFILE%\Local Settings\Application Data\Microsoft\Team Foundation\1.0\Cache\ 3. Start Visual Studio. 4. Connect to the Team Foundation Server through the Tools menu Connect to Team Foundation Server option. T ...Show All
SQL Server Import Data from excel file into Sql server 2005?
Hi all, I try to import data from excel file, my excel file have column called Name, the value of this column is text: ex: Binh Chanh, 1,2,3,4,5.....When i import into sqlserver 2005, these rows which have value 1,2,3,4,5 (number) , now have Null value in SQL server 2005. How can i fix this error Thanks, Do you use the IMEX=1 switch in the Excel connection string (like: Provider=Microsoft.Jet.OLEDB.4.0;Data Source= <your_file_name> ;Extended Properties="EXCEL 8.0;HDR=YES; IMEX=1 "; ) It did the trick for me, although my problem was the other way around: numbers were correct, text was NULL values. So I'm not sure whether it will work for you. Pipo ...Show All
SQL Server stored procedures compilation
Dear all, Programmer had writen a stored procedure which gets executed on the page load of our website. if the page is refreshed 10 times the stored procdedure gets executed 10 time. Is there any way to stop the stored procedure compilation. Regards Mohd Sufian http://www.microsoft.com/technet/prodtechnol/sql/2005/recomp.mspx ...Show All
Visual Studio Team System Running outside TFS - Possible?
I've got almost the same software at home as at work, except for the Team Foundation Server of course. I've installed the VSTS at home and have added the VSTS-DP. Is there some way I can take the db project from work (on a usb drive) and work on it at home and then merge the modified files back into the TFS-VC EDIT ******************************************* Well, I grabbed all the files from work thru remote. Then tried to open it here at home. When it was opening it complained 3 times about not resolving the server name. And also warned me about source control and gave me the option to work temporarily uncontrolled. Toward the end of the load, it said I needed to go to Tools | Options and change the validation database ...Show All
SQL Server export PDF under a button click
How can I realize export PDF under a button click in my ASP.Net 2.0/SQL2005 application Any example will greatly be appreciated. The ASP.NET ReportViewer control will allow you to export a generated report to any of the supported formats, but if you need to do so programatically here is how you can do it. Replace MHTML with PDF in the sample code. ...Show All
Software Development for Windows Vista RPC problem with MSDTC
Hi everyone, I am having some trouble with the DTC on a client machine and need help to get it working. The problem started while doing some experimenting with the new WCF stuff, but has evolved into a simple client side dtc problem. In a nutshell, I can't get dtctester utility to work. Some interesting points: * I am running winxp sp2 on both client and server * server is running SqlServer 2000 * both computers are in same domain * several other computers in the same domain can run both my wcf transaction code and the dtctester util without problem * my local firewall is turned off * server firewall is turned off * security config for dtc on both machines set to allow everything (all check boxes are checked) with No Authentication Requir ...Show All
Visual Studio Drillthrough report with remote and local processing in web report viewer
I've built a set of drill through reports using the Navigation tab. I'm rendering the reports via the Reportviewer control in an ASP.NET app (RTM). To accomlish this do I need to write code in the " Drillthrough" event to set the parameters of the drill through report and change the Report path for the reportviewer control If so, how do I capture the value from the parent report in order to pass it to the drill through report I'm using remote reports though, not local reports. I don't have to supply data, the remote report has it's own connections and datasets, I just pass parameters to the report. In the event handler where would I examing the parameters being passed from t ...Show All
