Click here to Skip to main content
15,906,625 members
Home / Discussions / C#
   

C#

 
GeneralRe: Thread-safe Access to Form Controls Pin
LighthouseJ6-Feb-06 15:46
LighthouseJ6-Feb-06 15:46 
GeneralRe: Thread-safe Access to Form Controls Pin
Judah Gabriel Himango6-Feb-06 16:09
sponsorJudah Gabriel Himango6-Feb-06 16:09 
GeneralRe: Thread-safe Access to Form Controls Pin
LighthouseJ6-Feb-06 16:44
LighthouseJ6-Feb-06 16:44 
Questionexport text/reports in XLS, HTML, PDF, DBF, XML... format Pin
MihaiChioariu6-Feb-06 8:23
MihaiChioariu6-Feb-06 8:23 
Questionweather report service Pin
balkang6-Feb-06 8:09
balkang6-Feb-06 8:09 
AnswerRe: weather report service Pin
usernamed6-Feb-06 9:38
usernamed6-Feb-06 9:38 
QuestionDrawLine question Pin
QzRz6-Feb-06 7:23
QzRz6-Feb-06 7:23 
AnswerRe: DrawLine question Pin
Guffa6-Feb-06 7:55
Guffa6-Feb-06 7:55 
QuestionHow to generate 16digit Random number using C# Pin
n_satisha6-Feb-06 7:21
n_satisha6-Feb-06 7:21 
AnswerRe: How to generate 16digit Random number using C# Pin
Colin Angus Mackay6-Feb-06 7:41
Colin Angus Mackay6-Feb-06 7:41 
GeneralRe: How to generate 16digit Random number using C# Pin
leppie6-Feb-06 7:52
leppie6-Feb-06 7:52 
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 

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.