Answer Questions
Kurt Matthies focusing on a datagrid column
When I programmatically focus in on a datagrid column, it automatically selects the entire text in the column. How do I get the cursor to go to the end of the text in the datagrid column, and NOT select the entire text Thanks for any ...Show All
RKumarB How to stop inserting new row in a DataGrid
Hi everybody, I am using a datagrid to show records from a table, I do not want the datagrid to automatically add a new row at the end [whenever the user clicks on the next empty row after the last row of the datagrid], I can ach ...Show All
Demann WebBrowser Empty Document
I'm using the WebBrowser Windows Forms control. I perform a "Navigate()" function call to a locally hosted web page that I am intending to save. The webbrowser control displays the page, but the document element of the webbrowser control is null. I need the document element to be filled with the appropriate data so that I can perform a "save as" command against it to save off the HTML and images to preserve the page for later v ...Show All
jnousis how can i close the main form without closing the application ?
Hi guys, I have application with 2 forms. in the begining the user select one of the forms and the other one is not needed any more. one of the form is the "start up", thus if the other form is choosen i cant close it (or r i can ) becouse closing the main form = close the application . how can i close the main form ( i know that i can hide it or somthing like that . but i want to close it ) Thnaks . Hi, Whe ...Show All
Hamscher howto set "display" text of dg Column headers @ design time?
hi, I have a datagrid that pulls data from the database. the fields in the db are as follows: 1) companyId 2) companyName etc This casues the headers to appear as: 1) companyId 2) companyName etc ...not very neat :-( I want the column headers in the datagrid to&nb ...Show All
SteveJF To set color in scroll bar
Hi, Currently I am working on Windows Application .In this I want to set the color and Image in the scrollbar in the Windows Form. I am not getting any property or method to set color or image.Please tell me how I can do that......Plz take care that it is a Windows Application. Thanks, Hitesh Mangakl There's no way to change the appearance of the scrollbar unfortunately. This thread discusses a rath ...Show All
amzzz Problem with treeView - Object not set an instance to an object...
I always have a problem when working with treeview. I have a treeview that looks like this: Root name - First node - First's node child1 - First's node child2 - Second node - Second's node child1 - Third node When I click on treeview this is code that is in treeView1_AfterSelect event private void treeView1_AfterSelect( object sender, System.Windows.Forms.TreeViewEventArgs e) { TreeNode tn = treeView1.SelectedNode; if ...Show All
Mike2334 OnClosing
I have a windows application and on the main form i catch the OnClosing event. If it's from a normal closing i catch it and cancel it but if it's from the main menu File->Exit or context menu Exit i put a flag and on OnClosing  ...Show All
hmmmm How I can make a Code for Delete this row when it loaded? (Select and delete)
Hi I need help about this I have a data grid view like this: Index Code Name Price + Price _ 1 1 BMW X5 1000000 $ 2 1 BMW X3 500000 $ 3 1 BMW Z3 250000 $ 4 1 SUM 1750000 $ Row 4 add by code automatically I can do it. There is no problem. But when my user want to edit the data (some row OR price) I have a Problem. How I can make ...Show All
M. R. Miller programatically zip folder
Hi, I have a folder that has a xml files in it. I want to zip that folder programmatically in C#. Any ideas Thanks, There are several zip libraries out there, for example <a href="http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx"> ...Show All
Jamie Carper multiselect listbox producing duplicate index error
multiselect listbox producing duplicate index error I did search before asking this question. I filled an AuthorsListbox with a list of Authors. I set multiple selection to simple, as an article can have more than one author. The article has already been saved and has a unique ID. Each author has a unique ID. When I select more than one author I get a duplicate index error. If I change mutlipleselection to one, and save the authors one at a ...Show All
David Everett Help me: Get System DateTime Format (user defined in control panel)!
I want to get system datetime format dd/mm/yyyy or mm/dd/yyyy etc... that user defined in control panel because when I used "INSERT ..." in SQL Server with column type datetime, if wrong format that take error :-( Please to help me! Thanks alot! CultureInfo .CurrentUICulture.DateTimeFormat.FullDateTimePattern ...Show All
Leon Huang Prevent insert in a datagrid
My first question: Is it possible to hide the '*' insert row in a datagrid My second question: What's the best way to display an uneditable datagrid of a list of data I won't need to edit it, but I would need to click o ...Show All
JoLee Make really useful DataGrid at last!!!
I seen DataGrid in NET Frameworks 1.0, 1.1 and 2.0. They all has the same problems which still not resolved: 1. they are slow. actually they are VERY SLOW at rendering! Try put about 10 columns and 1000 rows and scroll or select a range... ...Show All
crash5232 question about paint.
I draw some image on a panel by clicking a button , and it works good. But when I minimize the form and restore it, the image is gone... Then I worte a sub handle panel's paintevent and now it works. My question is , is it ...Show All
