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

C#

 
Questiongetting intercept point of lines?? Pin
azusakt5-Jan-04 22:25
azusakt5-Jan-04 22:25 
AnswerRe: getting intercept point of lines?? Pin
Xiangyang Liu 刘向阳5-Jan-04 23:51
Xiangyang Liu 刘向阳5-Jan-04 23:51 
Questionhow to change dos prompt caption! Pin
yu-yu5-Jan-04 21:12
yu-yu5-Jan-04 21:12 
AnswerRe: how to change dos prompt caption! Pin
Philip Fitzsimons6-Jan-04 2:54
Philip Fitzsimons6-Jan-04 2:54 
AnswerRe: how to change dos prompt caption! Pin
Heath Stewart6-Jan-04 3:16
protectorHeath Stewart6-Jan-04 3:16 
GeneralRe: how to change dos prompt caption! Pin
Xiangyang Liu 刘向阳6-Jan-04 3:43
Xiangyang Liu 刘向阳6-Jan-04 3:43 
Questionmoving all an app's menus into menus.cs? Pin
TuringTest15-Jan-04 19:56
TuringTest15-Jan-04 19:56 
AnswerRe: moving all an app's menus into menus.cs? Pin
Member 2611885-Jan-04 21:17
Member 2611885-Jan-04 21:17 
I solve this problem using #region directives:

C#
#region Menus
private MenuItem mnuFile;
private MenuItem mnuFileNew;
private MenuItem mnuFileOpen;
private MenuItem mnuFileLine1;  // A separator.
private MenuItem mnuFileSave;
private MenuItem mnuFileSaveAs;
private MenuItem mnuFileLine2;  // Another separator.
private MenuItem mnuFileExit;
#endregion
 
#region Menu events
#region File
private void mnuFileNew_Click(object sender, System.EventArgs e)
{
}
 
private void mnuFileOpen_Click(object sender, System.EventArgs e)
{
}
 
private void mnuFileSave_Click(object sender, System.EventArgs e)
{
}
 
private void mnuFileSaveAs_Click(object sender, System.EventArgs e)
{
}
 
private void mnuFileExit_Click(object sender, System.EventArgs e)
{
}
#endregion
#endregion


Since you use Visual Studio, this would hide the menu code, and add more structure to your source file.

- Daniël Pelsmaeker
And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.
-Shog9

AnswerRe: moving all an app's menus into menus.cs? Pin
Heath Stewart6-Jan-04 2:27
protectorHeath Stewart6-Jan-04 2:27 
QuestionFinding a server in a network? Pin
peshkata5-Jan-04 19:40
susspeshkata5-Jan-04 19:40 
AnswerRe: Finding a server in a network? Pin
Mazdak6-Jan-04 0:50
Mazdak6-Jan-04 0:50 
GeneralProper Way To Determine AM or PM Pin
perlmunger5-Jan-04 12:31
perlmunger5-Jan-04 12:31 
GeneralRe: Proper Way To Determine AM or PM Pin
Heath Stewart5-Jan-04 13:44
protectorHeath Stewart5-Jan-04 13:44 
GeneralRe: Proper Way To Determine AM or PM Pin
perlmunger5-Jan-04 17:16
perlmunger5-Jan-04 17:16 
GeneralPractice - Simple COM Interfaces Pin
Tristan Rhodes5-Jan-04 11:43
Tristan Rhodes5-Jan-04 11:43 
GeneralRe: Practice - Simple COM Interfaces Pin
Heath Stewart5-Jan-04 13:40
protectorHeath Stewart5-Jan-04 13:40 
GeneralRe: Practice - Simple COM Interfaces Pin
Tristan Rhodes6-Jan-04 1:13
Tristan Rhodes6-Jan-04 1:13 
GeneralRe: Practice - Simple COM Interfaces Pin
Heath Stewart6-Jan-04 2:21
protectorHeath Stewart6-Jan-04 2:21 
GeneralRe: Practice - Simple COM Interfaces Pin
Tristan Rhodes6-Jan-04 2:32
Tristan Rhodes6-Jan-04 2:32 
GeneralRe: Practice - Simple COM Interfaces Pin
Tristan Rhodes6-Jan-04 3:01
Tristan Rhodes6-Jan-04 3:01 
Generalif files exist continue else exit Pin
Leon Radley5-Jan-04 11:03
Leon Radley5-Jan-04 11:03 
GeneralRe: if files exist continue else exit Pin
Nick Parker5-Jan-04 12:54
protectorNick Parker5-Jan-04 12:54 
GeneralRe: if files exist continue else exit Pin
Leon Radley5-Jan-04 19:30
Leon Radley5-Jan-04 19:30 
GeneralRe: if files exist continue else exit Pin
Nick Parker6-Jan-04 12:56
protectorNick Parker6-Jan-04 12:56 
GeneralRe: if files exist continue else exit Pin
Niels Penneman7-Jan-04 9:10
Niels Penneman7-Jan-04 9:10 

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.