Forum: C Aug 25th, 2006 |
| Replies: 1 Views: 714 Event after Form_Load In my Form_Load, I dynamically create buttons to populate a tabcontrol with 6 tabpages. For some reason, it doesn't like it when I make the buttons invisible in Form_Load. I'm wondering if there's an... |
Forum: C Aug 22nd, 2006 |
| Replies: 2 Views: 933 |
Forum: C Jul 25th, 2006 |
| Replies: 2 Views: 933 Modifying Form's Clientsize in a static function I need to modify the Form's Clientsize in a static function but I get a compiler error - error C2597: illegal reference to non-static member 'System::Windows::Forms::Form::ClientSize. Are there any... |
Forum: C++ Jul 25th, 2006 |
| Replies: 0 Views: 1,038 |
Forum: C++ Jul 14th, 2006 |
| Replies: 0 Views: 1,434 |
Forum: C++ Jul 10th, 2006 |
| Replies: 0 Views: 2,316 |
Forum: C Jun 19th, 2006 |
| Replies: 0 Views: 2,453 Increase form size beyond screen resolution I'm using Visual Studio .NET. The gui I'm implementing will be used on a wide screen. In the design view of the IDE, the form size is limited to the screen resolution. How can I stretch it to be the... |
Forum: C++ May 15th, 2006 |
| Replies: 1 Views: 2,344 Dynamic Boolean Array in VC++.net 2003 I'm coding in VC++.NET 2003. For a static array of 20 elements, the code below works fine. But, I needed a dynamic array. I decided to use an ArrayList, but came to a compiler error when it couldn't... |
Forum: C++ Apr 26th, 2006 |
| Replies: 2 Views: 1,754 Re: Making a log file global I got it. Create a function that opens the file/stream, writes to it, and closes the file/stream. Pass in the string to be logged. So, instead of writing directly to the file, call the function. |
Forum: C++ Apr 24th, 2006 |
| Replies: 2 Views: 1,754 Making a log file global I'm coding in VC++.NET 2003. I have a class that needs a log file to log info and errors for debugging. The problem I have is that FileStream and StreamWriter can not be global. I get compiler error... |
Forum: C++ Apr 13th, 2006 |
| Replies: 8 Views: 4,086 |
Forum: C++ Apr 13th, 2006 |
| Replies: 8 Views: 4,086 |
Forum: C++ Apr 7th, 2006 |
| Replies: 8 Views: 4,086 |
Forum: C++ Apr 7th, 2006 |
| Replies: 8 Views: 4,086 |
Forum: C++ Apr 4th, 2006 |
| Replies: 3 Views: 2,292 Re: MessageBox::Show problem Here's more information: The MessageBox is both on top and modal when called from a nonstatic function. But in a static function, neither is the case. Workaround available? |
Forum: C++ Apr 4th, 2006 |
| Replies: 3 Views: 2,292 |
Forum: C++ Apr 3rd, 2006 |
| Replies: 3 Views: 2,292 MessageBox::Show problem I'm coding in VC++.NET. For some reason, my messagebox is displayed below my application and is therefore hidden from the user. I can't get it to be modal either. Any ideas? |
Forum: C++ Mar 30th, 2006 |
| Replies: 1 Views: 947 |
Forum: C++ Mar 30th, 2006 |
| Replies: 1 Views: 947 stdole::StdFont supported in VC++.NET? I want to change the font size but my 3rd party mapping sw needs the parameter to be of type StdFont. Is this supported in VC++.NET. I couldn't find anything about this in MSDN. Do I need to add a... |
Forum: C++ Mar 24th, 2006 |
| Replies: 3 Views: 1,996 Re: Declaring an array of records in MC++ How about declaring an array of records without using pointers?
I get an error when I declare it this way:
Record ListOfRecords[];
I want to have an array of 100 records. Then have a pointer... |
Forum: C++ Mar 23rd, 2006 |
| Replies: 0 Views: 1,065 Running 2 instances at the same time - VC++.NET When I create a windows form application in VC++.NET, the code below is autogenerated to launch Form1. I want 2 instance of Form1 to run concurrently. I added another "Application::Run(new... |
Forum: C++ Mar 14th, 2006 |
| Replies: 3 Views: 1,996 |
Forum: C++ Feb 28th, 2006 |
| Replies: 1 Views: 1,780 Creating dynamic arrays I'm coding in VC++.net (managed C++). Is there a way to create dynamic arrays and preserving the data when the dimensions are changed? I know that Visual Basic can do this.
In VB:
ReDim Preserve... |
Forum: ASP.NET Feb 27th, 2006 |
| Replies: 0 Views: 1,093 Displaying fixed digits = 7 -> 007 I want to format the number to display fixed digits, but the format code that I have seen doesn't have that option. I want to display the longitude of the cursor in DDD::MM::SS form. I want to see 7... |
Forum: ASP.NET Jan 31st, 2006 |
| Replies: 0 Views: 1,592 Bug? ToggleButton problem in toolbar for VC++.NET I have a toolbar with 2 togglebuttons. I have a program written in C# and another in VC++.NET of the same code. In the C# program, the toggle button would pop when the other is pushed and vice versa.... |
Forum: ASP.NET Jan 13th, 2006 |
| Replies: 0 Views: 1,376 any info on static timer variable I'm coding in VC++.NET. Does a static timer work like any other static variable? I have a class CLASS1 that has a static timer TIMER1 and a function ENABLETIMER that disables then enables the timer.... |
Forum: C Jan 6th, 2006 |
| Replies: 2 Views: 2,862 Re: Converting String* to char* Here's the answer:
String *str1;
char* chars;
str1 = textBox1->Text;
// convert from managed String to char *
chars = (char*)(Marshal::StringToHGlobalAnsi(str1)).ToPointer(); |
Forum: C++ Jan 6th, 2006 |
| Replies: 4 Views: 2,251 Re: Replacing strings that are not case sensitive I got it using Regex.
Example:
string = one<BR>two<br>three
str =string->Replace ("<BR>", S"\n");
str =string->Replace ("<br>", S"\n");
str =string->Replace ("<Br>", S"\n");
str =string->Replace... |
Forum: C++ Jan 6th, 2006 |
| Replies: 2 Views: 4,342 |
Forum: C++ Jan 5th, 2006 |
| Replies: 2 Views: 4,342 |
Forum: C Dec 12th, 2005 |
| Replies: 2 Views: 2,862 |
Forum: C++ Dec 9th, 2005 |
| Replies: 4 Views: 2,251 Replacing strings that are not case sensitive Code in VC++.NET
I have a string that has html tags. I want to replace <BR> with \n, but not sure if <BR> will be uppercase, lowercase, or a mixture of both. The string replace function allows only... |
Forum: ASP.NET Dec 1st, 2005 |
| Replies: 1 Views: 1,465 |
Forum: C++ Dec 1st, 2005 |
| Replies: 1 Views: 1,116 |
Forum: C++ Nov 28th, 2005 |
| Replies: 3 Views: 2,372 Re: Separating socket code from GUI code That's correct. If I have a global function in main that is "SendMessage" to socket, will I be able to call it from a class? My instance of the GUI class is not allowed to be global. How would I get... |
Forum: C++ Nov 22nd, 2005 |
| Replies: 3 Views: 2,372 Separating socket code from GUI code This code is written in VC++.NET. I have a windows form that display data from a socket port using callbacks. I have main.cpp that calls Application::Run(new Form1). The socket processing code is... |
Forum: C++ Nov 16th, 2005 |
| Replies: 4 Views: 1,495 |
Forum: C++ Nov 15th, 2005 |
| Replies: 4 Views: 1,495 Re: Timer event doesn't get triggered The code is written in VC++ .NET. In my procedures, I call
CmdAckTimer->Start(); // Start timer
CmdAckTimer->Stop(); // Stop timer
static System::Windows::Forms::Timer * CmdAckTimer;
//
//... |
Forum: C++ Nov 15th, 2005 |
| Replies: 4 Views: 1,495 Timer event doesn't get triggered I have created three timers(5sec,5sec, and 10sec) for my Windows gui. When the timer event is triggered, it displays an Timeout error to a textbox. For some reason, the timers doesn't trigger in some... |
Forum: C++ Oct 11th, 2005 |
| Replies: 2 Views: 2,223 |