Click here to Skip to main content
15,917,176 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to get response of a messagebox? Pin
Martin#24-Jan-07 3:12
Martin#24-Jan-07 3:12 
GeneralRe: how to get response of a messagebox? Pin
quiteSmart24-Jan-07 2:59
quiteSmart24-Jan-07 2:59 
GeneralRe: how to get response of a messagebox? Pin
Saira Tanwir24-Jan-07 3:13
Saira Tanwir24-Jan-07 3:13 
GeneralRe: how to get response of a messagebox? Pin
quiteSmart24-Jan-07 3:25
quiteSmart24-Jan-07 3:25 
QuestionWindow resize on open Pin
the-Yetti24-Jan-07 1:36
the-Yetti24-Jan-07 1:36 
AnswerRe: Window resize on open Pin
Saira Tanwir24-Jan-07 1:59
Saira Tanwir24-Jan-07 1:59 
GeneralRe: Window resize on open Pin
the-Yetti24-Jan-07 4:30
the-Yetti24-Jan-07 4:30 
AnswerRe: Window resize on open Pin
Michael P Butler24-Jan-07 1:59
Michael P Butler24-Jan-07 1:59 
the-Yetti wrote:
I have a 'new person' form that i want to start with a height of 276 and if the person will have a photo the form to open up to 440. So for eas of working with it, in the designer it is 440 high, but I want it to open with 276. So I figured...
public frmNewPerson () {
InitializeComponent ();
Form.ActiveForm.Height=276;
}
would work, but it doesn't, it says...
Message="Object reference not set to an instance of an object."
and highlights the line Form....

So am I just putting this line of code in the wrong place or what?


As you are in the constructor of the form, the ActiveForm property hasn't been initialised yet.

Try

this.Height = 276;




AnswerRe: Window resize on open Pin
engsrini24-Jan-07 3:37
engsrini24-Jan-07 3:37 
AnswerRe: Window resize on open Pin
the-Yetti24-Jan-07 4:32
the-Yetti24-Jan-07 4:32 
QuestionConvert base64 string to bitmap giving problem Pin
SrinivasSunkara24-Jan-07 1:14
SrinivasSunkara24-Jan-07 1:14 
AnswerRe: Convert base64 string to bitmap giving problem Pin
Guffa24-Jan-07 1:25
Guffa24-Jan-07 1:25 
GeneralRe: Convert base64 string to bitmap giving problem Pin
SrinivasSunkara24-Jan-07 1:41
SrinivasSunkara24-Jan-07 1:41 
GeneralRe: Convert base64 string to bitmap giving problem Pin
Guffa24-Jan-07 2:17
Guffa24-Jan-07 2:17 
GeneralRe: Convert base64 string to bitmap giving problem Pin
SrinivasSunkara24-Jan-07 3:00
SrinivasSunkara24-Jan-07 3:00 
AnswerRe: Convert base64 string to bitmap giving problem Pin
Guffa24-Jan-07 6:10
Guffa24-Jan-07 6:10 
QuestionConvert base64 string to bitmap giving problem Pin
SrinivasSunkara24-Jan-07 1:14
SrinivasSunkara24-Jan-07 1:14 
QuestionNeed to Convert base64 string representing header of the binary field with image data. Pin
SrinivasSunkara24-Jan-07 1:08
SrinivasSunkara24-Jan-07 1:08 
QuestionPower Point Show in WebBrowser Control ? can it be done ? Pin
Ahmad_kaau24-Jan-07 1:07
Ahmad_kaau24-Jan-07 1:07 
AnswerRe: Power Point Show in WebBrowser Control ? can it be done ? Pin
Ahmad_kaau24-Jan-07 5:09
Ahmad_kaau24-Jan-07 5:09 
QuestionValidate Textbox only to accept numeric Pin
aaraaayen24-Jan-07 0:34
aaraaayen24-Jan-07 0:34 
AnswerRe: Validate Textbox only to accept numeric Pin
Ed.Poore24-Jan-07 0:48
Ed.Poore24-Jan-07 0:48 
GeneralRe: Validate Textbox only to accept numeric Pin
quiteSmart24-Jan-07 1:02
quiteSmart24-Jan-07 1:02 
GeneralRe: Validate Textbox only to accept numeric Pin
Ed.Poore24-Jan-07 2:20
Ed.Poore24-Jan-07 2:20 
AnswerRe: Validate Textbox only to accept numeric Pin
Martin#24-Jan-07 1:02
Martin#24-Jan-07 1:02 

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.