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