Search Results

Showing results 1 to 40 of 69
Search took 0.01 seconds.
Search: Posts Made By: DotNetUser
Forum: C Aug 25th, 2006
Replies: 1
Views: 889
Posted By DotNetUser
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: 1,232
Posted By DotNetUser
How do I make ClientSize static?
Forum: C Jul 25th, 2006
Replies: 2
Views: 1,232
Posted By DotNetUser
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,429
Posted By DotNetUser
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: 2,014
Posted By DotNetUser
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: 3,549
Posted By DotNetUser
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: 3,217
Posted By DotNetUser
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: 3,405
Posted By DotNetUser
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: 2,600
Posted By DotNetUser
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: 2,600
Posted By DotNetUser
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: 5,819
Posted By DotNetUser
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: 5,819
Posted By DotNetUser
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: 5,819
Posted By DotNetUser
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: 5,819
Posted By DotNetUser
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: 3,591
Posted By DotNetUser
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: 3,591
Posted By DotNetUser
The MessageBox is from namespace System::Windows::Forms. i don't believe you can use SetForegroundWindow.
Forum: C++ Apr 3rd, 2006
Replies: 3
Views: 3,591
Posted By DotNetUser
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: 1,249
Posted By DotNetUser
i got it. Just needed to add the stdole Reference
Forum: C++ Mar 30th, 2006
Replies: 1
Views: 1,249
Posted By DotNetUser
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: 2,855
Posted By DotNetUser
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...
Forum: C++ Mar 23rd, 2006
Replies: 0
Views: 1,369
Posted By DotNetUser
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: 2,855
Posted By DotNetUser
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: 3,229
Posted By DotNetUser
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...
Forum: ASP.NET Feb 27th, 2006
Replies: 0
Views: 1,310
Posted By DotNetUser
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,856
Posted By DotNetUser
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,655
Posted By DotNetUser
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: 3,276
Posted By DotNetUser
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,897
Posted By DotNetUser
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...
Forum: C++ Jan 6th, 2006
Replies: 2
Views: 7,984
Posted By DotNetUser
Thanks! I didn't realized that it's a different control from the MainMenu control.
Forum: C++ Jan 5th, 2006
Replies: 2
Views: 7,984
Posted By DotNetUser
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: 3,276
Posted By DotNetUser
How would I convert a String* variable to a char*variable?
Forum: C++ Dec 9th, 2005
Replies: 4
Views: 2,897
Posted By DotNetUser
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...
Forum: ASP.NET Dec 1st, 2005
Replies: 1
Views: 1,731
Posted By DotNetUser
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,365
Posted By DotNetUser
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,920
Posted By DotNetUser
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,920
Posted By DotNetUser
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: 2,295
Posted By DotNetUser
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: 2,295
Posted By DotNetUser
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: 2,295
Posted By DotNetUser
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: 3,340
Posted By DotNetUser
Thanks for the tip. That's exactly what I need. Don't know what I was thinking.
Showing results 1 to 40 of 69

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC