Answer Questions
ArtySaravana TreeView XP style
I have managed to get XP Styles in my app (its taken a long time to figure it out) but now the treeview doesn't seem to look right. It starts off with a Win98 style scroll bar and once I resize it the scroll bar turns ...Show All
Kylin Ming Key events
Can anybody give me a detailed difference and sample code in C# for events like KeyDown, KeyUp, KeyPress Thanks To you all. This question is better suited for the Windows Forms forum. Please reserve the C# forum for questions specifically related to C# itself. I'm moving your question to the Windows Forms forum. Michael Taylor - 6/7/06 it's easy enough to konw if the f12 was pressed. pri ...Show All
kskwon Scrollbar on multiline textbox
Hey guys, I have two questions regarding the vertical srollbar of a multiline textbox. 1. I have an "Ok" button that is initially disabled. I want it to be enabled when the user scrolls the vertical scrollbar of a textbox all the way down (indicating that the user at least pretended to read all of the textbox's text). How can I monitor the scrollbar and know when it has reached the end 2. My multiline textbox has VerticalScrollB ...Show All
ThomasMG Autocompletion in the command window problem
Autocompletion in the command window is not working for me. In Tools-Options-Environment-General I have Enable Command Window autocompletion checked. Any ideas Thanks ...There's autocompletion in the command window just kidding. Normally, it wo ...Show All
sdsachs How to read text from image
Hi ! How is it possible to read text from the image like i have a image some text is written over that i want to extract that text from it how do i do that Thanks That isn't readily possibl ...Show All
okipatrick Assigning an object to a DataGridView column
Hi all... The situation is as follows. I have a Windows Form with a DataGridView on it. That grid is associated with an ObjectDataSource that returns a List<T> collection. This data binding works. For example, T class has a property named Edad, so when I associated a DataGridView column to Edad, that field is displayed in the Grid. All that is good, but, the fact is that one of the properties of T type is an object with 2 fields, Cod ...Show All
Boggles2626 Change RichTextBox Font / SelectionFont
Hi EveryBody when i execute the code: Dim rtftext As New RichTextBox rtftext.Font = New Font("Courier New", 11) Debug.WriteLine(rtftext.Font.Name & " " & rtftext.Font.Size) Debug.WriteLine(rtftext.SelectionFont.Name & " " & rtftext.SelectionFont.Size) The result is: Courier New 1 ...Show All
smv TextBox control without caret
Hi, I have a following requirement. We are developing Windows application in VB.Net. There is a requirement to make the textbox readonly, so that the user cannot modify the text, at the same time the textbox should in disable color. We went with two solution but both of them failed Sol 1 : We disabled the textbox and set the Background color to be highlight. This was working fine but the forecolor was in grey which our clien ...Show All
adimasi Deriving from abstract UserControls
Can you use abstract UserControls I created a UserControl called Dad. Marked it as abstract. I created a class Son and changed it to: public class Son : Dad { public Son() : base() } If I 'View Designer' on Son it fails with a message saying ... The Designer must create an instance of type 'Windows.Application1.Dad' but it cannot as the type is declared as abstract. Is this just a weakness in the IDE ...Show All
nebiecoder DataGrid headers
How can I get the TEXT of the DataGrid HEADERS If you mean the data grid column headers, then the DataGridColumnStyle::HeaderText property contains the column headers. you would need to create a data grid table style, add data grid column ...Show All
bamacoder Checkbox inside of a DataGridViewRowHeaderCell
Hello everyone! I am wondering, is it possible to put a checkbox inside of a DataGridViewRowHeaderCell The user would like to be able to select rows by clicking on a checkbox inside of a row header. Note, I am aware that I could add a checkbox column, but they want it in the row header instead. I appreciate your help! Justin The DataGridView does not have any support for controls (real or fake ...Show All
Arty Arochita DataTable support for complex columns?
Hello, Does the DataTable support complex column types, such as I want to add a column that is of a custom class type. Is that possible Thanks. If the type you want to store is serializable, you can use a BinaryFormatter to convert it to and from a binary format than can be stored in a binary (byte[]) column. You will have to handle that conversion yourself, or create a typed dataset that does it for you ...Show All
T0MM0 strange combobox add errors
Simple code, make a class that overloads ToString, so that will be the text displayed in the combobox items, add instances of that class to Combobox.Items. but if ToString returns null you get a strange error. when running normally, you get: "Too many items in the combo box" when running with the debugger, you get: OutOfMemoryException. This make it very tricky to debug :S Tho if you go combobox1.Items.Add( null ); you get the correct ...Show All
Mohamed Shifaz Grid column-styles widths not applied (see style code)
I have a not-strongly-typed VB. NET 2003 dataset and one table displayed in a datagrid using a dataview. The display is entirely proper prior to applying a style. Applying a style (code below) results in very small column widths, with everything scrunched to the left. Expanding the columns using the cursor shows that all other style directives have been applied; just column widths have not been applied. Here’s the style code: Private ...Show All
lumbus When to Use WinForms Over WebForms
Hi: Gurus, I have to make a major decision to port the VB6/SQL server (typical client-server) application on .NET. The application should be accessible over the net to outside clients. Since the old application had a very rich GUI I am bit con ...Show All
