Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to generate 16digit Random number using C# Pin
Guffa6-Feb-06 8:02
Guffa6-Feb-06 8:02 
AnswerRe: How to generate 16digit Random number using C# Pin
Sebastian Schneider6-Feb-06 10:41
Sebastian Schneider6-Feb-06 10:41 
QuestionHow to menage concurrency with timestamp (C#) Pin
ventomito6-Feb-06 6:59
ventomito6-Feb-06 6:59 
Questionuser-defined data types (definition) Pin
LuluSailor6-Feb-06 6:57
LuluSailor6-Feb-06 6:57 
AnswerRe: user-defined data types (definition) Pin
malharone6-Feb-06 7:05
malharone6-Feb-06 7:05 
QuestionForm Count Pin
deepscyberpulse6-Feb-06 6:46
deepscyberpulse6-Feb-06 6:46 
QuestionToolbar Pin
deepscyberpulse6-Feb-06 6:29
deepscyberpulse6-Feb-06 6:29 
Questionsize=new size() and form.width/height assignment fail to change form size Pin
Sebastian Schneider6-Feb-06 5:17
Sebastian Schneider6-Feb-06 5:17 
Holla,

I got a little problem here: I am developing this "little helper" under VS2003 and .NET1.1. I want to change the application's size in code (implementing a "show some/show all" toggle that also creates/disposes an "advanced options"-panel.)

I KNOW that I did this before, but I cannot figure out while it wont work now:

I currently have a button and in the click-handler I change the forms size as follows:

this.Size = new Size(300,400); // or
this.Width = 300;
this.Height = 400;
// and afterward, I get rid of the advanced panel.
doSomePanelHidingStuff();

According to the MSDN, that should be all thats necessary. When this didnt work, I tried some combinations of invalidating and refreshing the form, to no avail. I added the "refreshing" to a resize-event handler.

Whatever I do, the form's size wont change.

Any hints?



Cheers,
Sebastian

--
Contra vim mortem non est medicamen in hortem.
AnswerRe: size=new size() and form.width/height assignment fail to change form size Pin
Stanciu Vlad6-Feb-06 5:32
Stanciu Vlad6-Feb-06 5:32 
GeneralRe: size=new size() and form.width/height assignment fail to change form size Pin
Sebastian Schneider6-Feb-06 10:35
Sebastian Schneider6-Feb-06 10:35 
GeneralRe: size=new size() and form.width/height assignment fail to change form size Pin
Stanciu Vlad6-Feb-06 10:49
Stanciu Vlad6-Feb-06 10:49 
QuestionWeird C# String Behavior Pin
malharone6-Feb-06 4:39
malharone6-Feb-06 4:39 
AnswerRe: Weird C# String Behavior Pin
Joe Woodbury6-Feb-06 4:52
professionalJoe Woodbury6-Feb-06 4:52 
AnswerRe: Weird C# String Behavior Pin
Judah Gabriel Himango6-Feb-06 4:55
sponsorJudah Gabriel Himango6-Feb-06 4:55 
GeneralRe: Weird C# String Behavior Pin
malharone6-Feb-06 5:15
malharone6-Feb-06 5:15 
GeneralRe: Weird C# String Behavior Pin
Judah Gabriel Himango6-Feb-06 5:18
sponsorJudah Gabriel Himango6-Feb-06 5:18 
GeneralRe: Weird C# String Behavior Pin
malharone6-Feb-06 5:29
malharone6-Feb-06 5:29 
GeneralRe: Weird C# String Behavior Pin
Judah Gabriel Himango6-Feb-06 7:15
sponsorJudah Gabriel Himango6-Feb-06 7:15 
AnswerRe: Weird C# String Behavior Pin
leppie6-Feb-06 5:16
leppie6-Feb-06 5:16 
GeneralRe: Weird C# String Behavior Pin
malharone6-Feb-06 5:36
malharone6-Feb-06 5:36 
AnswerRe: Weird C# String Behavior Pin
Nish Nishant6-Feb-06 6:06
sitebuilderNish Nishant6-Feb-06 6:06 
GeneralRe: Weird C# String Behavior Pin
malharone6-Feb-06 6:20
malharone6-Feb-06 6:20 
GeneralRe: Weird C# String Behavior Pin
Daniel Grunwald6-Feb-06 6:55
Daniel Grunwald6-Feb-06 6:55 
GeneralNoooo! Pin
leppie6-Feb-06 7:49
leppie6-Feb-06 7:49 
QuestionWierdness trying to use a class library in a service Pin
ByStorm Software6-Feb-06 4:22
ByStorm Software6-Feb-06 4:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.