amol_16's Q&A profile
Windows Forms TreeView XP style
I have managed to get XP Styles in my app (its taken a long time to figure it out) but now the treeview doesn't seem to look right. It starts off with a Win98 style scroll bar and once I resize it the scroll bar turns to XP style with the buttons (Left and Right) staying Win98 then when i resize again it all turns to  ...Show All
Windows Forms Repopulate Combobox from second form
Hi, I've got 2 windows forms (vb.net). The 1st form contains a combobox which is populated by a tablecolumn from a SQL Server database. On a 2nd form I can add items to this particular table. The second form is opened from the first form. When data is saved on the 2nd form, I call a public sub on the 1st form to repopulate the combobox on the 1st form: 2nd form: Private Sub btn_save_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_save.Click ....here the code that updates the datasource, this works ok... My .Forms." name of 1st form ".repopulate_combobox() 'this calls the ...Show All
Visual Studio 2008 (Pre-release) How do I get svcutil to use generic List<> for proxies?
I have some services that return List<SomeType> but when I generate the proxy it uses SomeType[] rather then List<SomeType>. Is there a way to change this behavior Is the /rct switch what I need If so can someone give an example of how it should be used. I actually have a bunch of services that return generic lists so I'd like to try and do this across the board rather then for a single service/type. Thanks, Steve I'm having the same issue. I'm trying to return a List generic collection reference to a custom type that I have in my solution back to the client. When I add a reference ...Show All
.NET Development Object disposal while thread is aborting
Hi All, Kindly let me know about object disposal in multithreaded program. I am particularly interested in knowing object disposal whenever thread is aborted. Any help (Explination, Articles and others) is very much appreciated. With Regards, kalai Do a Google search for: chris brumme reliability. Search in msdn for "Reliability Best Practices". Of course the most important issue is architectural. Do you really have to Abort threads This is a dangerous practice. .NET 2.0 makes code more reliable (critical finalizer, SafeHandle, constrained regions; http://msdn.microsoft.com/msdnmag/issues/05/10 ...Show All
.NET Development PageTimeOut....HELLLP :)
Im new to this, but have made an OK site. i just need one thing....... And thats a pageTime out. I have tried all i can find on msdn, but can get it to run.. In JavaScript you have the commando: window.setTimeout('window.location="Default.aspx"; ',5000); What is the correct .NET way to do this ...if there is one. Hope somone can help, as i have used a hole day on this toppic Best regards from Denmark. the hood What behavior are you looking for For the page to redirect after a specific amount of time You can use meta tag to accomplish this. http://www.dnzone.com/ShowDetail.asp NewsId=565 If you'r ...Show All
Visual C++ 64 bit porting Issues
Hi Albert! We are planning to port our COM, mfc applications to 64 bit platform. Any pointers to the resources for 64 bit porting issues, guidelines, casestudies, newsgroups and forums would be of great help. See: Porting 32-Bit Code to 64-Bit Code http://msdn.microsoft.com/library/en-us/vccore/html/vcgrfPorting32BitCodeTo64BitCode.asp See: Overview of the compatibility considerations for 32-bit programs on 64-bit versions of Windows Server 2003 and Windows XP http://support.microsoft.com/kb/896456/EN-US/ See: General Porting Guidelines http://msdn.microsoft.com/library/en-us/win64/win64 ...Show All
SQL Server Obtaining destination e-mail address
I have been asked if we can give NS the destination e-mail address via our Application's Event Table. I have suggested that this defeats the purpose of using NS and that we should instead call the Subcription Classes from our system to create and manage subscriptitons. That way we can take advantage of the more advanced Distribution features in NS. Is this the right way to think about NS or is passing the e-mail a common practice Thanks ...Ray Ray, I understand that there's a lot ot learn before you can be productive with NS. Many things we're doing in the next release are aimed at reducing this burden. That said, N ...Show All
Windows Forms Header
Hello; I have a question. I tried to change Column header text of DataGrid with following snippet, but I doesn't apply. I've used ArrayList Instead of DataTable or DataSet to MappingName Property and think the error is realated to that; DataGridTableStyle TS = new DataGridTableStyle(); TS.MappingName = "Categories";// Categories is Filled with an ArrayList CatGrid.TableStyles.Add(TS); CatGrid.DataSource = Cat.GetCategories(); CatGrid.TableStyles[1].GridColumnStyles[1].HeaderText = "CategoryName"; And then I got this error: Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index ...Show All
Software Development for Windows Vista WinFX RTC December 2005 Not working with December Vista SDK
There's a problem with the WinFx RTC download for December 2005. The links on the page http://www.microsoft.com/downloads/details.aspx familyid=BD3BA2D5-6ADB-4FB2-A3AA-E16A9EA5603F&displaylang=en There's a link to download the entire WinFx RTC package instead of the "smart" installer. http://download.microsoft.com/download/9/4/9/949EEA41-364A-45DC-8F4E-47E7AC147D25/winfxrc.exe I checked the time/date stamp in the downloaded files from the WinFX RTC and the Dll's are all from 11/18/05. this is for the WinFX RTC that is linked on the downloads page indicating it was December 2005 WinFX RTC. This happens wi ...Show All
Windows Forms Capture Property not working as expected
I have created a class that acts as an in-place editor. It is basically a form that contains a textbox. The user passes in the size and then calls ShowDialog. What I want to do is capture all mouse input once the Editor has been displayed so that if the user clicks anywhere outside the textbox the editor will close. To do this I have tried overriding the OnControlCreate method, as well as handling the VisibleChanged event, and setting the Capture Property on both the Form and the Textbox to true. Nothing I have tried delivers the desired effect that the MouseDown event is triggered for the textbox (of form) when clicked outside the ...Show All
Visual Studio Team System Why BugList and Mybugs have been removed form the report lists in Beta3 refersh
Hi there, I am wondering why did we remove 'BugList' and 'MyBugs' reports from Available reports in Process template. They were quite useful. If i try to use add by copying .Rdl file and adding that section in ReportsTesks.Xml, it does not work and Project cteation could not upload those reports. How can I add those reports Thanks, Anu I work with Anu and I think I can answer this question. We have removed all workitem types from our VSTS implementation except for the type "Bug". We were primarily using these reports to provide web read-only access to the bugs for people who did not install the VSTS client ...Show All
SQL Server Update Trigger... best solution
Hi All I have two questions: 1. the below trigger, is it the best way to update a inserted or updated column Create trigger tr_update_acc_status on customer for insert, update as begin update customer set deleted = 1 where account_status = 4 and account_status = 6 end begin update customer set deleted = 0 where account_status = 5 end it works ok but takes a long time to update the deleted column as it scans all records, which takes me on to my next question: 2. is it possible to amend the quiry above to it only updates the record i have added or updated Thanks First of all your q ...Show All
Visual Basic create a high score list and enter name dialog boxes
In the Space Blitz starter kit I want to add a high score list, and a place to type in the player's name. Please reply ASAP. Mario, You will get a much better and timely response if you can explain to us what kind of problem you are having with what code! ...Show All
Software Development for Windows Vista Does software install and work across all Vista Editions?
Can all software be installed across all Vista Editions e.g Can Visual Studio 2005 Standard Edition be installed on Vista Home basic or premium editions Will there be any software installation issues for the different Vista editions ...Show All
Windows Forms BackgroundWorker IsRunning Property?
I'm trying to use the BackgroundWorker class and wanted to find out if my instance was currently busy. I was hoping for a IsRunning or similar type of property. But none exists. Using reflector I saw that a private field exists called isRunning. It would be nice if this flag was made available to users in a property. -Robert ...Show All
