Answer Questions
somegai Winforms with Access DataBase ( it doesn't SAVE , modify records )
Hello. I'm developing an application using vb. NET and an Access DataBase ( the application is not big ). I ADD a DataSource, ( Menu/Data/Add new datasource) i select an Access Database, and i select the table i need ( dataset ).. everything seems to be fine. I go to the dataSource Windows to see my DataSets with its table, i drag and drop it into a blank winform, it creates a datagrid with its navigator, every seems to be cool. I run the app, and i start adding data into the datagridview.. i press the Save button to update the change... i close the windows and i open it, and i SEE the changes. BUT when i close the app, and i open it, i see that NOTHING was SAVED. i was testing and the problem only happens if i use an Access ...Show All
Seiggy How to create custom Datagridview ListBox (Multi Row) control
Hi all, I would like to create the datagridview listbox control. My requirement is that I want multi rows in single cell. So I think I should use Listbox control for that reason. I don't need any editing experiences for that control. I just need to bind it to datasource and display. That's all I want. So I want to know the simplest way. I want to show all the data at once. It means, if I have three rows in one listbox control, for example, "aaa","bbb","ccc". I want to show all. I mean I want to set the Height of that control equal to height of number of rows. I've already seen the two examples, Up Down numeric and radio button control. But they are more complicated than I need and different, I think, to my control. ...Show All
nyc9 3rd party dll not in global assembly cache
Hello, I have created an application that has 3rd party controls. I published it to a file system for local network install. When I click 'install' on the default page, I get an error "xxx.dll not found in global assembly cache". What causes this and how can I publish the app so users can install it successfully I removed the reference to the ActiveX DLL, as the program did not need it, and just used the .NET component adodb.dll. The dll is registered on the target machine, which is the same OS (XP Pro). I get the following error message: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************* ...Show All
Amir_S DataSet row changed
I have a dataGridView component connected to a dataset. I can load the dataset and it populates the dataGridView fine. My problem is that I want to know as soon as a user has updated a row (made changes and moved focus from the row) or inserted a row (started a new row, inserted data in one or more columns, and moved focus from the row). I have tried events like the RowLeave event of the dataGridView with checking the HasChanges method of the dataset, but the combination has strange (to me) timing issues with determining when the change was really made. What is the correct event to use and method to call to know when the user has lost row focus on a dataViewGrid and the method that will tell me ASAP on loss of focus if data in the dataset ...Show All
tirengarfio Thread Pools
I'm using thread pools to update multiple windows forms. The question i have is that when i close a form the thread doesn't get disposed and eventually the app locks-up when i open and close to many forms and won't display any data unless the app is restarted. What happens is the threads are getting stuck trying to update the closed form and when it hits that section of code its stays there trying to find the form but can't. It won't get deleted or die it just stays there until all the available threads are used then i get no more updates. Is there a way to delete the threads as the forms are closed or are they supposed to stay and i just need to add more threads to support what i need to get done What y ...Show All
DeeZa SerializationException "Cannot get the member 'Child_PropertyChanged'." when de-serializing generic collection
I have created a custom generic collection class with a signature like so: [ Serializable ] public class blGenericCollection <T> : BindingList <T>, ITypedList , IListSource , IXmlSerializable where T : blObjectBase , new () {blah blah blah} The child items that derive from my blObjectBase publicly implement INotifyPropertyChanged , as does blObjectBase itself. I'm getting SerializationException errrors when de-serializing the collection class (stack trace below) using BinaryFormatter . However, the child item classes serialize and de-serialize just fine, as does my blGenericCollection class when it is empty. But when blGenericCollection contains items - I blow up. (Side note: Xml serialization fo ...Show All
Ray Dyce Create a program that doesn't use .NET
Hello, I am wondering if there is a way to create an application in Visual Studio Express (any and every language) that doesn't use the .NET framework. I need to write programs for computers running Windows 98SE with very little disk space, and not much processor power. Thanks. im afraid not. you must install the .NET Framework to run your .NET developed application. ...Show All
sydes141 Key values in a combo box
Using vs 2005 with access 2003 Table1=CustCode,CustProv. Table2=ProvCode,ProvDesc. CustProv contains the ProvCode. Using a dataset , Binding Navigator and table1bindingsource and table2bindingsource. I want to show the ProvDesc(s) in a combobox, and when selected I want to update the CustProv with the respective ProvCode. Since I am using the dataset and a navigator there doesn't seem to be any code where I can change them. Can anyone show me how to do this Perfect - thanks very much - I did not know about ValueMember. Hi Can-Ann Look combobox control properties: DataSource , DisplayMember and ValueMember . I thing that those f ...Show All
QWERTYtech insertion event handler
Please I would like to find out which event handler to use in updating a TableAdapter object upon inserting values in the row for new records The code below does not work... private void dataGridViewDisease_RowLeave( object sender, DataGridViewCellEventArgs e) { this .vHRNDataSet.DISEASES.Rows.Add( this .dataGridViewDisease. Rows[e.RowIndex]); this .dISEASESTableAdapter.Update( this .vHRNDataSet.DISEASES); } still can't get it to work. I want to know which of the DataGridView event handlers would be appropriate Try adding datagridview's EndEdit () method before you do insertion and update. And have a read at this article ...Show All
radalin Is it possible to create a desktop icon using ClickOnce
I found only one article about creating desktop icons, but that article (MSDN) ruled out creating desktop icons. Is this possible with ClickOnce or not I know windows installer will, but we have a Smart Client and want to provide a way to create a shortcut to the app on the desktop so people could get to it quickly. Any suggestions Thanks To confirm - it is by-design behavior that ClickOnce install does not create shortcuts directly on the desktop. One of the goals of ClickOnce was to make the user experience of installing and running rich client code as "web-like" as possible, with apps and updates coming in and off the system easily. Towards this end two styles of ap ...Show All
OnCallBI-DBA opening a windows form from a .net windows service
I have created a windows service in .net and a form to control and monitor the service which I would like to open onStart event of the service. I have tried allowing the service access to the desktop and calling the form but have had issues with this. I think the best way to do this would be to run the form .exe. Does anyone know the code (C#) to do this I am finding it harder than expected to find an example on the Web. Or does anyone know of any better ways to accomplish this Thank you all for your replies. MadAboutC#, that is exactly what I was after, you've confirmed that they are the two options and I have successfully implemented the .exe run code. Much appreciated. ...Show All
Davids Learning Reentrant error in a DataGrdiView
I am using a DataGridView to organize information that a user provides. It is not bound to any data base. All I want to do is collect the data for further processing. The data, which is formatted using FormatCurrency, consists of amounts entered into rows corresponding to preloaded categories identified in a second column,. As the user moves around the DGV with the arrow buttons everything is fine. If a new amount is entered into a cell and the mouse is used to move away, this error surfaces: Operation not Valid because it results in an reentrant call to the SetCurrentAddressCore function Using the arrow keys to move doesn’t produce the error To work around the problem I have tried ideas fr ...Show All
Jes&#250;s L&#243;pez clear all values of databound components
in my C#.net 2005 winform app, i have a form that contains many databound controls (bound with same bindingsource). I want to be able to click on a button and clear all this fields. i dont want to do things like "textBox1.text.clear()" for all the contols because there are too many of them. is there a method i can call to clear all these fields You may try to use this.Controls[index] to enumerate all controls. ...Show All
AlexBB Key stoke synthesis.
I am trying to make a keystroke macro recorder for games. I have allready implemented the keystoke recording function (using a Low level kb hook), however i am now at a loss to determin how to playback(send) the recorded keystrokes. I need to able to simulate a key press for a specific number of milleseconds. I have tried using postmessage api to send a WM_KEYDOWN message to a window, this works but it only sends one keystroke. I would have thought that windows would repeat the keystroke until WM_KEYUP was called, but alas this is not the way it seems to work. Is there a way to tell the frequency that windows repeats the WM_KEYDOWN message when a key is physically pressed down Even if there is, repeatedly sending keystrokes using postmess ...Show All
JinMengcheng missing taskbar button
Hi, I am writing an MDI application in C#. The problem I am facing is that whenever I launch the application, from inside visual studio or therwise, the main window opens but taskbar button is not generated for the same. If I do a alt tab and switch to some other application and then come back to my application again by doing a alt tab, the taskbar button appears and everything goes fine. Could anyone please help me by telling me what can be the possible reason for not getting a takbar button initially, on launching the application. Thanks in advance. With regards, Set the forms ShowInTaskbar property to true. This can be done through code, or the designer. VB: me.ShowInTaskbar = true C#: this.ShowInTaskbar = true; C ...Show All
