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...
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...
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...
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...
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...
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...
Hi,
I have Microsoft Visual C++, and I want to write a program that runs in DOS. Specifically, it is a HDD test, so the system would have to boot to a floppy. Is it possible to write in Microsoft Visual C++?
I know I should know this, but I have never used Microsoft Visual C++. Previously...
Hi,
I tried posting this question to the C++ forum, but this one looks like it gets a little more activity, so hopefully someone here can help.
I am new to C++, trying to teach myself, so this may be easier than I think. I am looking into writing a program in C++ to test basic functions on an...
Hi,
I am looking into writing a program in C++ to test basic functions on an ATA hard drive, such as read, write, identify, etc. Does anyone have any information on where I can learn more about it?
Thanks,
Elena
Hi,
I have an SQL statement:
SELECT DISTINCT Tests.ConfigName, Tests.[C-SEL] FROM Tests WHERE Tests.OSID = 1 AND Tests.DriveType = 1
Now, this is working fine, but the order that the records are returned in is not correct. I want it to return the records in the order they were entered into...
Hi,
I want to be able to create one or more frames at runtime based on user entry. Then I want to create one or more(usually more) command buttons and text boxes inside each frame based on information from a database. I have finally been able to figure out how to create it all, but now I need...
In this code, I have a commandbutton array, a textbox array, and a frame array. I am trying to dynamically create them based on a database and then resize them. I can't figure out why this doesn't work. The program fails at the area highlighted below with 'object does not support this...
Hi,
This one is troubling. I am trying to add controls dynamically, based on user entry and on information from a database. I want to add a frame(1 or more, depends on user entry) and then inside the frame have one or more command buttons and text boxes. I can create the frame and the...
Hi Guys,
I am trying to add a new record to a table in an Access Database, which I have been able to access with no problems. When I try to add a new record, I get the following error:
"Runtime error '3251': Object or provider is not capable of performing requested operation."
Here...
Hi,
OK, what am I doing wrong? I am getting the error "3265 - Item cannot be found in the collection corresponding to the requested name or ordinal." The Find method seems to work, because the EOF is false when I get the error. I have checked the names and data types, but I can't...
Quick Question:
If you open a recordset object in an event procedure, does it die when the procedure ends?
For example, I am opening a recordset when the form loads to fill a combo box. Can I still use the same recordset in the combo box LostFocus event procedure? Or do I have to open it for...
Hi,
Just a quick question. I have several functions that get information from a database and display it on a form. Should I open the connection to the Database in one place, rather than opening and closing in each function? What's the difference?
Thanks,
Elena
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.