Showing results 1 to 40 of 69
Search took 0.01 seconds.
Posts Made By: DotNetUser
Forum: C Aug 25th, 2006
Replies: 1
Views: 714
Posted By DotNetUser
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
Posted By DotNetUser
Re: Modifying Form's Clientsize in a static function

How do I make ClientSize static?
Forum: C Jul 25th, 2006
Replies: 2
Views: 933
Posted By DotNetUser
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
Posted By DotNetUser
Button can't display when selected tabpage is visible, Bug?

I'm coding in VC++.NET 2003. I have a tabcontrol with 6 tabpages. In Form_Load, I dynamically create buttons on each of the tabpages, but make them invisible. Inside a static function, I would make...
Forum: C++ Jul 14th, 2006
Replies: 0
Views: 1,434
Posted By DotNetUser
Dynamically Add Event Handler without using this pointer

I'm coding in VC++.NET 2003. Is there a way to create a button_click event without using the this pointer? I have a static function that creates new buttons. I want to add the click event to the new...
Forum: C++ Jul 10th, 2006
Replies: 0
Views: 2,316
Posted By DotNetUser
Create buttons dynamically and adding them to a panel

I'm coding in VC++.NET 2003. I have panels that will be populated with buttons dynamically. In my static callback function, I get an exception when I try to add the button to the panel....
Forum: C Jun 19th, 2006
Replies: 0
Views: 2,453
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
Re: Disable Close(X in upper right corner) button on Form

Form property ControlBox is the one. When set to false, it hides the MIN, MAX, and Close buttons.
Forum: C++ Apr 13th, 2006
Replies: 8
Views: 4,086
Posted By DotNetUser
Re: Disable Close(X in upper right corner) button on Form

I believe that you're talking about FormBorderStyle. There's None that doesn't have the X, but this doesn't suit my needs. I need a form that can be resized.
Forum: C++ Apr 7th, 2006
Replies: 8
Views: 4,086
Posted By DotNetUser
Re: Disable Close(X in upper right corner) button on Form

The target OS is Windows XP and I'm using Visual Studio .NET 2003. My code is being written in VC++.NET.
Forum: C++ Apr 7th, 2006
Replies: 8
Views: 4,086
Posted By DotNetUser
Disable Close(X in upper right corner) button on Form

I launch 2 programs within my application with PROGRAMNAME->Show. Let's call them Prog1 and Prog2. I have a dummy form that I use Application::Run to keep the software running. When 1 of the program...
Forum: C++ Apr 4th, 2006
Replies: 3
Views: 2,292
Posted By DotNetUser
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
Posted By DotNetUser
Re: MessageBox::Show problem

The MessageBox is from namespace System::Windows::Forms. i don't believe you can use SetForegroundWindow.
Forum: C++ Apr 3rd, 2006
Replies: 3
Views: 2,292
Posted By DotNetUser
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
Posted By DotNetUser
Re: stdole::StdFont supported in VC++.NET?

i got it. Just needed to add the stdole Reference
Forum: C++ Mar 30th, 2006
Replies: 1
Views: 947
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
Declaring an array of records in MC++

How do you declare an array of records in MC++? And have a ptr point to it? Thanks.
Forum: C++ Feb 28th, 2006
Replies: 1
Views: 1,780
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
Re: how to create pop up menu in VC++.NET

Thanks! I didn't realized that it's a different control from the MainMenu control.
Forum: C++ Jan 5th, 2006
Replies: 2
Views: 4,342
Posted By DotNetUser
how to create pop up menu in VC++.NET

Anybody know how to create a pop up menu in VC++.NET? In VB 6.0, you would make a call to PopupMenu(menu) with menu visible property = unchecked.
Forum: C Dec 12th, 2005
Replies: 2
Views: 2,862
Posted By DotNetUser
Converting String* to char*

How would I convert a String* variable to a char*variable?
Forum: C++ Dec 9th, 2005
Replies: 4
Views: 2,251
Posted By DotNetUser
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
Posted By DotNetUser
Workaround for declaring a global .net framework object

I'm coding in Visual C++ .NET. I have a managed class(FORM1) that displays a form. .NET framework objects can only be define within function scope. I have a main program that creates an instance of...
Forum: C++ Dec 1st, 2005
Replies: 1
Views: 1,116
Posted By DotNetUser
Workaround for declaring a global .net framework object

I'm coding in Visual C++ .NET. I have a managed class(FORM1) that displays a form. .NET framework objects can only be define within function scope. I have a main program that creates an instance of...
Forum: C++ Nov 28th, 2005
Replies: 3
Views: 2,372
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
Re: Timer event doesn't get triggered

I make the Start() call in my Button click event. One thing I noticed was that the timer works in an event, but not in a static function.
Forum: C++ Nov 15th, 2005
Replies: 4
Views: 1,495
Posted By DotNetUser
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
Posted By DotNetUser
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
Posted By DotNetUser
Re: Finding the object in an ArrayList

Thanks for the tip. That's exactly what I need. Don't know what I was thinking.
Showing results 1 to 40 of 69

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:36 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC