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