Answer Questions
sanjeewa DataGridView, BindingNavigator, and New Row
Hi, I have a DataGridView and a BindingNavigator bound to the same BindingSource (which is in its turn bound to a DataTable from a typed DataSet). DataGridView.AllowUserToAddRow = True, so the New Row is visible. I've noticed that clicking the BindingNavigator.AddNewItem button does not select the New Row. In stead, it creates a new record at the end of the DGV, just before the New Row. Is this default behaviour, or does it behave like ...Show All
Ngetal Destroyed because of error
Occasionally the trace window on the main screen will say my creature was destroyed because of an error. Does anoyone know a good way to figure out the error Is the error caused by an unhandled exception Yes, it is ...Show All
Mark DatagridviewBand
Hi This is a very small question I want to know wat is datagridview Band Wat is use & significance of this within Datagridview How & where we can use this. Thanks in advance Thanks for this precise & clear answer Thanks a lot DataGridViewBands is the common class for a DataGridViewColumn or DataGridViewRow. You do not create or use a DataGridViewBand directly but instead use a DataGridView ...Show All
Lucian Ghitoc generic icon in taskbar when collapsed in xp.
I have set my application icon, in each of it's several top level windows. It's not an MDI app, it just has a main form and several utility forms... each has the icon set to the same image file. When windows XP collapses my top ...Show All
Luis Simoes Dockable windows with pin and autohide feature
We need to provide a feature in NET 2.0 with Dockable windows with pin and autohide feature (Similar to the solution explorer window) I tried to accomplish this using the VS.NET 2005 Beta 1. But could not go further. Any hints Thanks Jubin Try divelement's SandDock: http://www.divil.co.uk/net/controls/sanddock you should check out the Magic Lib form Crownwood....there are links and info to the source ...Show All
ewata Colors & performance
Hello, I'm working on a colordialog for my application. I would like to display a simple, grid-like array of colors to the user. I do it kinda simple. I add a FlowLayoutPanel to my form, and at runtime, I loop through my array (currently of 215 colors) and then add a PictureBox for each color to my panel. I simply set the BackColor of the PictureBox, to make it look like a grid. I could paint it all manually, but that makes it much harder to ...Show All
invalid display name DataGridViewColumn
How I can change DataGridViewColumn type programmatically Thanks in advance! It's not going to be easy. Removing a column removes all the data for the column, so you'll have to save off all the data in the column when you insert the new column and then iterate through each row in the new column and reset the new values. -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
Santosh Thankachan winforms 2.0: how to create a template that contains an "about" form + splashScreen
hiya, Is it possible to create a project template that contains the above So instead of choosing the default "windows aplication", I could choose a windows application that includes my company "about" form + company splashScreen Many thanks, yogi yes, vs.net 2005 makes this very easy now. Simply create your base application, and then go to File->Export template. If that options not there then go to view-&g ...Show All
Gareth Welch Remove created graphics in picturebox
I am simply trying to remove graphics in a picture box that were created this way.... //begin loop //pictureBox2.Invalidate(); //removes it but then the last images created will not show after this line! Graphics gs = this .pictureBox2.CreateGraphics(); // more code to create shapes and text strings. There isn't a simple pictureBox2.clear or remove or anything else I can find. Suggestions Thanks, Zath ...Show All
johnson hk Trapping active window titles
Hi I'm building an app that extrapolates the file and App name from the active windows title. I've been looking at Windows Hooks to accomplish this but its been slow going so if anyone has any ideas/sample code that would help I'd be most grateful. Thanks up! You can use System.Diagnostic.Process and the MainWindowTitle and MainModule.FileName properties. -mark Program Manager ...Show All
Öz.Net line and column of cursor in a textbox
Hi everybody ... How can I show line and column of my cursor in a multiline textbox,in statusar bar,like Notepad. ...Show All
Ouster How to display a form from another one
Hi all, I am developping an application in VB .Net 2003 with 4 forms. I have crated a main form with some menus. One of those menus should show another form. The problem is that when i referred to the name of this form, i can't a ...Show All
Eric Feng Excel and ado.net in vb.net
Pls help !! I would like to take any excel doc and get the sheet names & column names display it in a datagrid on a fly.then make changes to it in the datagrid by giving it new column names & saving those Sheets(tables) to Access. So far im with this....... Dim schemaTable As New DataTable Dim workAdapter As New OleDbDataAdapter Dim workSet As New DataSet Dim conn As New OleDbConnection Dim ...Show All
SveinErik Create Editable DataGrid Vb.Net Windows Forms
Hello all, I am working on a software inwhich I need to show the data about the customers from database to the winform using a DataGrid. I need to modify the data( i.e. any record) and delete a particular record. How can I achieve this task with DataGrid in Windows forms. As in ASP.NET, we can add the Edit,Delete and Update buttons or Link buttons but I don't know how to do it in winforms. Thanks in advance ...Show All
Marcel525 Excel and VB.NET Windows Forms
I have a small application that is supposed to take data out of a running Excel Spreadsheet and perform some basic functions on it, copy it back to a new worksheet, and save it. My question is, how do I initialize my xlApp object&nbs ...Show All
