Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. BlackburnKL

    adding controls to panel

    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 =...
  2. BlackburnKL

    Bound ListBox not updating

    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...
  3. BlackburnKL

    Bound ListBox not updating

    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...
  4. BlackburnKL

    Blank Date Picker

    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"...
  5. BlackburnKL

    Reading a value from Settings.settings

    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...
  6. BlackburnKL

    Trying to write better code

    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
  7. BlackburnKL

    DTS Export to Flat File with DateTime in Filename

    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...
  8. BlackburnKL

    Trapping data from USB scanner

    Thanks, whosrdaddy, for your insight. I had wanted to avoid adding a delimiter, but that is probably the best approach under the circumstances. BlackburnKL
  9. BlackburnKL

    Trapping data from USB scanner

    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...
  10. BlackburnKL

    Trapping data from USB scanner

    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...
  11. BlackburnKL

    Reverse engineering question

    This may not be what you are looking for, but a good little tool for printing code in a more useful format is called PrettyCodePrint. BlackburnKL
  12. BlackburnKL

    Closing and Reopening a Connection

    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...
  13. BlackburnKL

    setting cellheight property of msflex grid

    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...
  14. BlackburnKL

    GotFocus with mouse

    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...
  15. BlackburnKL

    Inserting a String that contains a ' single quote

    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...
  16. BlackburnKL

    Inserting a String that contains a ' single quote

    It doesn't work. Suppose that my user name is BlackburnKL and my encrypted password is ÒR1ª''>fŸT] in this simplified example. Using the described approach, I develop the following SQL string to retrieve my information from the database: SELECT * FROM Users WHERE Name = 'BlackburnKL' AND...
  17. BlackburnKL

    Inserting a String that contains a ' single quote

    What about 2 single quotes? An encryption routine returned a string with 2 single quotes together and the approach described above converted it to 4 single quotes. It didn't cause the process to throw an error, but it also didn't find the matching record in my SQL Server database. It could be...
  18. BlackburnKL

    Case of file names is changed when doing a &quot;get&quot;

    Did you ever find a solution to this? I'm experiencing something similar--plus short name vs long name switching among developers. BlackburnKL
  19. BlackburnKL

    Problems moving 30GB HDD to 80 using Drive Image in XP Pro

    I will try that in the next few days (schedule is a little hectic right now). Thanks for the advice. BlackburnKL
  20. BlackburnKL

    Decimal tab

    The easiest way to use tabs (of all kinds) in WP8 is to use the ruler bar. If the ruler bar is not displayed, click View then Ruler. With the ruler bar displayed, you can remove existing tabs, if desired, by individually dragging them off of the ruler bar and dropping them. You can also clear...

Part and Inventory Search

Back
Top