Answer Questions
Pinakee How do I emulate a PostOpen event in a Windows Forms
I would like do to some processing to automatically fill a treeview after the form displays in a MDI application. I tried to use a timer event but had difficulties when multiple instances of the form were opened. What is the ...Show All
Alan Creaser Simple Data Binding to a CheckBox Control
I must be missing something. I am writing an application in VB.NET and have been using the following code to bind textbox controls on my form to columns in my dataset (gdsBookList): txtBookName.DataBindings.Add("Text", gdsBookList.Tables(0), "Book_Name") I h ...Show All
senwang.microsoft Controls Resizing
I have 3 controls on a Panel.The panel is docked to Fill. The client has demanded that the controls on either side (i.e a listview and treeview) be resized with the form but the center control which happens to be a Panel with buttons(Add/Delete) be nonresizabale.I have managed to achieve this programmatically, but I'm running into the following problems, 1 As I'm unable to use the Docking and anchoring properties(I have tried to my wits end b ...Show All
B123456H Drop-Down Properties
I know that by using enumerations I can create a simple list of things that will drop down from a box in a custom property, in a propertygrid. But what does one do if they want a string to drop down in the box the enum way works all well and good untill you need a space or a unique character. So how do we get around this Replace the _ for a space. As far as unique characters, I assume you mean things like & Ca ...Show All
kaizen .Net 2.0 WebBrowser Control DesignMode = "On"
Has anyone been able to get WebBrowser1.DesignMode = "On" to work with the .net 2.0 WebBrowser Control Usally this is a wrapper around the mshtml control. Like the following, but I couldn't find a solution with the .Net 2.0 Webbrowser control. doc = WebBrowser1.Document doc.DesignMode = "On" Cheers, Patrick It's been a few days without any replies, are there other people looking for this solutions as well If so lets start talkin ...Show All
Satish Rao Software Version numbers
Does anyone know the standard uses for the software versioning pattern of 1.2.0.420 - I've been using the first for major, second for minor, not using the zero, and using the last to indicate the build. Anyone know how these are supposed to be ...Show All
Shawn Murphy RotateFlip generates GDI error
I have a bitmap image. When I attempt to rotate the bitmap by calling the RotateFlip method, I'm getting this exception: A generic error occurred in GDI+ The actual statement is: mBitmap.RotateFlip(RotateFlipType.Rotate270FlipNone) The line following the RotateFlip method call assigns the bitmap to a picturebox's Image property. If I comment out the RotateFlip statement, the bitmap is displayed property. So, the bitmap is initi ...Show All
DC3Dreamer Visual Inheritance and Abstract Classes
Does anyone have a better way of doing this The designer fails if I have any forms or controls declared MustInherit. So typically what I find myself doing instead of having MustOverride members is having Overridable members that throw exceptions& ...Show All
pjencyjoy type typeEditor
Hi I Got a class with a 3 properties 1 Fieldname -> String 2 fieldtype -> type (eg system.string) 3 FriendlyName -> string When I'm open it in de designer, the property FieldType is disabled Is there is no editor for the type: 'type' Remco btw I'm working with vs2003 i did 'solved' it with a enum with types in stead of type Remco over 270 views no ...Show All
pin_ right mouse click on treeview
can anyone show me how to display a context menu after a right mouse click on a specific node. This is what i have been able to acheive so far If e.Button = MouseButtons.Right Then TreeView1.SelectedNode = ...Show All
Dijkstra30 User Control with my event
I've created User Control with my event: public partial class ucHouse1 : UserControl { public delegate void MyEngineHandler(int NewIdHouse); public event MyEngineHandler IDHouseChanged; ... I run this event private void cmbHouses_SelectedIndexChanged(object sender, EventArgs e) { int var_ID_House = (int)this.cmbHouses.SelectedValue; if (IDHouseChanged != null) IDHouseChanged( var_ID_House); } On form where I've ...Show All
Nikos Giannakas Bitmap.GetPixel() slow. Any other alternative
I am trying to get a Byte array out of a Bitmap that already exists. The bitmap is in Format32bppArgb format. I am using the following code but it is very slow. b = new byte[ABitmap.Width*ABitmap.Height*3]; for(int y=0;y<ABitmap.Height;y++) { for(int x=0;x<ABitmap.Wid ...Show All
Raviv A simple number from a String, how?
If I have numbers in String and wan't to perform some arithmetics on them what is the best way to do For example if the string is "11" how do I convert that to a simple int that I can do arithmetics with I could convert it to class object of Integer but then I couldn't do any arithmetics. Dim str as String = "11" Dim int as Integer = Integer.Parse(str) Tony You'e right, it's in ...Show All
VASUSIVA Master detail
how can i make DataGridView to enable master Detail and supported it Add you master and detail tables to a dataset, create a relation between them, then bind the grid to the dataset. can you write code snippet about it please You can use SqlDataAdapter and Dataset to create Master-Detail tables. Generate data adapters for both Master and Detail. Fill the data using Dataset and then generate a Relation between both ...Show All
GAINSCOM find out in MDI-Form which Control has the focus
hi, i have a MDI-Form. I want to find out, which control (Textbox, Textfield) currently has got the focus. these controls may be in a TabControl. bye Hi, Aside from the ActiveControl property, I am not aware of an easier way to do this. cheers, Paul June A. Domag Hi, You can do that by looking in the ActiveControl property of the form. It contains the control that has the focus. Chec ...Show All
