TipGiver's advice is right on the money. When we do this sort of thing, we deal with several attributes of the control after adding it dynamically as you have described. We also dynamically establish events for the control using generic event methods as needed. For example:
cht.Location =...
To clarify, when the object is created, we use the following code:
ListBox.DataBindings.Clear();
ListBox.DataBindings.Add("DataSource", myObject, list);
Do I still need to rebind? And, if so, what does the binding buy me in the first place (other than not having to populate the list in...
I have a ListBox on a Windows Form which is bound to a property of an object. The object's property is a list of messages, defined as List<string>.
In code I have updated the object and its list of messages, but the list displayed in the ListBox has not changed. I can force the list to update...
There is at least one third party control that I believe will do what you are looking for. We use a version of it for Windows forms. It is called "CalendarCombo" and is sold by Janus Systems (janusys.com).
It looks a lot like the Microsoft DateTimePicker, but it has a "Today" and a "Null"...
I have a C# application that needs to call an external application. When I hard code the path to the external application, it works fine. However, I would like the path to the external application to come from a settings file instead.
I have stored the path as a string in a Settings.settings...
If you are returning a single value to load into a variable, for example, returning a parameter avoids all of the overhead of a data table that you would get even with ExecuteScalar.
BlackburnKL
RLTE,
I noticed that nobody had responded yet, and while my solution is not exactly what you requested, it is close enough that I thought it might be helpful in meeting your deadline.
I use a DTS with an ActiveX script to rename an import text file to include the date when it was imported...
Thanks, whosrdaddy, for your insight. I had wanted to avoid adding a delimiter, but that is probably the best approach under the circumstances.
BlackburnKL
Sorry that I didn't make it clear. The description of the application was a poor attempt to provide additional details.
As the subject line(Trapping Data from USB Scanner) indicated, I am looking for a way to trap the data from the USB scanner and to know that I have a complete scan.
I have...
I am designing a form for an application in C# 2005 which receives input from a USB barcode scanner (which seems to treat the data as if it had been entered from the keyboard--without the usual key down/up/press events, of course).
I would like to be able to allow the user to scan multiple...
I am experiencing problems trying to use a reponed connection to the database.
We use a VB6 front end, and a SQL Server 2000 database using ADO connections from Windows 2000 PCs (via application role access). We scan boxes of product as they pass down a conveyor to update the inventory. I was...
Cell height is a row property. Try the following code (replace Grid1 with the name of your grid):
Grid1.RowHeight = 600
This code assumes that you are already on the row you want to affect. The 600 was just a general number which I chose. You should adjust it to meet your needs.
The...
If you want all of the text selected by the _GotFocus event, you can include the following code (assuming the name of the TextBox is Text1):
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
That will automatically select the entire text (which often is, but may not always be what is...
SQLBill,
Thanks for your response. Allow me to provide you with some follow-up information.
By the way, the password to which I am referring is an application password which is one of ours, not SQL Server's.
I committed an error testing this in SQL Server because I was attempting to find a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.