Anyone know how to prevent column width changes in a datagrid? I know there is a WidthChanged event for the ColumnStyles but I don't know how to use it. When I try to make a subroutine to handle it, it only gives me the child objects of the form. I can't even get to the columnstyles.
Thanks...
Hi,
I am trying to set the alignment of the data in the grid control to right-aligned for a column that contains currency. That is working using the DataGridTextBoxColumn Class. However, it sets the entire column to right-aligned, including the Column header text, which doesn't look good.
Is...
Uhu,
I found this recently and it helped me out alot. However, I don't know why it works. Could you explain? I am new to VB.NET and I am having a lot of trouble learning about ADO.NET and databinding and such.
Thanks,
Elena
I figured out what the fundamental thing was that I wasn't getting.
A string is a character array. So the variable name is actually pointer the beginning of the array, not the contents of the array itself. That's why I could not assign a string to the variable (because its a memory address)...
Hi,
As I am new to C/C++, I for some reason cannot get this simple concept.
If declare a string like:
char string[];
Shouldn't I be able to assign it a value later on? Like:
if(something is true)
string = "This is a string.";
else
string = "This is not a string.";
Can someone explain...
Thank you all for your posts. These are all helpful. As for now, since I have little time left, I will use the basic prompt/reply approach. But I have to learn how to use menus as I expand my program. I have to get phase 1 done by tomorrow.
itgsd,
Since I am still trying to learn this on...
Hi,
I want to make a simple user interface for DOS that will run other DOS programs based on the users selections. Just a few menus that they can select with a mouse or keyboard. However, I am new to this and I don't know where to start. Can someone point me in the right direction?
Thanks...
Hi,
I want to make a simple front end user interface for DOS that will run other programs based on the menu selections. Just a few menus that the use can select with a mouse or keyboard. However, I am new to C and I don't know where to start.
Can someone point me in the right direction...
Sweep,
Thanks for the reply. If I enter numbers, everything works fine. I am using using Cdbl() to convert the text to numeric and do all the math function. The problem is that I want to prevent the user from entering text.
Thanks,
Elena
I am trying to validate two textboxes to make sure that the entries are numeric. I am using the Validate Event of each of the text boxes. If the entry is not numeric, I set e.Cancel = True. I assumed that that would cancel any events that follow.
If I tab to another control, or click a...
This one has always bugged me. I am new to C/C++ (As if you guys couldn't tell). Anyway, when I look at some sample code, I see different ways of declaring a pointer(I think). I just want to make sure that there is no difference between:
char *string[64];
and
char * string[64];
They are...
I actually finally got it to work by using TASM 5.0 with Turbo C++ 3.0. I had to tweak a few things, but ultimately, it worked. I still have to go through the rest of the code to see how my tweaks will affect it, but at least it compiled. Progress is a good thing.
Apparently, the code was...
2ffat,
Thanks for the input. The problem is, I do want to write programs for DOS. In fact, I have to. I can't figure out where to get the Borland C++ 4.52, though. I did find TASM 5.0 ( I think that is the latest). Maybe that will work with Turbo C++ 3.0. I'll give it a try tomorrow. I...
Thanks,
I have done some more exploring of the subject, and I found that there are two different Borland C's. There is straight Borland C/C++ and then there is a Turbo C/C++ that is far less expensive. Does anybody know the difference?
I am trying to compile some code that has some assembly...
Hi,
I am so confused over the number of versions out there from Borland. I have Turbo C++ 3.0, that came with TCWIN 4.5. There is also a C/C++ 4.52, which is supposed to be the "full version". What does that mean? I have also heard people say not to use the low cost versions...
Actually, I figured it out. It turns out that I need Turbo Assembler to compile this. The inline assembler can't handle macros. I have to purchase Turbo Assembler separately. Bummer for me, because it is $140.00. Too bad Borland doesn't include this in their antique software section...
Hi,
I am trying to compile a project where one of the files uses assembly languange. I don't have much experience with projects. I have usually written single file programs, so all of this is new. Also, I use Turbo C++ 3.0, which lets you make the .exe file from the IDE. The code I have that...
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.