Answer Questions
Hensen Exiting from a UserControl Prematurely
I have a UserControl that contains several textboxes. Under certain conditions I need to exit the Control (ie move to the next control on the parent form after the User Control) from a text box that is not the last one in tab order on the control. In the Validation Event of the text box I have tried changing focus to the last textbox in the control and executing Me.ProcessTabKey(True). The focus remains with the last text box. I have tried Me.ProcessDialogKey(Keys.Tab), but that seems to go off into loop. I could throw an event, but that would require that the parent form always process it. What is the secret of exiting the UserControl programatically either forward or backward Any help would be appreciated. ...Show All
Ceres629 Column Sort
Hi, i'm new with datagrid and i'm wondering how can i make the alphabetical sort of the column to work, does .Net already hasve that functionality I don't know if this is important but the datagrid was filled with data from an array. tkns If you are using the .net Framework 2.0 I would extend the BindingList to support sorting. C# example . VB 2005 example . Put you data in the bindinglist and bind to that. Well, it is set to true but it doesn't work, i guess it's because the dataGrid.DataSource is an ArrayList :\ I'm not clear what do you mean by "reorder", here is a sample of sorting in datagridview, hope it is helpful. private void sor ...Show All
search and deploy Changes in database and update datagridview problem
hi, i have a WinForm datagridview (dgvUser) that is populated with data from a SQLEXPRESS db. On the same form I collect user input using textboxes and after user clicked on OK button, those information will be saved to the database. At this point, everything is perfect. At the same time, I want the dgvUser to update itself with the new info. I have read others' posts regarding this issue and tried some suggestions from posters. From what i see, the datagridview was refreshed but the data wasn't updated. Anyone with solutions or suggestion please help. Million thanks. Regards, Sha private void dgvUserUpdate() { this.tblUserBindingSource.EndEdit(); dgvUser.DataSource = dmsDataSet1.tblU ...Show All
DanoruX ClickOnce - prerequisites update/install problem
Hello We are doing a project where we are using clickonce and it works really well and has given us few problem. There is one problem tho that's very strange and we havent been able to find a solution for yet. as part of our clickonce we added one extra "prerequisites"; "Microsoft visual studio 2005 report viewer" but the problem is the same with all the "prerequisites" beside form the default .net one. when clients try too install the application they just get an empty error box.. there is no text at all.. just the red error symble and a ok button. If we remove all but the default "prerequisites" and redeploy it works fine.. we add it again and redeploy the same error again. We tryed to place the updates ...Show All
AdrianB Complex user control not responding to click events
Hi all, I'm wondering whether any of you people can help me out with this problem that I have with a user control that I have been trying to get working. The first part of the user control is a flat circular button ( called SampleButton) that toggles colour when clicked. This control has an OnClick method as follows protected override void OnClick(EventArgs e) { base.OnClick(e); (code to change colour and call invalidate....) } Then, from this I am creating a matrix of these buttons in another user control that inherits from SampleButton (which in turn inherits from UserControl), e.g. a 3 x 3 matrix, like so: O O O O O O O O O I do this using a couple of for loops (the number of Sampl ...Show All
MarissaM DataGridView Datasource property
ArrayList Ips=c1.getIPs(); dataGridView1.DataSource = Ips; The getIps returns an arraylist with count 1 the content of arraylist 0th element is 'Pencil'. but in grid its displaying the length of string i.e 6 rather than displaying Pencil.What should i do to display the content of arraylist rather than the length. regards To solve the issue what i have done is i picked up data from arraylist and stored it into the datatable object. c1.registerServer( this .getHostName()); ArrayList Ips=c1.getIPs(); DataTable dt = new DataTable (); dt.Columns.Add( "UserID" ); DataRow dr; int i = 0; while (i < Ips.Count) { dr = dt.NewRow(); dr[ "UserID" ] = ...Show All
simon_ ClickOnce Application cannot be Started, help!!
Hello everyone, I'm trying to Deploy the application and im getting this error now: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : file://pc1/Shared/Program A/MyProgram.application ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of \\pc1\Shared\Program A\MyProgram.application resulted in exception. Following failure messages were detected: + Access is denied. (Exception from HRESULT: 0x80070005 (E ...Show All
MrBogomips Creating a Table on a Control
Hi, I'm trying to create a table for my control that looks like this: http://i115.photobucket.com/albums/n311/ro88o/sc.gif a DataGridView would probably work, of course customizing the colors of the cells etc.. which I believe can be done http://msdn2.microsoft.com/en-us/library/z2akwyy7.aspx http://msdn2.microsoft.com/en-us/library/k4sab6f9.aspx I'm not an expert so hope the links help you out :-) Hi, Sorry for my first post not being to informative - I clicked post before I meant to and then couldn't edit it for some reason The data is read-only, I've managed to get what I wanted by using a datagridview and disabling add, edit and delete. Took me a while to get a hang of usi ...Show All
zhihao Disable Datagridview editing
when the grid is shown i disable the binding navigators add & delete buttons when selecting a row from the grid the binding navigators buttons; the add & delete buttons are enabled I disabled all the editing properties of the datagridview Why is the add & delete button of the binding navigator reenabled when clicking on a row in the datagridview Hi, Rocky82 The BindingNavigator always resets the state as a result of a ListChanged event from the BindingSource. What you are seeing is the BindingNavigator is trying to set the Add or Delete button state based on the current state of the list - and this is happening after you've set the state, so if the bindingsource is allow to add o ...Show All
Nicolas Barry SuspendLayout ignored for mdi forms?
Hi, I have a form with three dozen controls in a layout. When I ShowDialog this form it's almost instantaneous, but if I add it as a tabbed MDI form, it takes three seconds to draw the controls. We can see a wave of textboxes appear from top to bottom then another wave of labels from bottom to top. Has anyone seen this behavior before Is there any fix Thanks, Charles "Tabbed MDI form", not sure what that is. If you are using a TabControl, are you calling the TabControl's SuspendLayout() method I'm using this control: http://www.codeproject.com/vb/net/MDITabControl.asp and it works great in all cases except one where the layout is very slow. I've looked into the source and the layou ...Show All
sdochert HyperLink in DataGrid
Hi I'm using a GridView in VB.Net 2005. One of the column of the GridView is Hyperlink Column. When i click the hyperlink i want some message to be displayed in tne redirected page. The message displays in each link should be different. How can i achieve this Where should i write my coding Thanks Is the ID column a part of the datagridview. If so, you can get the data in the id column like this Me.DataGridView1.Rows(rowIndex).Cells(idColIndex).Value Hi Thanks for ur reply. The answer that u posted is not relavant to my query. I've made the first column of my gridView as Hyperlink Column. The problem is that whenever i click the hyperlink it redirects to a page with the ...Show All
RB_Banc ClickOnce - CrystalDecisions.CrystalReports.Engine.ReportDocument
Hi, I developed a large scale win form application that uses Crystal Reports (vs2003 cr version ) in .NET 1.1 and recently converted it to .NET 2.0. The problem is when ever a user opens a form that uses crystal reports I get the follow exception: ************** Exception Text ************** System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.Runtime.InteropServices.COMException (0x800736B1): Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50} failed due to the following error: 800736b1. at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() --- End of inner exception stack trace --- ...Show All
Jacob Pettersson ClickOnce Error Message
Hi, I'm getting the following error message & detailed report: 'Cannot download the application. The application is missing required files. Contact application venfor for assistance.' PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : file://(PATH)/SerialSNMPWinApp.application Deployment Provider url : file://(PATH)/SerialSNMPWinApp/bin/Release/SerialSNMPWinApp.application ERROR SUMMARY Below is a summary of the errors, detai ...Show All
tchen777 Question regarding Web Setup Project
I'm trying to create a web setup project and by default the files are being copied to the inetpub\wwwroot folder. My question is - is there a way the user can specify the location during installation and can I provide a "Folder Dialog" to do the same. Can this be achieved with out any custom coding using Installer class. I appreciate if someone can provide me with some info. Thank you Ajay You'd need to do this with Orca, manually editing the MSI file (install from Orca.msi in the Windows SDK). Open the MSI file with Orca, find the Control table in the left side table list. Then find the WebFolderForm column with TARGETVDIR in the Property column aand change the Attributes value in that row ...Show All
Impact247 datagrid hide row
I have a datagrid view in a windows form the datagrid is filled with data from a access datatable. eatch row reprecents a order in the program. one of the colums is called (ready) end contains a check box. now i like to hide each order where the check box is true. so that only the Rows(order's ) that are not ready yet are visible and the rows that are ready been hide so that the datagrid only contain open orders how can i do that In my case i have used the folowing code Dim theDataView As New EK1afkset theDataView.RowFilter = "Afgehandeld=True" Me .DataGridView1.DataSource = theDataView ===================================== EK1afkset is the name of t ...Show All
