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 Mike Lewis 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. DwaineC

    Passing Params from VB

    I sent the param as long from VB6 and received in C++ as __int32 and converted to (uint32). Now, isn't that what I said I was trying to do in my first post? I swear I tried every combination under the sun, but I must not have tried that because it worked the next day. That's what happens when...
  2. DwaineC

    Passing Params from VB

    Never mind... I got it.
  3. DwaineC

    Passing Params from VB

    I have a C++ .NET dll (not mfc or atl). Is there something I should know about sending a VB long and receiving in C++ as __int32? From VB.NET it works just fine, but not from VB. That is, I can convert the number (uint32) properly from VB.NET, but it returns a different number if passed from...
  4. DwaineC

    Colors in Datagrid

    Markinro, Create a DataTextBoxcolumn for each column you wish to override the paint event. Add that column to the gridstyle and you will be on your way. Within the overrided paint event you'll know the row being updated and you can trap for the cell data and choose your color brushes.
  5. DwaineC

    Colors in Datagrid

    I did find that in another post and yes, it does work. I chose to override the paint event in an inherited DataGridTextBoxColumn. Seems a little silly to have to do all that, but... it works. I can understand making controls more flexible - but they certainly could have simply added a cell...
  6. DwaineC

    Colors in Datagrid

    Can I set a color scheme (or cell style) for individual cells? I simply want the foreground and background color of certains cells to be different than the rest, dependent upon the data. Since it is a bound grid, I will traverse the cells and check the data one by one... but I can't find any...
  7. DwaineC

    DataGrid Events

    Okay, Mr. Instructor... On a form in a VB.NET app: I have a bound grid (bound to a dataset table). Using the DataGridStyle and custom columns I am allowing editing of only a single column, the rest are Readonly. I want to prevent new rows from being added, and existing rows from being...
  8. DwaineC

    Ending Unmanaged Processes

    If I initialize an Excel Application object, do my thing, then app.quit, it still shows up under the Task Manager processes. Any idea how to endProcess a Process running under Task Manager programmatically? Dwaine... and Thx
  9. DwaineC

    Cancel Processing

    I don't know if there is a command, but I would have the cancel command button initialize a Stop variable that your processing checks as it's looping through its duties. That way you can decide at what point you will allow processing to be canceled and thereby know the state of your objects at...
  10. DwaineC

    Excel NumberFormat Property

    No need to reply... It is the "@" sign to to programmatically format an excel range: Range.Numberformat = "@". Absolutely no documentation anywhere for that. They let you type "General", but choose a stupid symbol for other formats. Give me a break!
  11. DwaineC

    Excel NumberFormat Property

    Geez, this should be simple. I specifically want to format a range of cells as text. When I set the Numberformat property of a range to "Text", I get an error that states I should choose one of the options available. Well, duh, "Text" is an option from within excel. It...
  12. DwaineC

    VB.NET "There is no source code available for the current location"

    I only notice that problem when debugging events. I'm able to iterate through all my subs and functions no matter where in a solution they are. But I have to specifically set breakpoints in events or I get that error message... Dwaine
  13. DwaineC

    Can't display header text in datagrid

    Oh... got it. I didn't infer that from your original question... I was just going on "I can't display customized header text in a datagrid" Glad you got it figured out.
  14. DwaineC

    Can't display header text in datagrid

    grEmployeeList.ColumnHeadersVisible = True Try that one... Dwaine
  15. DwaineC

    Extending the MessageBoxButtons

    I would like to add a two-button option to the MessageBoxButtons... I know how to add to the DialogResults enumerator, but it seems different for the MessageBoxButtons. In other words, I would like to see MessageBoxButtons.MOFJpg... And I can easily trap for the results in DialogResults...
  16. DwaineC

    Datagrid events - row highliting not following currentrowindex

    Duh... the ol' validation event. Geez, I'm killing myself here!
  17. DwaineC

    Datagrid events - row highliting not following currentrowindex

    Hey... in the datagrid the user has a currentrowindex which is highlited in blue. They click on a different row and I validate original row in the CurrentCellChanged event (even though the CurrentRowIndex contains the NEW row clicked, I know the original one...) Anyway, if the original row is...
  18. DwaineC

    RecordCount in VB.NET

    Adrian, this is probably a case of thinking english when you want to learn Spanish. You should take the time to learn the Dataset Object which is filled with a data adapter. Data adapters can be created by simply dragging a table in from your server explorer and configuring them through a GUI...
  19. DwaineC

    Getting logical row # from a dataset table

    Well, if I actually had to know the logical number, I would probably store it in a column. But the purpose I needed it was to prevent duplicate data entry into a specific column. (Remember, this is not tied to a sql database - I know how to do that.) Anyway, rather than go into my whole...
  20. DwaineC

    Getting logical row # from a dataset table

    Believe it or not, I'm not even using a backend... I'm using the dataset between a grid and some functions that write to flat files. I appreciate your answer, and storing the record number in the table was my next call... but, I ended up with a different algorithm for a solution. So great...

Part and Inventory Search

Back
Top