Answer Questions
sandeeppatwardhan DataRow to the textbox
Hi, I have 4 textbox controls(txt1, txt2, txt3, txt4) on my windows forms. And in my database there is a column called Attorney. The query might return 0/1/2/3/4 rows. Now my question is how do attach the textbox controls to the rows of the datbase ...Show All
Diego Britos VB to C# ?
Can someone tell me how to "translate" VB code to C# in one class I have this: Private Sub Class1MouseDown() Handles Class2.MouseDown and in the other declared: public MouseDown() and somewhere in some function: RaiseEvent MouseDown() So, how to do this in C# ...Show All
Amit Chopra scaling image in ListView
I'm using a ListView in multi-column Details mode. I'd like to add an icon along with text to the first column of my items. I've figured out the code to do this, but I still have one problem. Here's my code: ImageList imageList = new ImageList(); imageList.Images.Add(Properties.Resources.myImage); myListview.SmallImageList = imageList; myListview.Items.Add("hello", 0); myListview.Items[0].SubItems.Add("world"); ...Show All
Windstay System.NotSupportedException after BindingSource.AddNew()
Even though I previously set my BindingSource object to AllowNew = True, whenever I call BindingSource.AddNew() after that I get the exception below. Does anyone know why this might be happening Thanks System.NotSupportedException was unhandled by user code Message="Specified method is not supported." Source="System.Data" StackTrace: at System.Data.DataViewManager.System.ComponentModel.IBindingList.AddNew() at ...Show All
happy we tod Jet database engine/mdb file - issues?
Hi, I have used the Jet database engine in .NET for an application in the past, and did not have any issues at all. I am working on a much bigger application, but can't see any obvious pitfalls (a few million rows perhaps is all I&nbs ...Show All
darkmsn MeasureString versus MeasureCharacterRanges
Adding textual features to a drawing program I tested the following code against each other. #if MCR StringFormat sf = new StringFormat(); CharacterRange[] rng = {new CharacterRange(0,s.Length)}; sf.SetMeasurableCharacterRanges(rng); RectangleF rct = new RectangleF(0,0,100000.0f,fnt.Height) Region[] rg =&nbs ...Show All
D0minat0r How to write a scheduler for Windows (newbie)
Hi - I have a web application, which I want to use to send me email reminders of events. To have this send the emails each day about the events of that day, I need to write a windows application/service, which will query my database and loop until all of the events of that day have had an email sent for them. I've only ever written in asp/asp.net - and have access to write .net 1.1 or .net2 on my server - I've never written windows program ...Show All
chi2king My Control's Are Stacked!
Hey, I'm having an issue with a few of my custom controls. I want to add my custom controls to another control at runtime and have them dock to the top. (this.Controls.Add(<myCustomControl>);) The controls get added to the form but they all dock&n ...Show All
Rajasekhar can't override size property
I am writing my first composite user control. I am trying to set my own size property in this new control like, public System.Drawing.Size System.Windows.Forms.Control.Size { get { return this.Size; } set &n ...Show All
UNet Immediate window doesn't take string function in C#
Why the immediate window in debugging C# code doesn't take the second command below: fnstr @"C:\Jobs\data.txt" fnstr.IndexOf("\\",1,1) error: 'fnstr.IndexOf' does not exist Thanks. Its a pain, the only reason I could think of is that it is a ...Show All
Elie Ata list boxes more HELP needed.
I need a way of making list boxes center the values displayed within the list. I also need to find a way of making them unselectable without setting enabled to false or SelectionMode to None because the form won't load the way I trye ...Show All
homerc44 Question Regarding Keypress
Hello. I'm fairly new to the C# language. My problem is occuring with the KeyPress event. I have 4 text boxes (representing ocets). I want to make it where if the user presses the " . " key (period/decimal), the next textbox (octet) will come into focus. The code I have now is: I haven't tried this and it's new to 2005, but try setting the KeyEventArgs.SuppressKeyPress property to true (ie e.SuppressKeyPress = true). ...Show All
BhavikS How do I assign a .ico file to a ToolStripButton??
I modify the filter (*.*) to list the .ico files when setting the Image property of the ToolStripButton , and select the .ico file, it doesn't modify the property and the image doesn't change. It seems I CAN'T set an .ico file to the Image property of a ToolStripButton Does anyone know a solution for this problem please let me know .... Thanks!!!! Yes, I did ... Have you set the ToolStripButton.DisplayStyle property to Image or Image ...Show All
Nidonocu User Control
Hello, everbody! I have a question. I have two user control, I am using winform usercontrol1 and usercontrol2 On usercontro1 l have textbox. when I click on the button on usercontrol2 and I want the information to change on usercontrol1. I can't seem to do this. UserControl1 I have textbox1 UserControl2 UserControl1 lg = new UserControl1; lg.textbox.text = "Hello"; WHAT IM DOING WRONG, THE TEXT ...Show All
eriks70012 Showing a databinded Combo with a first empty option
Hi, I want to know How can I add a first empty option in a databinded combobox that I populated with a dataset. I made a validate function : If combo1.SelectedIndex = -1 Then Msgbox(....) End If But it doesn't work becau ...Show All
