MBaig's Q&A profile
Windows Forms A really basic question for Windows forms.
I've done a ton of .NET development in ASP.Net using web based technologies for years now, however, I've had VERY little experience with Windows forms. As such, I have a few questions I would appreciate some advice on; I've started a Windows Form Project and written my main form and added a MainMenu control bar to the top. 1. I want to spa ...Show All
Windows Forms Databindings and BackgroundWorker component
I am having an issue whereby the controls that I have bound to my custom business object are not reflecting changes to the source object after it has been persisted to the database. The business object is declared as a private member in the Form instance, and after InitializeComponent runs I call a method that creates all the necessary bindings and adds them to the appropriate controls. When the Save button is clicked, the BackgroundWorker is instantiated and the event handlers for the DoWork, ReportProgress, and WorkCompleted events are wired up, then the BackgroundWorker.RunWorkerAsync() method is called, which then passes the business obj ...Show All
Visual Studio Express Editions Several questions
Hi, I'm new to VB, but have played with some programming just a little. I'm working on a Windows application that retrieves XML weather for any location you specify. I'd like to know how to deal with XML to use the data I want. If either is possible, I have no preference whether I analyze each line as it's downloaded or I dump it all to a file and deal with it there. I'm totally new to this, so I don't know how it works to specify what XML you want to retrieve. I'll post the link to a city so you can see what the XML looks like: http://xoap.weather.com/weather/local/USPA1290 cc=*&dayf=5&prod=xoap&par=1017300893&key=26 ...Show All
.NET Development How to disable Events in .NET
Hiii, I want to disable the button click event of the page if some condition goes false in the page_load event of the user control in that page. Simply if i have clicked on the button and i want if some condition goes wrong in Page_Laod event i should not fire the Button Click event.. Please help me out. No, you must add and remove event handlers as i siad in my first post. That's the reason that i was trying to search for a better solution. ...Show All
Visual Studio Express Editions Is there a command that I can add to my program to insure that the SQL Server is running?
Visual Basic 2005 Express Edition: Occasionally, I get an error message when I run the application that I am developing. The problem appears to be that the SQL Server is not running. Is there a command that I can add to my program to insure that the SQL Server is running Below is the error message that I get at random times immediately upon running under Debug: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - E ...Show All
SQL Server Datasets in custom code
Hi guys, is it possible to access my report's datasets from within custom code or pass them as parameters to a custom assembly I want the dataset itself, not just fields, so i can programmatically look through it for data. Thanks! sluggy This is not directly supported. There are however some alternative approaches: * add a list reportitem to the report and inside the list make a call to your custom code/custom assembly function and pass in the fields as parameter values. This will call your function for every row of data of the dataset bound to the list. * or a more complex but also mo ...Show All
Smart Device Development DateTime Picker for SmartPhone
I give up. How is everyone getting a DateTime Picker for smartphone I am using the vs 2005, but I want to support 2003 devices (since there are very few 2005 smartphones). THanks, Since Smartphone 2003 devices only support .NETCF 1.0 - there is no built in control in VS 2005 for DateTime Picker for NETCF 1.0. I notice there is one available at http://www.opennetcf.org/library/OpenNETCF.Windows.Forms.DateTimePicker.html I am not entirely sure if this is supported on Smartphone or is only for a PPC 2003 device. .NET CF 2.0 Projects for Windows Mobile 5.0 Smartphones do have the datetimepick ...Show All
SQL Server Reporting Services Web Service API
I'd like to create/edit models and data source views in code using the Web Service. I can't find examples anywhere or on BOL (there are only syntax breakdowns for CreateModel and others) that will take me to the next level.. Can someone please point me in the right direction (code/articles/book) ...Show All
Visual Studio Displaying multiple reports in CrystalReportViewer in ASP.NET, VS2005 Beta 2
I am a new VS 2005 b2 user. I have several reports that I want to display simultaneously in one crystalReportViewer on an asp.net page. In Crystal 8.5, this was possible with the ActiveX Viewer. Is there a way to do it in VS 2005 b2, or do I have to upgrade to a new version of crystal If so, which one Thanks for the feedback, I'll make sure that our product group takes a look at this thread. Just to clarify for the rest of the people reading CRAXDRT is our COM based reporting engine. It is not a .NET reporting engine is not shipped with Visual Studio .NET 2002 or 2003. Keith - Business Objects ...Show All
Visual Studio Team System Load Testing Across Agents
I have some Load Testing set up that has a webtest that grabs a username / password from a DataTable (created from XML). This happens in a Web Test plugin (PreWebTest), and the method that grabs the username/password is shared, and mutexed internally, so no one gets the same username/password. When I eventually use Agents for this, where does the PreWebTest fire On the controller On the agent If it fires on the controller, I'm guessing the controller does whatever it needs to the webtest before passing it to the agent Or does the agent have a the webtest, and the controller gives it a M icrosoft ...Show All
SQL Server Error: Subreport could not be shown
I am a new one in using ReportViewer in VS 2005. I try to use Main and Sub report to show data from my dataset. It doesn't matter if I use main report only, but the problem is when I use subreport intergrated with the main report. When I run it in browser, it shows: Error: Subreport could not be shown The main report is ok.Is there any solution to the problem Thank for your help!!!! Hello, Are you able to view the subreport if you navigate to it directly If so, you probably havean issue with the subreport reference in the parent report. ...Show All
Visual Basic Run, Message, Delete
Ok heress what i want to happen when i click a button, its saves a .bat file(which i already have working) Next it runs the bat file when the operation is done a message comes up saying "Done" Once that is done it deletes the .bat file Process.Start("c:\myBat.bat") MessageBox.Show("I've done all sorts of nasty stuff") File.Delete("c:\myBat.bat") ...Show All
SQL Server SQL CE Minor Error 25020
I am trying to pull a table to SQL CE using RDA from a SQL Server but I get a exception with a Minor Error code of 25020 - Failed to obtain a lock for a commit. Any ideas what this means Thanks in advance. Hope your questions are in reference to SQL CE 2.0 version. Are you having any open connection before proceeding with RDA Make sure that you dont have any open connection. Thanks, Laxmi NRO, MSFT, SQL Mobile ...Show All
Visual Studio Team System Is there a web interface to VSTS defect tracking?
That means, I want to manage the bugs via web interface, such as open bug, change its state, ...etc. Does VSTS support this Thanks, Leon, There is nothing supplied in the box with the current release, however there are third parties working on such things. The guys over at DevBiz have one called "Teamplain Web Access" that you can evaluate or purchase. See http://www.devbiz.com/teamplain/webaccess/ for more information. I have not used it in anger myself, but I saw an early beta version and it seemed to do what you want. Cheers, Martin. ...Show All
SQL Server Long running Query
Hi, I'm trying to optimize a long running (several hours) query. This query is a cross join on two tables. Table 1 has 3 fields - ROWID, LAt and Long. Table 2 has Name, Addr1,Addr2,City,State,Zip,Lat,Long. Both tables has LatRad - Lat in radians, LonRad- Lon in Radians. Sin and Cos values of Lat and Lon are calulated and stored to be used in the distance formula. What I'm trying to do here is find the nearest dealer (Table 2) for each of Table 1 rows. The Select statement takes a long time to execute as there are about 19 million recs on table 1 and 1250 rows in table 2. I ran into Log issues- filling the transaction log, so I'm c ...Show All
