Answer Questions
tgbk A problem with databinding
As I know, in the .NET Framework 1.1, if I bind a string property of a type to the Text property of a TextBox and when I change the Text of the TextBox in code, the string property doesn't get updated. Only if the Text is changed by UI action, for example, input some text into the TextBox , the string property will get updated. What I would like to know is in the .NET Framework 2.0, if I use BindingSource, Do I have the function of up ...Show All
Fred Nie Input Validation on Windows Forms
I am still having trouble getting this straight. I wonder if anyone can help. I have a straightforward Windows Forms application, displaying data in separate controls (not a Datagridview (yet)) bound to a database via a Dataset and BindingSource, all set up automatically in VS. I want to validate my user's input, so: 1. I want to do the validation as soon as the user enters data, while his attention is still on that field, AND I want to wr ...Show All
Achal Gupta fancy code generation
Hi all, I was wondering if it is possible by using an appropriate custom CodeDomSerializer to generate code outside of the InitializeComponent() method. All the examples I've seen generate a few additional statements inside this method. But, for instance can I&nb ...Show All
Adam West searching items in dataset table
i have to search the data in the dataset before inserting into its table to avoid duplicacy of items, can any body guide me in this context. thanx. Hi, Is your problem solved Thank you, Bhanu. There are a few thing you can to do select data in a DataTable. You could use the DataTable.Select() method. This method accepts a filter as parameter (and a search order if you want) and returns an array o ...Show All
DBAMANI Challenge - Key and mouse click generator
Ok I havent programmed for a couple of years, and come accross an idea.... I play a game, one in the game there is a very boring task to level your character (Mouse click and then F7, F7 and then mouse click. This would occur every&nb ...Show All
JonPL Treestyleview in a datagridview?
Hi I'm looking for advice on how it might be best to go about implementing a tree-view style structure in a datagridview. Currently have an app that displays an array in a datagridview - I use a DGV as it makes displaying, sorting and selecting child's play. The underlying data has changed to now support a sort of folder like string e.g. Project\subproject, to any depth and it would be nice to let the user have the option of a folder li ...Show All
Oyvind Hansen Display image using c#
Tell me how to display image in c# forms using c# Can you be more specific For just displaying a Image on a Form you can use the PictureBox control and sets his Image property to the image you want to display. Use a PictureBox... Then to load the image you can use: pictureBox1.Image = Image .FromFile( "c:\\filename.jpg" ); I works fine. Thank you fo ...Show All
clintonG input not going to text box with the caret!!!
This is kinda hard to explain, but here goes. I have a user control, with a bunch of text boxes on its surface. The user control is one of several in a tab control. Sometimes, when I first bring up the usercontrol, if I click&n ...Show All
OWScott User control doubt
I'm new to C#(VB6 background). so forgive me if i'm asking something wrong. My user control has a textbox and a label control. Now i want to provide a backcolor property for the usercontrol which would allow me to change the backcolor of the textbox.&nbs ...Show All
Ravengbc Please Please Help
Hey I'm really new to programming in general and i'm having trouble with something really simple and need a hand. Ive got a button in a form on a windows application and i want another form to load up when the button is clicked but I can't find out how to do it any information would be greatly appreciated. create an instance of the form and then call the show method, the name of the form I'll use is Form1 it wi ...Show All
Jordi73757 Help with Client/Server archtecture...
Hi all. I am building an application that will be based on the n-tier architecture (Presentation/BLL/DAL[NHibernate]/SQLServer). The purpose of this application is to produce compressed (zipped) Text, PDF and XML documents from the datasource, based on criteria entered  ...Show All
Monty Maus DataGridView IndexOutOfRangeException
System.IndexOutOfRangeException: Index -1 does not have a value. I get this exception when I try to do this: products.Add(pdi); this .dgvOffer.DataSource = products; products is an ArrayList of Product objects. In my case I have a bit of complexity maybe not the best solution, but the one I thought of first. So here goes. I have an array of ArrayLists and each item in that array holds a list of Products. I then have a combobox to select differ ...Show All
thomson Menu location on the form?
Hello, Is there a way to change the default location of the menu I want the menu to appear in other position in my form and not in the top of the form Thanks! As far as I know, no, you can't do this in VS.2003. You ca ...Show All
Colin1111 "Cannot find keycodev2.dll or invalid keycode"
Hi, I created winforms and was able to deployed it using NTD. I used VS.Net 2002 and VB.Net. I have crystal reports in my forms. Everything is working except when i tried to view the reports in client (Win 2000, installed w/ . ...Show All
TheGreatErecto Can't change resolution properties on an Image
I am working with .NET 2.0 Beta 2. I am trying to change the resolution property items/exif values on an Image (a tiff image). The three values I am trying to change are XResolution, YResolution, and ResolutionUnits. I am able to set the properties on the image and read them from the image to verify that my values have been set, the problem occurs when I save the image. When I save these properties are changed to values other than the ones ...Show All
