Brain_Dead_Mind's Q&A profile
Windows Forms Dispose called after edited filter row disappears
We have a DataGridView on a form that can be filtered based on a user checkbox to show or hide rows with a column whose value is empty. This is done by setting the Filter property on our BindingSource to " MyColumn <> '' " when the checkbox is checked. When the user is looking at the filtered view of the records, they can edit MyColumn's value and remove everything from it, causing it to no longer pass the filter. When they click to a new row with an empty string in MyColumn, the row drops from the list and we can verify that the changes were made to the database (as expected). The program finishes all our code (verif ...Show All
Windows Forms Listbox ??
Hello Everyone, I have a listbox, dragged from toolbox to a form. No Problem...I can populate the Listbox no problem.. I'm curious is there any way to increase the height of the item in listbox, as I dont want to increase the text size... As now after every entry I add a space and thats too much of a difference and I dont want to do that...If i dont put a space its too close to find a difference.....Any best way suggestions... Thanks, Harsimrat On a regular ListBox, your only options is change the Font Heights. Other than that, the next option is the tiresome approach of OwnerDrawing your List ...Show All
Visual Studio Express Editions unable to update data in a database
Hello! I am using VC#2005 Express and trying to work all off the video tutorials. When I started to work on Lesson09, I encountered a problem: I follow instructions from video lesson, but when I try to update data in a database, I receive an error: Update requires a valid UpdateCommand when passed DataRow collection with modified rows. I use default settings for tableaddapter and dataset, in a same way as in video, and here is the code private void button1_Click( object sender, EventArgs e) { bindingSource1.EndEdit(); int result = 0; result = customerTableAdapter1.Update(myCompanyData ...Show All
Visual C# Modfying Part of a String
Hi, I am trying to change only part of a string with a new value. I have a string with the value "Hello". I want to change it to "Heslo". I am trying to do this: string sal = "Hello"; sal.substring(2, 1) = "s"; This keeps giving me an error "The left hand side of the assigner should be a variable, property, or indexer" How can I accomplish this in C# thanks sal = sal.Substring(0, 2) + "s" + sal.Substring(3, 2); Not sophisticated, but it works. Arnie ...Show All
Visual Basic How to data stuff from an Access Database with VB 2005
I see other solutions, but have been beating my head trying to get set up to be able to port my vb6 stuff to .net. I use an Access Database with Many tables and relationships. Most of all the samples I see are for SqlServer etc. Where is a good area to go find samples etc for doing Access with VB2005 As an added information. I have always connected and did the database stuff in code, I never used the Data Environment in VB6. My programs/Applications I am working with require constant updates to various tables as there are multiple users. There are Fields that are unique an ...Show All
Windows Forms DataGridView Selected
Hi I'm performing a internal search in the grid. After the search i'm selecting the first found row by using the “Selected” property. this .dataGridView.Rows[foundRowIndex].Selected = true ; I can see the row getting highlighted. But the book mark (The black color triangle object that you see in the 0 column of the grid, when you do a manual selection to a row) is not set properly. Due to that the user will not see the selected row if the row is not in the visible range of rows. Cheers Krishan Check out: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=212182&SiteID=1 Hope ...Show All
SQL Server Start time of a overrunning job
Hi, A job on my server has been run for couple of days. It is just hanging there. It could be started manually. So I want to find a way to be notified if a job is overrunning. I can get the execution status. But I cannot find the process start time while the job is still running. Can anyone let me know if how to get the start time Thanks, Jia Not sure hich version of SQL Server you are using, but what about querying the msdb table for that: SELECT * FROM sysjobactivity HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Debugging stops without messages
Have a task that has 120 tables (components) that I am running in debug mode. Just over half of the components run which takes btrieve db and converts into a sybase db. When it stops running there are a few components that are yellow, the components which completed are green and the rest are still white because they have ran yet. The problem is there is not a message to indicate as to why it stopped. I've broken up the task into two tasks and also tried making two projects. The same situation happens at the same point. Our dbas have checked the database to ensure that's fine and it is. Is there some sort of limitation in how many components ...Show All
Visual Studio Team System Error!SQL Server 2005 Report Server Web site is not running!
When I installer TFS bete 3,I according to installer guide's content operation,but when installer TFS beta 3 ,System occur error!pls reference below: Warning Description Physical memory does not meet recommendations Workaround / Remedy The physical memory (RAM) in this computer does not meet the recommendations for installing this product. If you continue with installation, you may experience performance or scalability issues More information For additional information and help please refer to: http://go.microsoft.com/fwlink/ LinkId=52502 Block Description SQL Server 200 ...Show All
Visual Studio 2008 (Pre-release) Enum?
Hi, Can I have Enum as a DataContract with DataMembers For example: <DataContract([Namespace]:= "http://MyServices" )> _ Public Enum EventType As Integer <DataMember()> _ LOGIN_FAILED <DataMember()> _ LOGIN_SUCCEEDED End Enum When I generate the above (svcutil) I get an empty Enum. Thanks! Scott The problem seems to have resolved itself now... I cleared the solution and re-got everything from source control, and I'm no longer getting the same problem. I guess it was a dirty build issue somewhere, though I'm still not sure what cau ...Show All
Smart Device Development wifi API for pocket pc 2003???
Hi experts, I really need to get all the wifi information in pocket pc 2003. I test with Qtek 9090. I try to search all in msdn and qtek page, but i can't found any informations about it. Can you show me how to do that with API Second question: Can we know when the GSM network is enable or not If i understand exactly i have to use TAPI 2.0 for pocket pc 2003 can you show me some sample code for pocket pc 2003 Thank you so much. Julien This is all you need for WiFi API's: http://www.microsoft.com/whdc/device/network/802x/80211_netadapt.mspx http://support.microsoft.com/default.aspx scid=kb;[LN];328601 regards, KC ...Show All
Visual Studio is preview option availabe in Crystal Report .Net ?
hi friends, i am new to Crystal Reports. i have created a simple report in .Net by selecting a add new item -> crystal report. i have added some fields in the details section of report. but now i don't find any option to see a preview of this report. how do i go about it one more thing i tried was.. i added CrystalReportViewer to a webform. i want to assign that report i created earlier to this viewer. is it possible please help Hello Najum, Check out our Developer Zone for Getting Started Guides and How Tos: http://www.businessobjects.com/products/dev_zone/default.asp There is a section for .NET developers there. Keith - Busines ...Show All
Visual Studio 2008 (Pre-release) Coexistence with WebServices
We have some older code that uses webservices. When I installed all the stuff required for WCF on my development system, I can no longer compile the previous webservices on the same development platform. When I attempt to compile the previous webservice application, I get an error that says: Error 1 Could not load file or assembly 'System.Runtime.Serialization, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. I'm sure that I'm getting this error because WCF has installed a new version of System.Runtime.Serialization and its no longer compatibl ...Show All
Windows Forms Creating Setup application in VS 2003
Hi Guys I've created setup project for my application and added custom dialog with one checkbox (other three I've disabled). I'm interested now in how I can get the information whether this checkbox checked or not Regares Yeghia Yeghia, the information from the checkbox is exposed through the checkbox1Property Where 1 is the number of the checkbox. The actual name of the value is configurable but defaults to CHECKBOXA1, you can access it in the project by using [CHECKBOXA1] or whatever you rename it to inside square brackets. ...Show All
Visual Studio 2008 (Pre-release) Property Initializers with generics - bug?
Any reason why this shouldn't compile using System; class Test <T> { T _x; public T X { get { return _x; } set { _x = value ; } } } class Prog { static void Main() { Test < int > test = new Test < int >() { X = 3 }; // Test.cs(10,48): error CS0029: Cannot implicitly convert type 'int' to 'T' } } Joe ...Show All
