Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
QuestionSetting 'OnClick' for dynamic button in Code behind Pin
Chris McGlothen2-Apr-07 11:59
Chris McGlothen2-Apr-07 11:59 
QuestionScheduling (user input time = system time Pin
orly00132-Apr-07 11:37
orly00132-Apr-07 11:37 
AnswerRe: Scheduling (user input time = system time Pin
Judah Gabriel Himango2-Apr-07 13:06
sponsorJudah Gabriel Himango2-Apr-07 13:06 
AnswerRe: Scheduling (user input time = system time Pin
Leslie Sanford2-Apr-07 16:40
Leslie Sanford2-Apr-07 16:40 
QuestionClosing ComboBox DropDownList Programmatically Pin
freshonlineMax2-Apr-07 10:49
freshonlineMax2-Apr-07 10:49 
AnswerRe: Closing ComboBox DropDownList Programmatically Pin
Judah Gabriel Himango2-Apr-07 13:04
sponsorJudah Gabriel Himango2-Apr-07 13:04 
QuestionShowDialogue Pin
AAKAra2-Apr-07 10:32
AAKAra2-Apr-07 10:32 
AnswerRe: ShowDialogue Pin
Christian Graus2-Apr-07 12:26
protectorChristian Graus2-Apr-07 12:26 
AnilUnni wrote:
GC.Collect();


NEVER do this.

AnilUnni wrote:
case System.Windows.Forms.DialogResult.OK:


put using System.Windows.Forms at the top, then just use DialogResult.OK, etc.


AnilUnni wrote:
m_dlg.EndDialog();


What does this do ?

AnilUnni wrote:
if ( m_dlg.Initialize(m_InitData) )


Why do you need to do this ?

AnilUnni wrote:
_dlg.StartPosition = FormStartPosition.CenterScreen;


You can set this on the form itself in the designer.


AnilUnni wrote:
m_dlg = new ScheduleEditor();

AnilUnni wrote:
m_dlg = null;


In fact, you should have called m_dlg.Dispose(), but, more to the point, why do you have a member if you reset it every time ? Just declare it locally.

A form has a WindowState variable, if the form is minimised, this has been set to minimised somewhere.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: ShowDialogue Pin
AAKAra3-Apr-07 7:05
AAKAra3-Apr-07 7:05 
GeneralRe: ShowDialogue Pin
AAKAra3-Apr-07 7:25
AAKAra3-Apr-07 7:25 
QuestionHow to get to DVD drive without getting access to CD drive? Pin
Khoramdin2-Apr-07 10:16
Khoramdin2-Apr-07 10:16 
Questioncomputer name to IP address Pin
marwan_siala2-Apr-07 9:52
marwan_siala2-Apr-07 9:52 
AnswerRe: computer name to IP address Pin
stancrm2-Apr-07 19:44
stancrm2-Apr-07 19:44 
QuestionOpening UNKNOWN filename? Pin
Goalie352-Apr-07 9:18
Goalie352-Apr-07 9:18 
AnswerRe: Opening UNKNOWN filename? Pin
Christian Graus2-Apr-07 10:01
protectorChristian Graus2-Apr-07 10:01 
AnswerRe: Opening UNKNOWN filename? Pin
engsrini2-Apr-07 13:20
engsrini2-Apr-07 13:20 
QuestionPulling info from arrays Pin
JMOdom2-Apr-07 8:57
JMOdom2-Apr-07 8:57 
AnswerRe: Pulling info from arrays [modified] Pin
Christian Graus2-Apr-07 10:11
protectorChristian Graus2-Apr-07 10:11 
QuestionHow to remove comment from XML string Pin
AndrusM2-Apr-07 8:05
AndrusM2-Apr-07 8:05 
AnswerRe: How to remove comment from XML string Pin
Not Active2-Apr-07 8:26
mentorNot Active2-Apr-07 8:26 
GeneralRe: How to remove comment from XML string Pin
AndrusM2-Apr-07 9:47
AndrusM2-Apr-07 9:47 
AnswerRe: How to remove comment from XML string Pin
blackjack21502-Apr-07 21:09
blackjack21502-Apr-07 21:09 
GeneralRe: How to remove comment from XML string Pin
AndrusM3-Apr-07 8:49
AndrusM3-Apr-07 8:49 
GeneralRe: How to remove comment from XML string Pin
blackjack21503-Apr-07 21:00
blackjack21503-Apr-07 21:00 
GeneralRe: How to remove comment from XML string Pin
AndrusM4-Apr-07 1:03
AndrusM4-Apr-07 1:03 

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.