Answer Questions
Daniel Kornev Microsoft RichTextBox Control 6.0 and .NET
Hi! The following trouble takes place. I've created Interop for Microsoft RichTextBox Control 6.0 and put it on the WinForm as axRichTextBox1 type of AxRichTextLib.AxRichTextBox. One has the code in C#: string file_name = ...//name of file string file_type =&nb ...Show All
Ken Schlobohm Dynamic grid of buttons on form?
Hello, I'm developing simple "board" game using Windows Forms, C# and .NET 2.0 . Player will have to set certain patterns on the board faster than AI(or live opponent). First I wanted to work with sth really simple so I made 3x3 board made of buttons(9 buttons total). It woks OK but I want more! My question is how to make 10x10 grid of buttons without coding each of them manuly Maybe other control is better for that I would pr ...Show All
jd_scribe Control Regioning
I am building a button control which has an odd shape and have used GraphicsPath() to set a region for it. This works perfectly and I though I had it all sused. My button uses bitmaps to paint a left end, right end and a single&n ...Show All
robert harris How to add a custom property grid to a user control
Is it possible to accept a set of custom properties for a user control How can such a customised property grid be configured At design time. Maybe you must to read the MSDN articles linked at the below links: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dndotnet/html/custdsgnrdotnet.asp http://msdn.microsoft.com/library/default.asp url=/library/en-us/dndo ...Show All
PatrickGemmell radiogroup databound control
just like this one in delhpi values means information for filed to fill like 'a','b','c' and display members like auto ,brick ,car it's very similiar control in webforms but not in the winforms. why not use a comboBox ...Show All
nailers67 How to have an Object share by multiple forms ?
Hi I have a Winform app with 5 forms. I would like to have a global object and the forms to access and change some attribute of this object I don't know where to declare it. Any help is welcome. John I agree but where do&nbs ...Show All
SirAndre007 Using Windows Control in IE
Hi I use Visual Studio.Net 2003 to design a windows control, ctlBookList on Windows Server 2003. In this control, I use a DataGrid, dgBookList. In the control's construtor, I use SqlDataAdapter to read data from a database, LibraryDemo: public ctlBookList() ...Show All
marten_range Problem with combobox
Hi I have a datagridview that is databound to a table via a bindingsource and a DataGridViewComboBox column that is bound to a second table (both in the same dataset). I am dynamically adding the column to the grid. Dim viewcol As New DataGridViewComboBoxColumnviewcol.DataSource = _dsEquivalents.Tables(1) viewcol.DataPropertyName = "ViewName" viewcol.ValueMember = "ViewTable" viewcol.DisplayMember = "ViewTable" ...Show All
elsae I Don't Want To Hardcode Any Colors
I am developing an application and I want to use the colors that the user has customized for his Desktop. So I am using Color.FromKnownColor(KnownColor.xxx) to set the colors of the various parts of my form. However, I notice that the enumerations of KnowColor do not match the items in Advanced Appearance dialog box of Windows Display properties. For example, in KnowColor I see InactiveBorder, InactiveCaption, InactiveCaptionTex ...Show All
Yogesh Sharma How do I get the current pixel's color from anywhere on the user's screen? .. By VB.NET
Hi.. Please.. How do I get the current pixel's color from anywhere on the user's screen By VB.NET # # # # # # # # # # # # # # # # # # # Sorry I can't speech English Good !! # # # # # # # # # # # # # # # # # # # lelian@lelian.com You can make a screenshot (see http://www.developerfusion.co.uk/show/4630/ for code). Once you have an Image, create a new Bitmap from ...Show All
sailorscott Compile Error
I get the following error when I compile my winform project: Error 2 Specified minimum required version is greater than the current publish version. Please specify a version less than or equal to the current publish version. I've done a web search on this error and can't find anything. Any suggestions Hi, may you mores specific about your problem Does it contain dll ...Show All
JoseMiguel Passing arguments to DOTNET's href'ed Executables
I had developed a tool which exposes the executable to the web which works wonderfully fine. Now the problem is in the session Integration. I will have to use a way to pass a value(like sessionId or UserId) to the executable. How do i do& ...Show All
Dukeboss Button moves in Child Forms
Why is it that my inherited form's buttons will move to the left even though the button is marked as protected did you do any anchoring ...Show All
Chrisww2 ListBox
Can someone tell me how to check for duplicate items in my ListBox You can check to see if an object exists in your listbox already by doing: int index = listbox.Items.IndexOf ( itemToCheckFor ) if ( -1 == index ) Item does not exist Ahh you are checking to see if the listbox already contains duplicates... you can do something along the lines of this: bool found = false; for ( int i = 0; i < l ...Show All
aili DataGrid throws unhandled exception(Index was outside the bounds of the array.)
DataGrid thows unhandled exception : Index was outside the bounds of the array. Steps to repeat: 1) Set datagrid's readonly = true 2) Fill your data grid with two or more rows 3) Put ...Show All
