Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 6th, 2006, 7:31 PM   #1
hbe02
Hobbyist Programmer
 
hbe02's Avatar
 
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3 hbe02 is on a distinguished road
Windows Form in .Net

Im using visual studio.net 2003.. and want to re-size my Form to the maximum possible size. I know i can resize my window using the Size property like this:
this->Size = Drawing::Size(500,500);
but what if i want to run my form on different computers each having a different desktop resolution. how can i make the size property adapt to the PC's corresponding resolution.
thanks..

Btw: Does visual studio.net 2005 and the latest .Net Framework have a Designer for GUI applications for c++. i.e: you can create forms simply by dragging and dropping controls?

Last edited by hbe02; Aug 6th, 2006 at 7:44 PM.
hbe02 is offline   Reply With Quote
Old Aug 6th, 2006, 11:59 PM   #2
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
This question has nothing to do with C++. You're far better off potsing it in the C# forum, even though it's not in that language. Microsoft's .Net bastardization of C++ is not C++.

By the way, are you actually in Lebanon? o.O Good luck.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Aug 7th, 2006, 1:57 AM   #3
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
uman, I wouldn't bash him too badly. We don't have a Visual C++.Net forum, and that code ain't close enough to C#. I'd say he would probably get better results in this forum. Although the name could seem a bit off topic. As for MS's basterdization of C++, I wouldn't know.

@OP - First off, yes VS2005 does have the ability to drag and drop controls and what not. It's basiclly an updated version VS2003. As for your first question, I don't know the code in C++ to maximize the window, but each form has a windowstate property. You can use that to set the initial state of the window. i.e: Minimized, Normal or Maximized.
Booooze is offline   Reply With Quote
Old Aug 7th, 2006, 6:29 AM   #4
JimmyJim
Programmer
 
JimmyJim's Avatar
 
Join Date: Jul 2006
Location: England
Posts: 43
Rep Power: 0 JimmyJim is on a distinguished road
@uman MS dont even call it C++ they call it C++/CLI so its not C++. Your statment is like saying C# is the bastardization of java.

@hbe02, i have found C++/CLI only usefull for porting C++ code and C++ programmers to .net. If its a fresh project and your not a C++ mad man then go for c#. Its much cleaner language and its simpler to understand whats happening.

Hey i would just like to add that i feel deeply sad for the war crimes the Israelis are commiting in your country. I even feel ashamed to be british when our prime minister does not care what happens to the inncoent civilians in the Lebanon. I hope that no member of your family or your frinends have not been effected/hurt/killed by the shamefull events. Best of luck for the future.

Flame me for that stament if you like i dont give a shit. Its my view and im entitled to it.
JimmyJim is offline   Reply With Quote
Old Aug 7th, 2006, 8:59 AM   #5
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
On topic: This post is the right forum and C# is a cleaner language.

Off Topic: I completely agree JimmyJim. The Israeli's didn't even drop leaflets days before they bombed. Its not like the Israeli's left southern Lebanon several years ago on the condition that Hezbollah wouldn't be armed by the teeth by Iran and Syria. If the Israelis had just let the UN that has been for years handle the would thing, after all the UN has done a pretty good job of disarming Hezbollah so far. Can you believe the audacity of Israeli, I heard they even moved the 13,000+ rockets that Hezbollah has under schools, hospitals and then bombed them. Just to make sure they killed as many civilians as possible.

*end sarcasm*

Wake up, this is a war and civilians die. Israeli is already going way out of there way to not kill civilians. Dropping leaflets like this heavily hampers there ability to hit Hezbollah before they can run. Thousands of rockets have been launched at Israeli civilians after an unprovoked attack by Hezbollah, an Iranian armed terrorist organization that likes to store the weapons near civilians.

Israeli gave back all the land under the promise the UN would handle things. The UN has been there for years and has not stopped Hezbollah from accumulating any of its weapons.

You would think you Europeans would of learned after Hitler that you have to face people like this square in the eye and annihilate them.

EDIT: Its Israeli right self defense, and their entitled to it.
Game_Ender is offline   Reply With Quote
Old Aug 7th, 2006, 9:36 AM   #6
MBirchmeier
Hobbyist Programmer
 
Join Date: Oct 2005
Posts: 211
Rep Power: 4 MBirchmeier is on a distinguished road
Guys, this is not the forum to discuss 'war crimes'... there is a lot of stuff going on over there with the conflict, and almost none of it has to do with programming.

-MBirchmeier
MBirchmeier is offline   Reply With Quote
Old Aug 7th, 2006, 9:46 AM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Everyone is entitled to their view. No one is entitled to express it on a forum that specifically rules out political subjects.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 7th, 2006, 10:11 AM   #8
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
Sorry DaWei, I guess I should looked through rules more carefully. Is this allowed in the lounge area of the forum? If so it would probably be best to just split off JimmyJim's and my post as a new thread their. Or even spin it off and lock it to keep the clutter down.
Game_Ender is offline   Reply With Quote
Old Aug 7th, 2006, 10:23 AM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The applicable rule, #15, is:
Quote:
Politics - Discussion of politics on programmingforums is prohibited, as this topic is too controversial and can infuriate people quite easily when others don't see eye-to-eye with them.
Big K shut down the Flame thread in the lounge because it contravenes the rules, even if intended to be "entertainment". I suspect he would do the same with a political thread. I know I would.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 7th, 2006, 10:47 AM   #10
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,667
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
Yeah politics is completely banned from being talked about here, This is because we have ran into problems with people flaming others because of there thoughts. Everyone has there views, and most people feel very strongly for there own views that they are willing to flame others who don't agree with them so that is why we do not allow any politics of any type on this site.

hbe02, Did you get your question answered here? If not would you please repost your question so that the thread doesn't contain the information that doesn't help anyone. Thanks
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Prompt SkyPioneer Coder's Corner Lounge 5 May 3rd, 2006 11:07 PM
.NET Timer Form closing issue MBirchmeier C# 4 Nov 21st, 2005 11:00 AM
Z-Buffering in a Windows Form? Wraith Daquell Visual Basic .NET 3 May 25th, 2005 8:44 PM
"Not Responding" Message in Windows Form Application G_Zola C# 1 Apr 29th, 2005 11:15 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:16 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC