Answer Questions
Dariusdm Numeric Data binded fields in maskedtextbox
A Data field having data type as numeric(6,3) is binded with Masked textbox with following mask property :- 00.000 Following code is given in form load :- Me .MyMaskedTextBox.DataBindings( "Text" ).FormatString = "00.000" a value of 12.889 is displayed correctly as 12.889 whereas a value of 4.55 is displayed as 04.550, i want to remove both zero's from the display for this type of value. can anybody help... ...Show All
AeX IssueVision Issue
The setup wont 'see' my local sql installation and gives me the the only option 2 cacel the setup :( Icheced and sql acceps mixed mode Remco Did you know there is a forum on this site dedication to IssueVision You migh ...Show All
ntalb Can't find CollectionEditor
I'm new 2 .Net so B patient with me :) I'm getting the error !! type 'System.ComponentModel.Design.CollectionEditor' not defined With intellisense i do not see the class as wel Any clous Regards Remco Add a reference to System.Design.dll ...Show All
beachbum714 DateTimePicker column
Does anyone know if Microsoft will be including a DateTimePicker column in the DataGridView (for underlying date values) The current article says "TextBox, Image, CheckBox, ComboBox, Link, and Button column and cell types" will be included. I'm hoping ...Show All
Syed ghani Excel output formatting - GridLines pretty please ?
If have existing Excel output code which works fine with one(several) exceptions. Here's a sample: private void imb_XDump_Click(object sender, System.Web.UI.ImageClickEventArgs e) { Response.ClearHeaders(); Response.ContentType="application/vnd.ms-excel"; NavPanel.Visible=false; /* hide root navig ...Show All
JamWen Nodes and trees
Ok, need a little input here. I have been searching around for something so simple, it's driving me crazy. I need to create some nodes and leaves (NOT a treeview). These nodes will contain strings. The info in the nodes will come from a text file - or xml, haven't decided yet. Reading the text file or xml is not a problem. Writing to the nodes then reading the info inside is. Anyone have a link with a good C# sample An ...Show All
Hardik Mehta Changing Windows Forms based on Display Resolution.
I would want to change the Windows Forms.NET to adjust to the display Settings. To do this I would want to get what the display Settings are currently in place. Would any know the API to get the Display Settings You shouldn't&n ...Show All
Scott Quinney Question on BindingList, BindingSource
I have been doing a lot of reading the last two days on databinding...specifically BindingList and Binding source and custom business objects. I think I have an understanding of how this works from a "display" perspective, meaning i see how binding to DataGridView for example works. My question is this Once I make all my edits (adds, updates, deletes) to the DataGridView on my form, how do i determine from the associated B ...Show All
PankajGautam inherited controls
I would like to have, say, textboxes of 2 different sorts: A and B. I think inherited control (inherited textbox) is the ideal concept. The goal is to have event handlers ONLY in the Parent Form (from where inherited forms will be created,  ...Show All
huckleberry How to create an object property for a custom UserControl?
Hi all.. I created a UserControl where I implemented a property that if of a class type. I want that in VS.NET editor this property to be shown as a tree, something similar to Font property present in most visual controls. Do I have to include some attribute or to make something special with the property Thanks Jaime Hello, A. Create a custom TypeConverter for your class <System.Security.Permissions.Permissio ...Show All
Samya Can you trap a DataGrid Delete row event?
Does anyone know how to detect a DataGrid delete row request I have a DataSet bound to a DataGrid and I want to validate the action before the row is deleted. If I do this, how do I stop the DataGrid from removing the row Can you do the validation in the Datatable's RowDeleting event That would be an easier solution. If not, maybe this will help: http://www.syncfusion.com/FAQ/WindowsForms ...Show All
Pool Man IE.net?
The major thing that I would like to see are better HTML controls. AFAIK, since HTML is everywhere in the OS now, why wasn't it a larger part of the .NET framework COM Interop works, but it has such an ad hoc feel to it,& ...Show All
learning_in_texas Displaying non-characters in text
For an app I'm building, I have a few icons that need to be placed in blocks of text. As far as I know, they aren't in any standard character sets. How should I go about doing this It would be something like: "Find ...Show All
Sven Sauter Setting the Initial Directory on Dialog Boxes
I use two dialogue boxes in my program, one to open and load pictures and the other to save html documents to a file. I want the first one to initially point to "My Pictures" and the other to point to "My Documents". Windows seems to overide the initial directory and rather point at the last directory the user looked at (through a dialogue box). Is there anyway to override this Code shown Below; Private Sub btnBrowse_Cli ...Show All
Richard Berg MSFT How can I add control in a richTextBox in C#?
Hi I'm trying add a UserControl to the richTextBox. I noticed richTextBox.Controls.Add(userControl) would do it, but text will disappear in the richTextBox. How can I solve this That is not true.... you can add Controls to the RichTextBox, e.g. Button b = new Button (); b.Text = "123" ; b.Size = new Size (30, 30); b.Location = new Point (50, 50); b.Click += delegate ( object sender, Event ...Show All
