Lzitro's Q&A profile
Windows Forms BindingSource.Find() Problem
(Beta 2) I get an error message, "DataMember property 'AccountingPeriodId' cannot be found on the DataSource." when calling the Find method on my binding source: AccountingPeriodBindingSource.Find("AccountingPeriodId", 7); Any clues TIA, Rob RobLinton wrote: (Beta 2) I get an error message, "DataMember property 'AccountingPeriodId' cannot be found on the DataSource." when calling the Find method on my binding source: AccountingPeriodBindingSource.Find("AccountingPeriodId", 7); Any clues TIA, Rob I get the same error on the released version of VB 2005 Express. I can use the Binding ...Show All
Visual Basic Setting form time out to exit if idle for xx minutes?
Hi, Does someone have a code snippet or reference page that illustrates the use of a form timer or variable to be set that allows one to set a limit on an open form to close after a period of time if no activity has been done. I want to close/exit a form if the user has not entered or clicked a field for, lets say 15 minutes. If there has not been any activity then close the form and return back to the main form. Thank you from a newbie. R. In the above example, the message box will be displayed every five seconds once the timeout value has been reached, and continue to be unti ...Show All
Windows Forms CheckedListBox check state not getting updated in tab conrtol
Hi, I have a ChecekdListBox in a tab control. When I am setting the checked state of my CheckedListBox, it is not updating properly if the control i hidden in the tab page. Run the attached sample. Click Check button. Now switch to tabPage2, notice that the checks are not placed. Now click CheckButton again, notice that the checks are placed. Is this a bug ...Show All
.NET Development The connection's current state is Closed??
Hi all, I'm trying to use a sqlDataReader to load data into a DropDownList on a .aspx page, but get the following error: Server Error in '/YLCPDTdb' Application ExecuteReader requires an open and available connection. The connection's current state is Closed. But havn't I opened it with the conn.Open(); statement Here's my code: private void Page_Load( object sender, System.EventArgs e) { / Load country names into countryCboBx try &nbs ...Show All
Visual Studio Visual Basic Express Won't Install - Crashes EVERY time
Can you take a look at the logs in your %temp% folder and paste the data here Look for dd_vsinstall80* and find 1603 in the file. Then cut-n-paste the lines above it in a reply. Also, look at the VSMSI* log and look for "return value 3". Cut and paste the lines above it as well to help us debug the problem. Thanks. ...Show All
Visual C++ Read from Big Text file.
Hi. this is my code for Reading from a text file.(file size is 1kb) if my txt file was more than 1MB, how could I read it (I don't know about Memory management.) thanks. //---- #define BUFFERSOZE 1024 //--- //-- - void CMyClass::Open_ReadFile(CStirng strFileName) { char Buffer[BUFFERSIZE]; Buffer[0] = '\0'; CString strErr = "Can't Open " + strFileName; HANDLE hfile = CreateFile(strFileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTI ...Show All
Visual Basic Creating Tables with sql express
I know this deals with ms sql express more so than vb.net but it correlates b/c I want to edit the database with vb.net express. On to my question... I'm trying to learn how to use ms sql express using the SQL Express Manager. However, I can't seem to figure out how to create tables. I'm reading http://msdn.microsoft.com/SQL/2005/getstarted/default.aspx pull=/msdnmag/issues/04/09/expresseditions/toc.asp but it seems outdated and I can't replicate what he's doing in the tutorial. I'm not a total novice when it comes to programming, but SQL Express Manager isn't as intuitive as one might think, there's no "Create Table" context menu. Can ...Show All
Visual Studio Team System TFS Source Control - Get Latest not working properly - Files are not marked ReadOnly
A couple problems with TFS Source Control. 1. Sometimes when getting latest, it will tell me that I have lots of conflicts because there are writable versions of a file in my working folder. I go and look and the file attributes are marked with an "A" instead of "R". This happens a lot and some of the files I never even worked on. Is there some way I can re-get everything from source control to overwrite all my files with the "R" readonly flag flipped. This also causes a problem when I try to edit one of these files that doesn't have the "R", it doesn't ask me to check it out. It seems quite random ...Show All
Visual Basic Display alpha icon in the toolbar
How to add a 32bit icon or PNG image to the toolbar There is no alpha transparency effect. (vb.net2003) ...Show All
Windows Forms Hosting Terrarium Server?
Does anyone know of a good Terrarium Hosting company that can host the server for approximately 5000-10000 users I looked all over the web, and all matches evenually link to the windows forms website. Thanks Any hosting provider that supports ASP.NET 1.1 and SQL Server should be able to host the Terrarium server. ...Show All
Visual Studio Express Editions Power control of windows: How to reboot and wake from hibernate/standby?
Hi everyone: I have only found system.windows.forms.application.setsuspendstate method could make system into standby or hibernate state, but I don't know how to reboot the system via .net method. Must I call API functions to reboot the system And I want to know how to wake up the system after hibernate/standby For example, if my user input "3" and hibernate, the system should enter hibernate and wake up itself after 3 minutes. Is that a method could do this in .net framework or which API should I call Thanks very much!!! Um, I don't think there are any program running in hibernate (or suspend) state: it would probably ...Show All
SQL Server Synch
Hello, I would like to request you to kindly point me to a location where I may obtain more ideas/suggetions/details on how synchronization may be performed in a real world scenario MS has been promoting smart clients and offline availability, but I cant seem to find any material that outlines some ideas/techniques/pointers as to how this may be acheived sans SQL Server replication Essentially, what I'm looking for is someting that would guide a not-so-solid-with-databases person like me through how synchronization (sans sql replication engine) may be implemented - any watchouts etc.. Regards, Avinash ...Show All
.NET Development Windows Registries: C# :Need Help Urgent
Hy, Can any body tell me how to remove or repair invalid registries in windows using C# , what is the logic behind all this (means scanning the registries, APIs and others). if any body knows please tell me i'll be very thankful. Bye I have to admit that I didn't get your question, but in case you want to work with the Windows Registry, check Microsoft.Win32 namespace, you can find Registry class in there where you can get yourself started in working with the registry. For more information, see here: http://msdn2.microsoft.com/en-us/8bf3xkta.aspx Regards, -chri ...Show All
Visual C++ LNK2019
I am new to the forum. I hope this is a right palce to place my question here. I run into a problem with MS Visual Studio 7.0 (.Net 1.1) when I try to build a window program. It was a project with .c and .cpp file mixed, but no c++ class been involved. *********************************************************** nafxcwd.lib(thrdcore.obj) : error LNK2019: unresolved external symbol __endthreadex referenced in function "void __stdcall AfxEndThread(unsigned int,int)" ( AfxEndThread@@YGXIH@Z ) *********************************************************** The forum is mainly for VC2005 but some issues might be common. Regarding your issue, ...Show All
.NET Development Problem copying dataset from one Database to another
Hello, I m trying following code to copy a dataset created from one database to another database. Code runs errorless but data doesn't update in another database. Where am i going wrong Please help private void Page_Load( object sender, System.EventArgs e) { this .insertDataR(); } //This function returns Dataset public DataSet getDataR() //return Data Set { string conStr="Provider=msdaora;" + "Data Source=abc;" + "User ID=sss;" + "Password=uuu"; OleDbConnection a = new OleDbConnection(conStr); a.Open(); OleDbDataAdapter da= new OleDbDataAdapter("selec ...Show All
