Marleen's Q&A profile
Visual C# Tracing a program
Hello, Can somebody help me to trace my program in Visual C#.I have written a program and it has some problems and I can not trace it line by line.Please somebody tell me how to trace it. Bye First you need to make sure your in Debug mode. Then by clicking in the leftmost column on the text editor will set a breakpoint (Red Dot by default). Then when you run your code in debug mode (F5) the program will stop when it gets to that point in the code. Then you can use the stepper to step in, out, or over a particular line. You can see whats in your variables and see where its crashing to isolate the problem. This is the way to trace your code to isolate problems. This link is an example with VC+ ...Show All
Windows Live Developer Forums Recording the start and end location of a route.
I am trying to record the start and end location of a route. I see that the GetRoute method is supposed to return a VERoute object, and I know that i have to get this information from this object. The question I have is how to actually store the VERoute object that is returned. From the documentation I tried two options, but neither of them work: Option 1: var myRoute = map.GetRoute("Space Needle", "Microsoft", null, null, null; var start = myRoute.StartLocation.LatLong; var end = myRoute.EndLocation.LatLong; Option 2: ... map.GetRoute("Space Needle", "Microsoft", null, null, "onRouteReturned"); ... //later on in the code function onRouteReturned( myRoute ) { var start = myRoute.StartLoca ...Show All
Visual Studio Tools for Office How to get a reference to Word.BuildingBlocks interface on the fly?
hi. Everyone. How can I add a building block to a repository named Builging Blocks.dotx on the fly. I tried to get a reference to Word.BuildingBlocks interface, but I couldn't. I worked with Vsto3 cypress. Hi Jeon You want the ADD method of the BuildingBlockEntries collection. Start Word. Press Alt+F11 to go into the VBA Editor. Press F2 to start the Object Browser. Type BuildingBlockEntries into the "Search" box, then press ENTER. From the "Members" list select Add then press F1 to open the context sensitive Help (make sure you're connected to the Internet - currently the Help is only available on-line). ...Show All
SQL Server Stored Procedure that return Dataset(Select Query)
Hi all, I have a SP that return a dataset and I was thinking to execute that SP inside of other SP then catch the dataset to put into a variable or put into a temp table. What I know is you can not use recordset on output and input parameter in SP correct me if im wrong. I'm just wondering if I there is a work around in this scenario. Thanks and have a nice day to all. Teo: If I understand you correctly (1) you have a pre-existing stored procedure that you want to use as an internal component of another stored procedure. If your first stored procedure returns a record set then you can use a temp table inside of your new stored procedure to capture the output of your existing stored procedure ...Show All
Windows Forms Custom DataGridView
Hi, i am created custom datagridview when i am enter the data in to the cell it is disappear immediately. base paint method paint the cell so i cant able to enter the data plz help me Hi , as we know, when we use DGV, we select cell (click or double click the cell) the enter form keyboard, but I am puzzled what do you means disappear are you mean your DGV always have only one row would you mind post some code here we can have a look ...Show All
Visual Studio 2008 (Pre-release) WCF Service Times Out
I have a WCF Service that is hosted in IIS. I have a client ASP.Net web application that is accessing this service. I was able to set up a web reference to the service, have access to the proxy in code (including the methods of the service), but when I call a method the application times out. I have no problem accessing the service and recieving a timely response when the client is an application other than a web application. Also, for web applications, there is no option to add a service reference like there is for lets say a windows forms application, is this correct. Thanks in advance. -- Garry Oops. My bad. ReliableSession is not enabled by default on WSHttpBinding. However, it is ...Show All
Windows Forms Extended WebBrowser newwindow event problem
Hi everybody, First i would like to thank everybody from the previous post on the new microsoft webbrowser navigating and newwindow event extension. but i seem to have encountered a snag. i have a new web browser that implements tabbed browsing and all is well until it encounters this kind of link " <a href='#' onclick=window.open...".It just behaves us if nothing has happenned. curiously if i create a new webbrowser it works fine.So anybody please help. thank you all here is the code for the newwindow handle private void wb_BeforeNewWindow( object sender, BrowserExtendedNavigatingEventArgs e) { if (( bool )tb.Tag) // code handling new tab and browser { newTabWindow( "" ); } ...Show All
SQL Server DB PROCESS IS DEAD
Dear Friends, Please help me in below unexpected error. Server Details: HP Proliant DL385 G1, 142*6 GB AMD Opteron Processor 280, 2.40 GHz 4.00 GB RAM, DVD ROM Win2K3 R2, SP1 64bit SQL Server Details: SQL Server 2000 Enterprise Edition 32bit Service Pack4 Network Details: Clients can access the server by Terminal Server and also by Direct Connectivity. The connectivity is provided by RF network Provider. Application Details: Application was designed by Power Builder 6.5. Error Details: If I divide my clients connectivity to the server then it is divided into 3 types TYPE A >> Users inside my LAN using a DNS server th ...Show All
Visual FoxPro just asking....
how can you make your database more interesting Interesting. How to display a picture as part of each record on a form The image will be too small to view. Add an additional column in the personnel table. Use employee's photo as the image ...Show All
.NET Development Substitution for MFC's SetRedraw(BOOL) in DataGridView
in MFC's ListView i used to call SetRedraw(FALSE) before i changed the number of rows or columns and then SetRedraw(TRUE) to make the chages visible. This worked much better than without these calls, because the control tried to redraw itself every time i deleted a column, and i did it in a loop. So is there a similar solution in DataGridView, when i don't want the control to redraw itself during some period of time ...Show All
Windows Forms SaveFileDialog how to use?
I have a richtextbox1 on a child form inwhich I write a small bit of text in. I then want to save the text from this richtextbox into a .txt file. I have got the saveDialog menu at the bottom of my screen But I am unsure how to correctly make this all work. I know there should be some dialog.filter and index for txt files code somewhere but I dont know where. The code i have done so far is :- private void saveToolStripMenuItem_Click( object sender, EventArgs e) { DialogResult dr = saveFileDialog1.ShowDialog(); if (dr != DialogResult .OK) return ; else { StreamWriter sw = new StreamWriter ( "filename" ); sw.Write( ); //What should I put in the Write function } } Also is ope ...Show All
.NET Development How to get the relationship between 2 given tables?
Hi, I'm having scenario where my application will let user select tables from a list of tables. Then based on table selection i have build a sql query to get the records from these tables. My question is how to get the relation between these tables. I need to get the relation between these tables in order to build the where statement. Example if user select roles and user_roles tables i need to know which fields in these 2 tables that have relation link. i mean the primary key and foreign key. Hi, you would have to build a typed dataset with all the schema alredy placed in. The you display the tables, and based on that you can do your queries. Once you load all the schema in the dataset you can pick up your relations usin ...Show All
Windows Forms How to view XML in WebBrowser control using the DocumentText property?
Hi, (This is on .NET 2.0) The only way I managed to show XML in the webbrowser control was to write the xml contents to a file and then use "Navigate(...)" to open the file. This is a bit awkward for me because I have the XML in a string variable, and the most straightforward way to do it would be to simply assign it to the "DocumentText" property. But that did not work... (nothing is displayed, although using the context menu to view the page source shows that my xml content is there). Any tips on how to do this Thanks Rubens Hi .. i have implemented the same bit. ie. showing PDF/ HTML/ TEXT file in the webbrowser. I implemented that as i was saving all my files in the database as byte array .. ...Show All
Visual Studio Team System How to recover deleted data related to load tests from VSTS?
One of my team members has deleted some important data about few load tests. The steps followed to delete data are: 1. Launch VSTS. Click Test -> Windows -> Test Runs from menubar. 2. On 'Test results' window, select 'Loacl results' 3. Select the test runs and click delete (x) button. The data we lost was important. Is there any way to resore the data Please help. Regards, Rohit Parasharami. I think your data is lost. You can query the database to see if the run still exists and if it does, I can help you access it. Query the LoadTestRun table and see if the run that you are interested in exists. If it does grab the loadtestrunid and I will give you more info. ...Show All
Windows Live Developer Forums Nearbys from my own geocoded address list
I have alis tof 1500 shops/stores in a GeoCode.xml file. I have been able to take a single store, put it into a xml and then run VE and get the shop to show with a pushpin!! Woot! Anyway, what I need to do is take the address entered by a consumer and then get the 5-10 nearbies of my 1500 and pushpin them. The pushpinnning is easy, the nearbies is not. The MSDN site for Virutal Earth mentions "proximity search capabilities" but then the next page has 10ish demos/wlakthroughs and none are "proximity searches" Any thoughts out there Virtual Earth has a FindNearby() function that is designed to find a "what" like pizza near the current view. It search MS's data only. This is not helpful f ...Show All
